ApprovalRules

Creates a new approval rule in the specified Octopus Deploy space.

post/{spaceId}/approvalrules

Path parameters

spaceIdstring required

Request body

AllowSelfApprovalboolean

Whether deployment creators are allowed to approve their own deployments

ApprovingTeamIdsstring[]

The teams who are authorized to approve

ApprovingUserIdsstring[]

The users who are authorized to approve

Descriptionstring
IsDisabledboolean

Whether this approval rule is disabled

MinimumApproversRequiredinteger

Set a number of minimum approvers required to authorize the deployment

Namestring required
ScopingStrategystring
SpaceIdstring required
TenantApprovalStrategystring

Example request

{
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "ProjectId": "Projects-1"
    }
  ],
  "SpaceId": "Spaces-1"
}

Response

Created

AllowSelfApprovalboolean
ApprovingTeamIdsstring[]
ApprovingUserIdsstring[]
Descriptionstring
Idstring required
IsDisabledboolean
MinimumApproversRequiredinteger
Namestring required
ScopingStrategystring
SpaceIdstring required
TenantApprovalStrategystring

Example response

{
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "ProjectId": "Projects-1"
    }
  ],
  "SpaceId": "Spaces-1"
}

Changes

Changed in 1 of the 7 revisions of this API.1