Sign in Start for free

Approval Rules

Get a list of Approval rules

GET /api/{spaceId}/approvalrules

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules.

Lists all of the approval rules in the supplied Octopus Deploy Space. The results will be sorted alphabetically by name.

Path Parameters

  • spaceId string (required)
    The ID of the space containing the resource(s).

Query Parameters

  • partialName string
    Filter approval rules by a partial name match.
  • skip integer (required)
    Number of items to skip. Defaults to zero. Minimum 0.
  • take integer (required)
    Number of items to take. Defaults to 30. Minimum 0.

Response

200 — Success

  • ItemType string
    The type of item in this list.
  • Items array of object
    • AllowSelfApproval boolean
    • ApprovingTeamIds array of string
    • ApprovingUserIds array of string
    • DeploymentApprovalStrategy string
    • Description string
    • Id string
    • IdScopes array of object
    • IsDisabled boolean
    • MinimumApproversRequired integer
    • Name string
      Minimum length 1.
    • ScopingStrategy string
    • SpaceId string
    • TagScopes array of object
    • TenantApprovalStrategy string
  • ItemsPerPage integer
  • LastPageNumber integer
  • NumberOfPages integer
  • TotalResults integer

Example Response

JSON
{
  "ItemType": "ApprovalRule",
  "Items": [
    {
      "AllowSelfApproval": false,
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "DeploymentApprovalStrategy": "string",
      "Description": "string",
      "Id": "string",
      "IdScopes": [
        {}
      ],
      "IsDisabled": false,
      "MinimumApproversRequired": 0,
      "Name": "string",
      "ScopingStrategy": "string",
      "SpaceId": "Spaces-1",
      "TagScopes": [
        {}
      ],
      "TenantApprovalStrategy": "string"
    }
  ],
  "ItemsPerPage": 30,
  "LastPageNumber": 1,
  "NumberOfPages": 2,
  "TotalResults": 42
}

Creates a new approval rule in the specified Octopus Deploy space

POST /api/{spaceId}/approvalrules

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules.

Path Parameters

  • spaceId string (required)

Request Body

  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovingTeamIds array of string
    The teams who are authorized to approve.
  • ApprovingUserIds array of string
    The users who are authorized to approve.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
  • IdScopes array of object
    • EnvironmentIds array of string (required)
      IDs of Environments to include in the scope.
    • Id string
    • ProjectId string (required)
      ID of Project to include in the scope.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • MinimumApproversRequired integer
    Set a number of minimum approvers required to authorize the deployment. Minimum 1. Maximum 100.
  • Name string (required)
    Minimum length 1. Maximum length 200.
  • ScopingStrategy string
    How to scope this approval rule. [“Tag”, “Id”].
  • SpaceId string (required)
  • TagScopes array of object
    • EnvironmentTags array of string (required)
      Canonical IDs or Names of Environment tags to include in the scope.
    • Id string
    • ProjectTags array of string (required)
      Canonical IDs or Names of Project tags to include in the scope.
  • TenantApprovalStrategy string
    How one change request is reused across tenants for a release. [“PerRelease”, “PerTenant”].

Response

201 — Created

  • AllowSelfApproval boolean
  • ApprovingTeamIds array of string
  • ApprovingUserIds array of string
  • DeploymentApprovalStrategy string
  • Description string
  • Id string
  • IdScopes array of object
    • EnvironmentIds array of string
      IDs of Environments to include in the scope.
    • Id string
    • ProjectId string
      ID of Project to include in the scope.
  • IsDisabled boolean
  • MinimumApproversRequired integer
  • Name string
    Minimum length 1.
  • ScopingStrategy string
  • SpaceId string
  • TagScopes array of object
    • EnvironmentTags array of string
      Canonical IDs or Names of Environment tags to include in the scope.
    • Id string
    • ProjectTags array of string
      Canonical IDs or Names of Project tags to include in the scope.
  • TenantApprovalStrategy string

Example Request

JSON
{
  "AllowSelfApproval": false,
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "Id": "string",
      "ProjectId": "Projects-1"
    }
  ],
  "IsDisabled": false,
  "MinimumApproversRequired": 0,
  "Name": "string",
  "ScopingStrategy": "string",
  "SpaceId": "Spaces-1",
  "TagScopes": [
    {
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "ProjectTags": [
        "string"
      ]
    }
  ],
  "TenantApprovalStrategy": "string"
}

Example Response

