Skip to main content
Version: FINAL-1.0.0

Approve all pending deliverables of project

putapi.bunnystudio.com/deliverables/project/{projectId}

This endpoint approves all the deliverables of a project that are pending approval.

Requirements​

Authentication

Path parameters​

projectId
string
Bunny Studio UUID of the project you want to approve

Request body​

status
string
Should send the string "approve"

Request example​

 curl --request PUT \ 
--url https://api.bunnystudio.com/deliverables/project/PROJECT_ID \
--header "Content-Type: application/json" \
--header "x-access-token: YOUR_TOKEN" \
--data '{
"status": "approved",
}'

Response format​

id
string
A UUID (Universal Unique Identifier) that identifies the deliverable on Bunny Studio's database. You should use this ID for all API actions related to a specific deliverable.
serviceSubCategory
string
The category of this deliverable
name
string
The name of the deliverable. If it consists of multiple parts, the string will usually represent the part number (e.g. "Part 2").
status
string
The status of the deliverable

Response example​

[
{
"id": "671e74ab-ca44-4d87-9346-ae8318c44774",
"serviceSubCategory": "voice_over",
"name": "part1",
"status": "approved",
}
...
]

Error responses​

500 Error approving project​

  {
status: 500,
type: 'ERROR_APPROVING_PROJECT_DELIVERABLES',
message: 'There was an error approving the deliverables of project \"PROJECT_ID\", please talk with our support team',
}

404 Project not exist​

  {
status: 404,
type: 'PROJECT_NO_EXIST',
message: 'Project with id \"PROJECT_ID\" not found',
}

400 Project not pending approval​

  {
status: 404,
type: 'PROJECT_NOT_PENDING_APPROVAL',
message: 'Project with id \"PROJECT_ID\" does not have any pending approval deliverables',
}

400 Project already approved​

  {
status: 404,
type: 'PROJECT_ALREADY_APPROVED',
message: 'Project with id \"PROJECT_ID\" is already approved',
}

403 Forbidden​

  {
status: 403,
type: 'FORBIDDEN',
message: 'You do not have permission to do this action',
}

422 Project Id required​

  {
status: 422,
type: 'ID_REQUIRED',
message: 'The field "\projectId\" is required',
}