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/mw4bfIIBxZWjhF1kOU6D/review/approve
200
{
  "asset": {
    "id": "mw4bfIIBxZWjhF1kOU6D",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-41@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "test category",
    "tags": [
      "test",
      "tag"
    ],
    "ai_tags": null,
    "media_type": "placeholder",
    "modification_date": "2022-08-08T06:18:56Z",
    "created_date": "2022-08-08T06:18:55Z",
    "status": "approved",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false,
    "thumbnail_project_id": null
  }
}
// Not authenticated
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/qQ4bfIIBxZWjhF1kQU6_/review/reject
200
{
  "asset": {
    "id": "qQ4bfIIBxZWjhF1kQU6_",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-42@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "test category",
    "tags": [
      "test",
      "tag"
    ],
    "ai_tags": null,
    "media_type": "placeholder",
    "modification_date": "2022-08-08T06:18:58Z",
    "created_date": "2022-08-08T06:18:57Z",
    "status": "rejected",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false,
    "thumbnail_project_id": null
  }
}
// Not authenticated
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/uQ4bfIIBxZWjhF1kSk5u/review
200
{
  "asset": {
    "id": "uQ4bfIIBxZWjhF1kSk5u",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "admin-user-43@example.com",
    "description": "Sample asset description.",
    "title": "Sample Asset",
    "category": "test category",
    "tags": [
      "test",
      "tag"
    ],
    "ai_tags": null,
    "media_type": "placeholder",
    "modification_date": "2022-08-08T06:19:02Z",
    "created_date": "2022-08-08T06:18:59Z",
    "status": "review",
    "original_filename": null,
    "md5_sum": null,
    "deleted": false,
    "thumbnail_project_id": null
  }
}
// Not authenticated
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

POST /api/v2/assets/review/bulk
Set multiple 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_ids
required

Array of asset_id

Validations:

  • Must be an array of String

Examples

POST /api/v2/assets/review/bulk
{
  "asset_ids": [
    "3A4bfIIBxZWjhF1kWU7W"
  ]
}
200
{
  "assets": [
    {
      "id": "3A4bfIIBxZWjhF1kWU7W",
      "external_id": null,
      "project_id": null,
      "parent_asset_id": null,
      "owner": "admin-user-44@example.com",
      "description": "Sample asset description.",
      "title": "Sample Asset",
      "category": "test category",
      "tags": [
        "test",
        "tag"
      ],
      "ai_tags": null,
      "media_type": "placeholder",
      "modification_date": "2022-08-08T06:19:05Z",
      "created_date": "2022-08-08T06:19:03Z",
      "status": "review",
      "original_filename": null,
      "md5_sum": null,
      "deleted": false,
      "thumbnail_project_id": null
    }
  ]
}
// Not authenticated
POST /api/v2/assets/review/bulk
401
{
  "error": "Not Authorized"
}

Errors

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

POST /api/v2/assets/approve/bulk
Set multiple 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_ids
required

Array of asset_id

Validations:

  • Must be an array of String

Examples

POST /api/v2/assets/review/approve/bulk
{
  "asset_ids": [
    "8g4bfIIBxZWjhF1kY07P"
  ]
}
200
{
  "assets": [
    {
      "id": "8g4bfIIBxZWjhF1kY07P",
      "external_id": null,
      "project_id": null,
      "parent_asset_id": null,
      "owner": "admin-user-45@example.com",
      "description": "Sample asset description.",
      "title": "Sample Asset",
      "category": "test category",
      "tags": [
        "test",
        "tag"
      ],
      "ai_tags": null,
      "media_type": "placeholder",
      "modification_date": "2022-08-08T06:19:08Z",
      "created_date": "2022-08-08T06:19:06Z",
      "status": "approved",
      "original_filename": null,
      "md5_sum": null,
      "deleted": false,
      "thumbnail_project_id": null
    }
  ]
}
// Not authenticated
POST /api/v2/assets/review/approve/bulk
401
{
  "error": "Not Authorized"
}

Errors

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

POST /api/v2/assets/reject/bulk
Set multiple 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_ids
required

Array of asset_id

Validations:

  • Must be an array of String

Examples

POST /api/v2/assets/review/reject/bulk
{
  "asset_ids": [
    "BQ4bfIIBxZWjhF1kbk-s"
  ]
}
200
{
  "assets": [
    {
      "id": "BQ4bfIIBxZWjhF1kbk-s",
      "external_id": null,
      "project_id": null,
      "parent_asset_id": null,
      "owner": "admin-user-46@example.com",
      "description": "Sample asset description.",
      "title": "Sample Asset",
      "category": "test category",
      "tags": [
        "test",
        "tag"
      ],
      "ai_tags": null,
      "media_type": "placeholder",
      "modification_date": "2022-08-08T06:19:10Z",
      "created_date": "2022-08-08T06:19:08Z",
      "status": "rejected",
      "original_filename": null,
      "md5_sum": null,
      "deleted": false,
      "thumbnail_project_id": null
    }
  ]
}
// Not authenticated
POST /api/v2/assets/review/reject/bulk
401
{
  "error": "Not Authorized"
}

Errors

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