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/154/approvals" -d '{"approval":{"story_id":207,"approver_id":223}}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoyMjIsInRpbWVzdGFtcCI6MTUyMzk2MzQzNn0.5alYkSZqYPDZbKdYRzgynUeZ9WI3e18L6dIZUtVvGqk" \

Response

Body

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

Documentation