JSON
{
  "AllowSelfApproval": false,
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "Id": "string",
      "ProjectId": "Projects-1"
    }
  ],
  "IsDisabled": false,
  "MinimumApproversRequired": 0,
  "Name": "string",
  "ScopingStrategy": "string",
  "SpaceId": "Spaces-1",
  "TagScopes": [
    {
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "ProjectTags": [
        "string"
      ]
    }
  ],
  "TenantApprovalStrategy": "string"
}

Lists the approval rules in a space, sorted alphabetically by name, with their scopes expressed as keyed collections of values

GET /api/{spaceId}/approvalrules/v2

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/v2.

Path Parameters

  • spaceId string (required)
    The ID of the space containing the resource(s).

Query Parameters

  • partialName string
    Filter approval rules by a partial name match.
  • skip integer (required)
    Number of items to skip. Defaults to zero. Minimum 0.
  • take integer (required)
    Number of items to take. Defaults to 30. Minimum 0.

Response

200 — Success

  • ItemType string
    The type of item in this list.
  • Items array of object
    • AllowCrossGroupApproval boolean
      Whether one person’s approval can count toward more than one approval group they belong to.
    • AllowSelfApproval boolean
      Whether deployment creators are allowed to approve their own deployments.
    • ApprovalGroups array of object
      The groups of approvers, each with its own minimum. A change is approved only when every group meets its minimum.
    • DeploymentApprovalStrategy string
      How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
    • Description string
      The description of the approval rule.
    • Id string
      The ID of the approval rule.
    • IsDisabled boolean
      Whether this approval rule is disabled.
    • Name string
      The name of the approval rule. Minimum length 1.
    • Scopes array of object
      The scopes this approval rule applies to.
    • SpaceId string
      The ID of the space containing the approval rule.
    • TenantApprovalStrategy string
      Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].
  • ItemsPerPage integer
  • LastPageNumber integer
  • NumberOfPages integer
  • TotalResults integer

Example Response

JSON
{
  "ItemType": "ApprovalRuleV2",
  "Items": [
    {
      "AllowCrossGroupApproval": false,
      "AllowSelfApproval": false,
      "ApprovalGroups": [
        {}
      ],
      "DeploymentApprovalStrategy": "string",
      "Description": "string",
      "Id": "string",
      "IsDisabled": false,
      "Name": "string",
      "Scopes": [
        {}
      ],
      "SpaceId": "Spaces-1",
      "TenantApprovalStrategy": "string"
    }
  ],
  "ItemsPerPage": 30,
  "LastPageNumber": 1,
  "NumberOfPages": 2,
  "TotalResults": 42
}

Creates a new approval rule in the specified Octopus Deploy space

POST /api/{spaceId}/approvalrules/v2

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/v2.

Path Parameters

  • spaceId string (required)
    The ID of the space to create the approval rule in.

Request Body

  • AllowCrossGroupApproval boolean
    Whether one person’s approval can count toward more than one approval group they belong to.
  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovalGroups array of object (required)
    The groups of approvers, each with its own minimum. A change is approved only when every group meets its minimum.
    • ApprovingTeamIds array of string (required)
      The teams who are authorized to approve on behalf of the group.
    • ApprovingUserIds array of string (required)
      The users who are authorized to approve on behalf of the group.
    • Id string
    • MinimumApproversRequired integer (required)
      A number of minimum approvers required from this group to authorize the deployment. Minimum 1. Maximum 100.
    • Name string (required)
      Minimum length 1.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
    The description of the approval rule.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • Name string (required)
    The name of the approval rule. Minimum length 1. Maximum length 200.
  • Scopes array of object
    The scopes this approval rule applies to.
    • EnvironmentIds array of string
    • EnvironmentTags array of string
    • Id string
    • Name string (required)
      Minimum length 1.
    • TenantIds array of string
    • TenantTags array of string
    • Type string (required)
  • SpaceId string (required)
    The ID of the space to create the approval rule in.
  • TenantApprovalStrategy string
    Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].

Response

201 — Created

  • AllowCrossGroupApproval boolean
    Whether one person’s approval can count toward more than one approval group they belong to.
  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovalGroups array of object
    The groups of approvers, each with its own minimum. A change is approved only when every group meets its minimum.
    • ApprovingTeamIds array of string
      The teams who are authorized to approve on behalf of the group.
    • ApprovingUserIds array of string
      The users who are authorized to approve on behalf of the group.
    • Id string
    • MinimumApproversRequired integer
      A number of minimum approvers required from this group to authorize the deployment. Minimum 1. Maximum 100.
    • Name string
      Minimum length 1.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
    The description of the approval rule.
  • Id string
    The ID of the approval rule.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • Name string
    The name of the approval rule. Minimum length 1.
  • Scopes array of object
    The scopes this approval rule applies to.
    • EnvironmentIds array of string
    • EnvironmentTags array of string
    • Id string
    • Name string
      Minimum length 1.
    • TenantIds array of string
    • TenantTags array of string
    • Type string
  • SpaceId string
    The ID of the space containing the approval rule.
  • TenantApprovalStrategy string
    Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].

