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.
Dezrez.Core.DataContracts.Internal.Features.SaveMasterSystemFeatureCommandDataContractName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
SystemName | string |
None. |
|
FeatureId | integer |
None. |
|
DefaultAppliesToRoles | Collection of string |
None. |
|
DefaultExternalProviderIds | Collection of integer |
None. |
|
DefaultSteps | Collection of Dezrez.Core.DataContracts.Internal.Features.SaveMasterSystemFeatureStepCommandDataContract |
None. |
|
Id | integer |
None. |
Request Formats
application/x-www-form-urlencoded
Sample:
Sample not available.
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 }
Response Information
Resource Description
Dezrez.Core.DataContracts.Internal.Features.MasterSystemFeatureDataContractName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
SystemName | string |
None. |
|
DefaultAppliesToRoles | Collection of string |
None. |
|
DefaultSteps | Collection of Dezrez.Core.DataContracts.Internal.Features.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 }