Get a list of all approvals for a server task approval
GET /api
Also reachable at /api.
Path Parameters
serverTaskApprovalIdstring (required)
The id of the Server Task Approval.spaceIdstring (required)
The id of the space for the server task approval.
Response
200 — Success
ApprovalGroupIdstringApproverActorTypeenum
Allowed values:Unknown,System,User,Agent,ServiceAccount.ApproverDisplayNamestringApproverEmailAddressstringApproverUsernamestringIdstringNamestringNotesstringServerTaskApprovalIdstringSpaceIdstringStatusstringUserIdstring
Example Response
[
{
"ApprovalGroupId": "string",
"ApproverActorType": "Unknown",
"ApproverDisplayName": "string",
"ApproverEmailAddress": "string",
"ApproverUsername": "string",
"Id": "string",
"Name": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string",
"UserId": "Users-1"
}
]Create a new Approval
POST /api
Also reachable at /api.
Path Parameters
serverTaskApprovalIdstring (required)
The Server Task Approval id.spaceIdstring (required)
The id of the space for the Approval.
Request Body
ApprovalGroupIdstring
The approval group this approval counts toward. Needed when you’re in more than one of the rule’s approval groups and one approval can’t count toward several.Notesstring (required)
A reason for approving or rejecting the deployment. Minimum length 1.ServerTaskApprovalIdstring (required)
The Server Task Approval id.SpaceIdstring (required)
The id of the space for the Approval.Statusstring (required)
Approve or reject the deployment. [“Approved”, “Rejected”].
Response
201 — Created
ApprovalGroupIdstringApproverActorTypeenum
Allowed values:Unknown,System,User,Agent,ServiceAccount.ApproverDisplayNamestringApproverEmailAddressstringApproverUsernamestringIdstringNamestringNotesstringServerTaskApprovalIdstringSpaceIdstringStatusstringUserIdstring
Example Request
{
"ApprovalGroupId": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string"
}Example Response
{
"ApprovalGroupId": "string",
"ApproverActorType": "Unknown",
"ApproverDisplayName": "string",
"ApproverEmailAddress": "string",
"ApproverUsername": "string",
"Id": "string",
"Name": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string",
"UserId": "Users-1"
}Get an Approval by id
GET /api
Also reachable at /api.
Path Parameters
idstring (required)
The id of the Approval.serverTaskApprovalIdstring (required)
The id of the Server Task Approval.spaceIdstring (required)
The id of the space for the Approval.
Response
200 — Success
ApprovalGroupIdstringApproverActorTypeenum
Allowed values:Unknown,System,User,Agent,ServiceAccount.ApproverDisplayNamestringApproverEmailAddressstringApproverUsernamestringIdstringNamestringNotesstringServerTaskApprovalIdstringSpaceIdstringStatusstringUserIdstring
Example Response
{
"ApprovalGroupId": "string",
"ApproverActorType": "Unknown",
"ApproverDisplayName": "string",
"ApproverEmailAddress": "string",
"ApproverUsername": "string",
"Id": "string",
"Name": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string",
"UserId": "Users-1"
}Modify an Approval
PUT /api
Also reachable at /api.
Path Parameters
idstring (required)
The id of the Approval.serverTaskApprovalIdstring (required)
The id of the Server Task Approval.spaceIdstring (required)
The id of the space for the Approval.
Request Body
ApprovalGroupIdstring
The approval group this approval counts toward. Needed when you’re in more than one of the rule’s approval groups and one approval can’t count toward several.Idstring (required)
The id of the Approval.Notesstring (required)
A reason for approving or rejecting the deployment. Minimum length 1.ServerTaskApprovalIdstring (required)
The id of the Server Task Approval.SpaceIdstring (required)
The id of the space for the Approval.Statusstring (required)
Approve or reject the deployment. [“Approved”, “Rejected”].
Response
200 — Success
ApprovalGroupIdstringApproverActorTypeenum
Allowed values:Unknown,System,User,Agent,ServiceAccount.ApproverDisplayNamestringApproverEmailAddressstringApproverUsernamestringIdstringNamestringNotesstringServerTaskApprovalIdstringSpaceIdstringStatusstringUserIdstring
Example Request
{
"ApprovalGroupId": "string",
"Id": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string"
}Example Response
{
"ApprovalGroupId": "string",
"ApproverActorType": "Unknown",
"ApproverDisplayName": "string",
"ApproverEmailAddress": "string",
"ApproverUsername": "string",
"Id": "string",
"Name": "string",
"Notes": "string",
"ServerTaskApprovalId": "string",
"SpaceId": "Spaces-1",
"Status": "string",
"UserId": "Users-1"
}