Approvals

Create approval

Endpoint

POST /v1/spaces/:space_id/approvals

Parameters

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

Request

cURL

curl "https://api.storyblok.com/v1/spaces/607/approvals" -d '{"approval":{"story_id":1066,"approver_id":1028}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMDI3LCJ0aW1lc3RhbXAiOjE1NDI0Njg3Nzh9.UvP5188DmyXST41ts7pTLKKjqxBpwBF-M8_hLD_Pmvc" \

Response

Body

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

Documentation