Skip to main content
POST
/
v1
/
requests
/
{request_uid}
/
approvals
Request an approval
curl --request POST \
  --url https://api.siit.io/v1/requests/{request_uid}/approvals \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "approver_uids": [
    "<any>"
  ],
  "add_to_followers": false,
  "body_text": "<string>",
  "sent_by_uid": "<string>"
}'
{
  "result": {
    "uid": "<string>",
    "body_text": "<string>",
    "event_type": "requested_approval",
    "sender_type": "user",
    "sent_by_uid": "<string>",
    "submitted_from": "public_api",
    "approver_uids": [
      "<string>"
    ],
    "created_at": "2023-11-07T05:31:56Z"
  }
}

Usage

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

request_uid
string
required

The UID of the request

Body

application/json
body_text
string | null
required

Content of the approval request

approver_uids
any[] | null

UID of one or more users

add_to_followers
boolean
default:false

Whether approvers should be added to followers of the request

sent_by_uid
string | null

Optional UID of another admin user that should be considered authoring approval request

Response

Created

result
object
I