POST api/enlistedfeature/save

Request Information

URI Parameters

None.

Body Parameters

SaveEnlistedFeatureConfigurationCommandDataContract
NameDescriptionTypeAdditional information
Name

string

None.

FeatureId

integer

None.

AppliesToRoles

Collection of string

None.

ExternalProviderIds

Collection of integer

None.

Steps

Collection of SaveEnlistedFeatureConfigurationStepCommandDataContract

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "FeatureId": 2,
  "AppliesToRoles": [
    "sample string 1",
    "sample string 2"
  ],
  "ExternalProviderIds": [
    1,
    2
  ],
  "Steps": [
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "RequiredSteps": [
        {
          "EnlistedFeatureConfigurationStepId": 1,
          "Name": "sample string 2",
          "ValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        },
        {
          "EnlistedFeatureConfigurationStepId": 1,
          "Name": "sample string 2",
          "ValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        "sample string 1",
        "sample string 2"
      ],
      "RequiredSteps": [
        {
          "EnlistedFeatureConfigurationStepId": 1,
          "Name": "sample string 2",
          "ValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        },
        {
          "EnlistedFeatureConfigurationStepId": 1,
          "Name": "sample string 2",
          "ValidStatuses": [
            "sample string 1",
            "sample string 2"
          ],
          "Id": 3
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    }
  ],
  "Id": 3
}

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 'SaveEnlistedFeatureConfigurationCommandDataContract'.

Response Information

Resource Description

EnlistedFeatureConfigurationDataContract
NameDescriptionTypeAdditional information
Name

string

None.

FeatureId

integer

None.

AppliesToRoles

Collection of EnumDataContract

None.

ExternalProviders

Collection of RoleDataContract

None.

Steps

Collection of EnlistedFeatureConfigurationStepDataContract

None.

SystemStatus

EnumDataContract

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "FeatureId": 2,
  "AppliesToRoles": [
    {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    },
    {
      "Id": 1,
      "Name": "sample string 2",
      "SystemName": "sample string 3"
    }
  ],
  "ExternalProviders": [
    {
      "OwningTeamId": 1,
      "BranchId": 2,
      "Name": "sample string 3",
      "TeamAccessType": "sample string 4",
      "RoleType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "RoleStatus": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "CustomFields": [
        {
          "Name": "sample string 1",
          "Values": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            }
          ]
        },
        {
          "Name": "sample string 1",
          "Values": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            }
          ]
        }
      ],
      "CreatedDate": "2018-11-15T05:04:01.2562956Z",
      "CreatedBy": {
        "Initials": "sample string 1",
        "ContactName": "sample string 2",
        "Gender": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Title": "sample string 3",
        "FirstName": "sample string 4",
        "LastName": "sample string 5",
        "PrimaryTelephone": {
          "Type": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Value": "sample string 1",
          "Notes": "sample string 2",
          "ContactOrder": 3,
          "AllowContact": true,
          "MarketingContactStatus": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Name": "sample string 5",
          "Id": 6
        },
        "PrimaryEmail": {
          "Type": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Value": "sample string 1",
          "Notes": "sample string 2",
          "ContactOrder": 3,
          "AllowContact": true,
          "MarketingContactStatus": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Name": "sample string 5",
          "Id": 6
        },
        "JobTitle": "sample string 6",
        "Id": 7
      },
      "Id": 6
    },
    {
      "OwningTeamId": 1,
      "BranchId": 2,
      "Name": "sample string 3",
      "TeamAccessType": "sample string 4",
      "RoleType": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "RoleStatus": {
        "Id": 1,
        "Name": "sample string 2",
        "SystemName": "sample string 3"
      },
      "CustomFields": [
        {
          "Name": "sample string 1",
          "Values": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            }
          ]
        },
        {
          "Name": "sample string 1",
          "Values": [
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            },
            {
              "Type": {
                "Id": 1,
                "Name": "sample string 2",
                "SystemName": "sample string 3"
              },
              "Name": "sample string 1",
              "Value": {}
            }
          ]
        }
      ],
      "CreatedDate": "2018-11-15T05:04:01.2562956Z",
      "CreatedBy": {
        "Initials": "sample string 1",
        "ContactName": "sample string 2",
        "Gender": {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        "Title": "sample string 3",
        "FirstName": "sample string 4",
        "LastName": "sample string 5",
        "PrimaryTelephone": {
          "Type": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Value": "sample string 1",
          "Notes": "sample string 2",
          "ContactOrder": 3,
          "AllowContact": true,
          "MarketingContactStatus": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Name": "sample string 5",
          "Id": 6
        },
        "PrimaryEmail": {
          "Type": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Value": "sample string 1",
          "Notes": "sample string 2",
          "ContactOrder": 3,
          "AllowContact": true,
          "MarketingContactStatus": {
            "Id": 1,
            "Name": "sample string 2",
            "SystemName": "sample string 3"
          },
          "Name": "sample string 5",
          "Id": 6
        },
        "JobTitle": "sample string 6",
        "Id": 7
      },
      "Id": 6
    }
  ],
  "Steps": [
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        }
      ],
      "RequiredSteps": [
        {
          "FeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "ValidStatuses": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            }
          ],
          "Id": 1
        },
        {
          "FeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "ValidStatuses": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            }
          ],
          "Id": 1
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    },
    {
      "Name": "sample string 1",
      "ValidRoleStatuses": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "SystemName": "sample string 3"
        }
      ],
      "RequiredSteps": [
        {
          "FeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "ValidStatuses": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            }
          ],
          "Id": 1
        },
        {
          "FeatureStepConfiguration": {
            "Name": "sample string 1",
            "Id": 2
          },
          "ValidStatuses": [
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            },
            {
              "Id": 1,
              "Name": "sample string 2",
              "SystemName": "sample string 3"
            }
          ],
          "Id": 1
        }
      ],
      "IsFinalStep": true,
      "Id": 3
    }
  ],
  "SystemStatus": {
    "Id": 1,
    "Name": "sample string 2",
    "SystemName": "sample string 3"
  },
  "Id": 3
}