Example Request

JSON
{
  "AllowCrossGroupApproval": false,
  "AllowSelfApproval": false,
  "ApprovalGroups": [
    {
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "Id": "string",
      "MinimumApproversRequired": 0,
      "Name": "string"
    }
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "IsDisabled": false,
  "Name": "string",
  "Scopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "Name": "string",
      "TenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantTags": [
        "string"
      ],
      "Type": "string"
    }
  ],
  "SpaceId": "Spaces-1",
  "TenantApprovalStrategy": "string"
}

Example Response

JSON
{
  "AllowCrossGroupApproval": false,
  "AllowSelfApproval": false,
  "ApprovalGroups": [
    {
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "Id": "string",
      "MinimumApproversRequired": 0,
      "Name": "string"
    }
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IsDisabled": false,
  "Name": "string",
  "Scopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "Name": "string",
      "TenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantTags": [
        "string"
      ],
      "Type": "string"
    }
  ],
  "SpaceId": "Spaces-1",
  "TenantApprovalStrategy": "string"
}

Gets an ApprovalRuleResource by ID

GET /api/{spaceId}/approvalrules/{id}

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/{id}.

Gets an ApprovalRule by ID.

Path Parameters

  • id string (required)
    The ID of the approval rule.
  • spaceId string (required)
    The ID of the space containing the resource(s).

Response

200 — Success

  • AllowSelfApproval boolean
  • ApprovingTeamIds array of string
  • ApprovingUserIds array of string
  • DeploymentApprovalStrategy string
  • Description string
  • Id string
  • IdScopes array of object
    • EnvironmentIds array of string
      IDs of Environments to include in the scope.
    • Id string
    • ProjectId string
      ID of Project to include in the scope.
  • IsDisabled boolean
  • MinimumApproversRequired integer
  • Name string
    Minimum length 1.
  • ScopingStrategy string
  • SpaceId string
  • TagScopes array of object
    • EnvironmentTags array of string
      Canonical IDs or Names of Environment tags to include in the scope.
    • Id string
    • ProjectTags array of string
      Canonical IDs or Names of Project tags to include in the scope.
  • TenantApprovalStrategy string

Example Response

JSON
{
  "AllowSelfApproval": false,
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "Id": "string",
      "ProjectId": "Projects-1"
    }
  ],
  "IsDisabled": false,
  "MinimumApproversRequired": 0,
  "Name": "string",
  "ScopingStrategy": "string",
  "SpaceId": "Spaces-1",
  "TagScopes": [
    {
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "ProjectTags": [
        "string"
      ]
    }
  ],
  "TenantApprovalStrategy": "string"
}

Modifies an existing approval rule in the specified Octopus Deploy space

PUT /api/{spaceId}/approvalrules/{id}

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/{id}.

Path Parameters

  • id string (required)
  • spaceId string (required)

Request Body

  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovingTeamIds array of string
    A list of team ids who are authorized to approve deployments.
  • ApprovingUserIds array of string
    A list of user ids who are authorized to approve deployments.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
  • Id string (required)
  • IdScopes array of object
    A list of project and environment ids this approval rule will apply to.
    • EnvironmentIds array of string (required)
      IDs of Environments to include in the scope.
    • Id string
    • ProjectId string (required)
      ID of Project to include in the scope.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • MinimumApproversRequired integer
    Set a number of minimum approvers required to authorize the deployment. Minimum 1. Maximum 100.
  • Name string (required)
    Minimum length 1. Maximum length 200.
  • ScopingStrategy string
    How to scope this approval rule. [“Tag”, “Id”].
  • SpaceId string (required)
  • TagScopes array of object
    A list of project and environment tags this approval rule will apply to.
    • EnvironmentTags array of string (required)
      Canonical IDs or Names of Environment tags to include in the scope.
    • Id string
    • ProjectTags array of string (required)
      Canonical IDs or Names of Project tags to include in the scope.
  • TenantApprovalStrategy string
    How one change request is reused across tenants for a release. [“PerRelease”, “PerTenant”].

