FeatureToggles

Creates a feature toggle within a project

post/spaces/{spaceIdentifier}/projects/{projectId}/featuretoggles

Request

  • Base URL
    https://demo.octopus.app/api
  • URL
    https://demo.octopus.app/api/spaces/{spaceIdentifier}/projects/{projectId}/featuretoggles
  • Auth
    • API key in header X-Octopus-ApiKey
    • or API key in query parameter ApiKey
    • or API key in header X-NuGet-ApiKey

Path parameters

spaceIdentifierstring required

Identifier (ID or slug) of the space

projectIdstring required

Request body

Descriptionstring
Namestring required
ProjectIdstring required
RolloutGroupIdstring
SpaceIdstring required
Tagsstring[]

Example request

{
  "Environments": [
    {
      "DeploymentEnvironmentId": "Environments-1",
      "ExcludedTenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantIds": [
        "Tenants-1",
        "..."
      ]
    }
  ],
  "ProjectId": "Projects-1",
  "SpaceId": "Spaces-1"
}

Response

Created

DefaultIsEnabledboolean required
Descriptionstring
Idstring required
Namestring required
ProjectIdstring required
RolloutGroupIdstring
Slugstring required
SpaceIdstring required
Tagsstring[] required

Example response

{
  "Environments": [
    {
      "DeploymentEnvironmentId": "Environments-1",
      "ExcludedTenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantIds": [
        "Tenants-1",
        "..."
      ]
    }
  ],
  "ProjectId": "Projects-1",
  "SpaceId": "Spaces-1"
}

Changes

No recorded changes to this operation across all 13 revisions of this API.