v1

latestOpenAPI 3.0.12026-08-041753011.2 MB
Approval

Update an approval request

patch/v1/workspaces/{workspaceId}/approval-requests/{approvalRequestId}

Path parameters

workspaceIdstring required

Represents workspace identifier across the system.

Example:dd087fe2dd087fe2dd087fe2

Represents workspace identifier across the system.

approvalRequestIdstring required

Represents an approval request identifier across the system.

Example:940ab5acb07987125438b65y

Represents an approval request identifier across the system.

Request body

notestring

Additional notes for the approval request.

state'PENDING' | 'APPROVED' | 'WITHDRAWN_SUBMISSION' | 'WITHDRAWN_APPROVAL' | 'REJECTED' required

Specifies the approval state to set.

Example request

{
  "note": "This is a sample note.",
  "state": "PENDING"
}

Response

OK

idstring

Represents approval request identifier across the workspace.

typestring

Represents approval request type.

workspaceIdstring

Represents workspace identifier across the system.

Example response

{
  "creator": {
    "userEmail": "johhndoe@example.com",
    "userId": "5a0ab5acb07987125438b60f",
    "userName": "johhndoe"
  },
  "id": "567687e29ae1f428e7ebf564",
  "owner": {
    "startOfWeek": "MONDAY",
    "timeZone": "Europe/Budapest",
    "userId": "5a0ab5acb07987125438b60f",
    "userName": "johndoe"
  },
  "status": {
    "note": "This is a sample approval request note.",
    "state": "APPROVED",
    "updatedAt": "2020-01-01T08:00:00Z",
    "updatedBy": "5a0ab5acb07987125438b60f",
    "updatedByUserName": "juandelacruz"
  },
  "workspaceId": "64a687e29ae1f428e7ebe303"
}