Response

200 — Success

  • AllowSelfApproval boolean
  • ApprovingTeamIds array of string
  • ApprovingUserIds array of string
  • DeploymentApprovalStrategy string
  • Description string
  • Id string
  • IdScopes array of object
    • EnvironmentIds array of string
      IDs of Environments to include in the scope.
    • Id string
    • ProjectId string
      ID of Project to include in the scope.
  • IsDisabled boolean
  • MinimumApproversRequired integer
  • Name string
    Minimum length 1.
  • ScopingStrategy string
  • SpaceId string
  • TagScopes array of object
    • EnvironmentTags array of string
      Canonical IDs or Names of Environment tags to include in the scope.
    • Id string
    • ProjectTags array of string
      Canonical IDs or Names of Project tags to include in the scope.
  • TenantApprovalStrategy string

Example Request

JSON
{
  "AllowSelfApproval": false,
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "Id": "string",
      "ProjectId": "Projects-1"
    }
  ],
  "IsDisabled": false,
  "MinimumApproversRequired": 0,
  "Name": "string",
  "ScopingStrategy": "string",
  "SpaceId": "Spaces-1",
  "TagScopes": [
    {
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "ProjectTags": [
        "string"
      ]
    }
  ],
  "TenantApprovalStrategy": "string"
}

Example Response

JSON
{
  "AllowSelfApproval": false,
  "ApprovingTeamIds": [
    "Teams-1",
    "..."
  ],
  "ApprovingUserIds": [
    "Users-1",
    "..."
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IdScopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "Id": "string",
      "ProjectId": "Projects-1"
    }
  ],
  "IsDisabled": false,
  "MinimumApproversRequired": 0,
  "Name": "string",
  "ScopingStrategy": "string",
  "SpaceId": "Spaces-1",
  "TagScopes": [
    {
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "ProjectTags": [
        "string"
      ]
    }
  ],
  "TenantApprovalStrategy": "string"
}

Deletes an existing ApprovalRule

DELETE /api/{spaceId}/approvalrules/{id}

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/{id}.

Path Parameters

  • id string (required)
    The id of the ApprovalRule.
  • spaceId string (required)
    The id of the space for the ApprovalRule.

Response

200 — Response to deleting a ApprovalRule

Example Response

JSON
{}

Gets an approval rule by ID, with its scopes

GET /api/{spaceId}/approvalrules/{id}/v2

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/{id}/v2.

Path Parameters

  • id string (required)
    The ID of the approval rule.
  • spaceId string (required)
    The ID of the space containing the resource(s).

Response

200 — An approval rule, with its scopes expressed as keyed collections of values

  • AllowCrossGroupApproval boolean
    Whether one person’s approval can count toward more than one approval group they belong to.
  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovalGroups array of object
    The groups of approvers, each with its own minimum. A change is approved only when every group meets its minimum.
    • ApprovingTeamIds array of string
      The teams who are authorized to approve on behalf of the group.
    • ApprovingUserIds array of string
      The users who are authorized to approve on behalf of the group.
    • Id string
    • MinimumApproversRequired integer
      A number of minimum approvers required from this group to authorize the deployment. Minimum 1. Maximum 100.
    • Name string
      Minimum length 1.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
    The description of the approval rule.
  • Id string
    The ID of the approval rule.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • Name string
    The name of the approval rule. Minimum length 1.
  • Scopes array of object
    The scopes this approval rule applies to.
    • EnvironmentIds array of string
    • EnvironmentTags array of string
    • Id string
    • Name string
      Minimum length 1.
    • TenantIds array of string
    • TenantTags array of string
    • Type string
  • SpaceId string
    The ID of the space containing the approval rule.
  • TenantApprovalStrategy string
    Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].

Example Response

JSON
{
  "AllowCrossGroupApproval": false,
  "AllowSelfApproval": false,
  "ApprovalGroups": [
    {
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "Id": "string",
      "MinimumApproversRequired": 0,
      "Name": "string"
    }
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IsDisabled": false,
  "Name": "string",
  "Scopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "Name": "string",
      "TenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantTags": [
        "string"
      ],
      "Type": "string"
    }
  ],
  "SpaceId": "Spaces-1",
  "TenantApprovalStrategy": "string"
}

Modifies an existing approval rule in the specified Octopus Deploy space

PUT /api/{spaceId}/approvalrules/{id}/v2

Also reachable at /api/spaces/{spaceIdentifier}/approvalrules/{id}/v2.

