Headers

Header name Description
Content-Type
required
application/json
X-API-KEY
required
YOUR_API_KEY

Examples

// Successful request
POST /api/v2/collections/4cdi5CK5WEMW_dKiVvNm/private
200
{
  "is_public": false
}
// If :collection_id is not found
POST /api/v2/collections/not-found-id/private
404
{
  "error": "collection not found"
}
// Is private already
POST /api/v2/collections/B_RsGOhZFL9IFlXBhHMo/private
400
{
  "error": "Collection is private already"
}

Errors

Code Description
401 Unauthorized
404 Not found
500 Internal Server Error
422 Missing parameters