Approvals

Create approval

Endpoint

POST /v1/spaces/:space_id/approvals

Parameters

Name Description
approval[story_id] required Approval story
approval[approver_id] required Approval approver

Request

cURL

curl "https://api.storyblok.com/v1/spaces/555/approvals" -d '{"approval":{"story_id":968,"approver_id":801}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo4MDAsInRpbWVzdGFtcCI6MTUzMjY4MDQ3Nn0.HiAWo6HpFrxetm4qHk6E2b8drMD8Pb9jsWGn27K24-8" \

Response

Body

{
  "approval": {
    "id": 5,
    "status": "pending"
  }
}

Documentation