Haivision Media Platform

Edit Video Metadata

This request updates the metadata for the specified video.

Caution

Partial updates are not supported. The full metadata set submitted in the request replaces the full previous metadata set.

Authorizations: Recordings - EDIT

Requests

PUT /apis/assets/:assetId/metadata
[{
  "name": "calypso:creator",
  "field": [
   {
     "fieldType": "STRING",
     "valueString": "haiadmin"
   }]
 },
 {
  "name": "calypso:recorded_from_session",
  "field": [
   {
      "fieldType": "STRING",
      "valueString": "e4e7c695-5d07-4646-b849-ee79a11d92aa"
   }]
 },
 {
  "name": "calypso:category:Locations",
  "field": [
   {
      "fieldType": "STRING",
      "valueString": "Chicago"
   },
   {
      "fieldType": "STRING",
      "valueString": "Montreal"
   }]
}]

Response

Success

{
 "data": [
  {
    "name": "calypso:creator",
    "field": [
      {
        "fieldType": "STRING",
        "valueString": "haiadmin"
      }
    ]
  },
  {
    "name": "calypso:recorded_from_session",
    "field": [
      {
         "fieldType": "STRING",
         "valueString": "e4e7c695-5d07-4646-b849- ee79a11d92aa"
       }
    ]
  },
  {
    "name": "calypso:category:Locations",
    "field": [
      {
        "fieldType": "STRING",
        "valueString": "Chicago"
      },
      {
        "fieldType": "STRING",
        "valueString": "Montreal"
      }
    ]
  },
  {
    "name": "calypso:creatorDisplayName",
    "field": [
      {
        "fieldType": "STRING",
        "valueString": "haiadmin"
      }
    ]
  }
]}

Error

Code

Payload

Description

400

{"code":"010001", "name":"InputValidation",
"message":<Error message>, "httpStatusCode":400}

Supplied data was insufficient or incorrect.

404

{"code":"040006", "name":"AssetNotFound",
"message":"Video not found","httpStatusCode":404}

Video with UUID Id not found.