POST /api/v2/assets/:asset_id/review/approve
Set assets status to approved

Headers

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

Params

Param name Description
asset_id
required

Asset ID

Validations:

  • Must be a String

Examples

POST /api/v2/assets/r8OhSH4B2mofFVvO3Th8/review/approve
200
{
  "asset": {
    "id": "r8OhSH4B2mofFVvO3Th8",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-54@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "Test Category",
    "tags": [
      "Test",
      "Tag"
    ],
    "media_type": "placeholder",
    "modification_date": "2022-01-11T10:14:36Z",
    "created_date": "2022-01-11T10:14:34Z",
    "status": "approved",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false
  }
}
// Not autheticated
POST /api/v2/assets/:asset_id/review/approve
401
{
  "error": "Not Authorized"
}

Errors

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

POST /api/v2/assets/:asset_id/review/reject
Set assets status to rejected

Headers

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

Params

Param name Description
asset_id
required

Asset ID

Validations:

  • Must be a String

Examples

POST /api/v2/assets/usOhSH4B2mofFVvO5Dh8/review/reject
200
{
  "asset": {
    "id": "usOhSH4B2mofFVvO5Dh8",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-55@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "Test Category",
    "tags": [
      "Test",
      "Tag"
    ],
    "media_type": "placeholder",
    "modification_date": "2022-01-11T10:14:38Z",
    "created_date": "2022-01-11T10:14:36Z",
    "status": "rejected",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false
  }
}
// Not autheticated
POST /api/v2/assets/:asset_id/review/reject
401
{
  "error": "Not Authorized"
}

Errors

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

POST /api/v2/assets/:asset_id/review
Set assets status to review

Headers

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

Params

Param name Description
asset_id
required

Asset ID

Validations:

  • Must be a String

Examples

POST /api/v2/assets/xMOhSH4B2mofFVvO7Dhy/review
200
{
  "asset": {
    "id": "xMOhSH4B2mofFVvO7Dhy",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-56@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "Test Category",
    "tags": [
      "Test",
      "Tag"
    ],
    "media_type": "placeholder",
    "modification_date": "2022-01-11T10:14:41Z",
    "created_date": "2022-01-11T10:14:38Z",
    "status": "review",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false
  }
}
// Not autheticated
POST /api/v2/assets/:asset_id/review
401
{
  "error": "Not Authorized"
}

Errors

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