v3

latestSwagger 2.02026-08-067506752.0 MB
approval-delegate

List the acting user's approval delegates

get/v2/org/{orgId}/approval-delegate

Path parameters

orgIdstring required

Org identifier (id or slug)

Response

successful operation

idstring required

globally unique id

orgIdstring required

parent organization id

userIdstring required

user who set the delegate (the original approver)

type'SCENARIO' | 'TIME_OFF' | 'FORM' required

type of approval being delegated

delegateJobIdstring required

job id of the delegate (job must be filled at set-time)

startDatestring date

date the delegation becomes active, inclusive (the delegate's read-visibility lower bound); defaults to the org's today on create/reassignment

endDatestring date

date the delegation stops being active, inclusive; null = never expires

createIdstring

created by user id

createBehalfIdstring

created on behalf of user id

createAtstring

created timestamp

updateIdstring

last updated by user id

updateBehalfIdstring

last updated on behalf of user id

updateAtstring

last updated timestamp

Example response

[
  {
    "id": "588f7ee98f138b19220041a7",
    "orgId": "588f7ee98f138b19220041a7",
    "userId": "588f7ee98f138b19220041a7",
    "delegateJobId": "588f7ee98f138b19220041a7",
    "createId": "588f7ee98f138b19220041a7",
    "createBehalfId": "588f7ee98f138b19220041a7",
    "createAttribution": {
      "principalUserId": "588f7ee98f138b19220041a7",
      "agentUserIds": [
        "588f7ee98f138b19220041a7"
      ],
      "eventId": "588f7ee98f138b19220041a7",
      "aiChatId": "588f7ee98f138b19220041a7"
    },
    "createAt": "2017-01-24T13:57:52Z",
    "updateId": "588f7ee98f138b19220041a7",
    "updateBehalfId": "588f7ee98f138b19220041a7",
    "updateAttribution": {
      "principalUserId": "588f7ee98f138b19220041a7",
      "agentUserIds": [
        "588f7ee98f138b19220041a7"
      ],
      "eventId": "588f7ee98f138b19220041a7",
      "aiChatId": "588f7ee98f138b19220041a7"
    },
    "updateAt": "2017-01-24T13:57:52Z"
  }
]