Errors

Code Description
401 Unauthorized
500 Internal Server Error
422 Missing parameters

Examples

POST /api/v2/assets
{
  "title": "Sample Asset",
  "description": "Sample asset from API V2",
  "category": "Sample",
  "tags": [
    "sample",
    "test"
  ]
}
200
{
  "asset": {
    "id": "zY2uT3wBW4fR4Me2jHyH",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "support@mediapocket.io",
    "description": "Sample asset from API V2",
    "title": "Sample Asset",
    "category": "Sample",
    "tags": [
      "sample",
      "test"
    ],
    "media_type": "placeholder",
    "modification_date": "2021-10-05T09:00:12Z",
    "created_date": "2021-10-05T09:00:11Z",
    "status": "open",
    "original_filename": null,
    "deleted": false
  }
}
POST /api/v2/assets
{
  "title": "Sample Live Asset",
  "description": "Sample live asset from API V2",
  "category": "Sample",
  "media_type": "live",
  "tags": [
    "sample",
    "test"
  ]
}
200
{
  "asset": {
    "id": "3o2uT3wBW4fR4Me28nz3",
    "external_id": null,
    "project_id": null,
    "parent_asset_id": null,
    "owner": "support@mediapocket.io",
    "description": "Sample live asset from API V2",
    "title": "Sample Live Asset",
    "category": "Sample",
    "tags": [
      "sample",
      "test"
    ],
    "media_type": "live",
    "modification_date": "2021-10-05T09:00:39Z",
    "created_date": "2021-10-05T09:00:38Z",
    "status": "open",
    "original_filename": null,
    "deleted": false
  }
}

Params

Param name Description
title
required

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

media_type
optional

Media type

Validations:

  • Must be one of: live.

Headers

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