Path Parameters

  • id string (required)
    The ID of the approval rule to modify.
  • spaceId string (required)
    The ID of the space containing the approval rule.

Request Body

  • AllowCrossGroupApproval boolean
    Whether one person’s approval can count toward more than one approval group they belong to.
  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovalGroups array of object
    The groups of approvers, each with its own minimum. Groups with an Id replace the existing group; groups without one are added. Leave out to keep the current groups.
    • ApprovingTeamIds array of string (required)
      The teams who are authorized to approve on behalf of the group.
    • ApprovingUserIds array of string (required)
      The users who are authorized to approve on behalf of the group.
    • Id string
    • MinimumApproversRequired integer (required)
      A number of minimum approvers required from this group to authorize the deployment. Minimum 1. Maximum 100.
    • Name string (required)
      Minimum length 1.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
    The description of the approval rule.
  • Id string (required)
    The ID of the approval rule to modify.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • Name string (required)
    The name of the approval rule. Minimum length 1. Maximum length 200.
  • Scopes array of object
    The scopes this approval rule applies to. Replaces any existing scopes.
    • EnvironmentIds array of string
    • EnvironmentTags array of string
    • Id string
    • Name string (required)
      Minimum length 1.
    • TenantIds array of string
    • TenantTags array of string
    • Type string (required)
  • SpaceId string (required)
    The ID of the space containing the approval rule.
  • TenantApprovalStrategy string
    Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].

Response

200 — An approval rule, with its scopes expressed as keyed collections of values

  • AllowCrossGroupApproval boolean
    Whether one person’s approval can count toward more than one approval group they belong to.
  • AllowSelfApproval boolean
    Whether deployment creators are allowed to approve their own deployments.
  • ApprovalGroups array of object
    The groups of approvers, each with its own minimum. A change is approved only when every group meets its minimum.
    • ApprovingTeamIds array of string
      The teams who are authorized to approve on behalf of the group.
    • ApprovingUserIds array of string
      The users who are authorized to approve on behalf of the group.
    • Id string
    • MinimumApproversRequired integer
      A number of minimum approvers required from this group to authorize the deployment. Minimum 1. Maximum 100.
    • Name string
      Minimum length 1.
  • DeploymentApprovalStrategy string
    How one change request is reused across deployments for a release. [“PerRelease”, “PerDeployment”].
  • Description string
    The description of the approval rule.
  • Id string
    The ID of the approval rule.
  • IsDisabled boolean
    Whether this approval rule is disabled.
  • Name string
    The name of the approval rule. Minimum length 1.
  • Scopes array of object
    The scopes this approval rule applies to.
    • EnvironmentIds array of string
    • EnvironmentTags array of string
    • Id string
    • Name string
      Minimum length 1.
    • TenantIds array of string
    • TenantTags array of string
    • Type string
  • SpaceId string
    The ID of the space containing the approval rule.
  • TenantApprovalStrategy string
    Whether tenanted deployments need approving once per release, or once per tenant. [“PerRelease”, “PerTenant”].

Example Request

JSON
{
  "AllowCrossGroupApproval": false,
  "AllowSelfApproval": false,
  "ApprovalGroups": [
    {
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "Id": "string",
      "MinimumApproversRequired": 0,
      "Name": "string"
    }
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IsDisabled": false,
  "Name": "string",
  "Scopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "Name": "string",
      "TenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantTags": [
        "string"
      ],
      "Type": "string"
    }
  ],
  "SpaceId": "Spaces-1",
  "TenantApprovalStrategy": "string"
}

Example Response

JSON
{
  "AllowCrossGroupApproval": false,
  "AllowSelfApproval": false,
  "ApprovalGroups": [
    {
      "ApprovingTeamIds": [
        "Teams-1",
        "..."
      ],
      "ApprovingUserIds": [
        "Users-1",
        "..."
      ],
      "Id": "string",
      "MinimumApproversRequired": 0,
      "Name": "string"
    }
  ],
  "DeploymentApprovalStrategy": "string",
  "Description": "string",
  "Id": "string",
  "IsDisabled": false,
  "Name": "string",
  "Scopes": [
    {
      "EnvironmentIds": [
        "Environments-1",
        "..."
      ],
      "EnvironmentTags": [
        "string"
      ],
      "Id": "string",
      "Name": "string",
      "TenantIds": [
        "Tenants-1",
        "..."
      ],
      "TenantTags": [
        "string"
      ],
      "Type": "string"
    }
  ],
  "SpaceId": "Spaces-1",
  "TenantApprovalStrategy": "string"
}