POST api/admin/system/CreateNewSystemFeature

Creates a new system wide feature available for activation.

Request Information

URI Parameters

None.

Body Parameters

The save new feature commad.

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:

Sample not available.

Response Information

Resource Description

MasterSystemFeatureDataContract
NameDescriptionTypeAdditional information
Name

string

None.

SystemName

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",
  "SystemName": "sample string 2",
  "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": 3
}