FeatureToggles

Modifies a feature toggle

put/spaces/{spaceIdentifier}/projects/{projectId}/featuretoggles/{id}

Request

  • Base URL
    https://demo.octopus.app/api
  • URL
    https://demo.octopus.app/api/spaces/{spaceIdentifier}/projects/{projectId}/featuretoggles/{id}
  • 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
idstring required

Request body

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

Example request

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

Response

A feature toggle

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.