POST api/admin/system/CreateNewSystemFeature

Request Information

URI Parameters

None.

Body Parameters

SaveMasterSystemFeatureCommandDataContract
NameDescriptionTypeAdditional information
Name

string

None.

SystemName

string

None.

FeatureId

integer

None.

DefaultAppliesToRoles

Collection of string

None.

DefaultExternalProviderIds

Collection of integer

None.

DefaultSteps

Collection of SaveMasterSystemFeatureStepCommandDataContract

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "SystemName": "sample string 2",
  "FeatureId": 3,
  "DefaultAppliesToRoles": [
    "sample string 1",
    "sample string 2"
  ],
  "DefaultExternalProviderIds": [
    1,
    2
  ],
  "DefaultSteps": [
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "DefaultRequiredSteps": [
        {
          "FeatureStepId": 1,
          "Name": "sample string 2",
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        },
        {
          "FeatureStepId": 1,
          "Name": "sample string 2",
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "DefaultRequiredSteps": [
        {
          "FeatureStepId": 1,
          "Name": "sample string 2",
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        },
        {
          "FeatureStepId": 1,
          "Name": "sample string 2",
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    }
  ],
  "Id": 4
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveMasterSystemFeatureCommandDataContract'.

Response Information

Resource Description

MasterSystemFeatureDataContract
NameDescriptionTypeAdditional information
Name

string

None.

DefaultAppliesToRoles

Collection of string

None.

DefaultSteps

Collection of MasterSystemFeatureStepDataContract

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "DefaultAppliesToRoles": [
    "sample string 1",
    "sample string 2"
  ],
  "DefaultSteps": [
    {
      "Name": "sample string 1",
      "DefaultValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "DefaultRequiredSteps": [
        {
          "MasterSystemFeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 1
        },
        {
          "MasterSystemFeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 1
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "DefaultValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "DefaultRequiredSteps": [
        {
          "MasterSystemFeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 1
        },
        {
          "MasterSystemFeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "DefaultValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 1
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    }
  ],
  "Id": 2
}