Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

PUT /api/v2/assets/zo2uT3wBW4fR4Me2kXwE
{
  "title": "Modified Sample Asset",
  "description": "Modified Description",
  "category": "Modified Category",
  "tags": [
    "Test",
    "Tags",
    "Here"
  ],
  "external_id": "modified_external_id"
}
200
{
  "asset": {
    "id": "zo2uT3wBW4fR4Me2kXwE",
    "external_id": "modified_external_id",
    "project_id": null,
    "parent_asset_id": null,
    "owner": "support@mediapocket.io",
    "description": "Modified Description",
    "title": "Modified Sample Asset",
    "category": "Modified Category",
    "tags": [
      "Test",
      "Tags",
      "Here"
    ],
    "media_type": "placeholder",
    "modification_date": "2021-10-05T09:00:14Z",
    "created_date": "2021-10-05T09:00:12Z",
    "status": "open",
    "original_filename": null,
    "deleted": false
  },
  "errors": {}
}

Params

Param name Description
title
optional

Title

Validations:

  • Must be a String

description
optional

Description

Validations:

  • Must be a String

category
optional

Category

Validations:

  • Must be a String

tags
optional

Tags

Validations:

  • Must be an array of String

external_id
optional

External ID

Validations:

  • Must be a String

Headers

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