Bulk Tag

​

Add / remove tags from multiple assets at once.

Body

application/json
  • List of tags to add to given assets.

  • List of asset ids to update the tags for.

  • List of tags to remove from given assets. Pass empty array if nothing is to be removed.

  • Workspace ID in which the videos needs the operation

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/video/assets/bulk/tag
import Gumlet from '@gumlet/nodejs-sdk';

const client = new Gumlet({
  apiKey: process.env['API_KEY'], // defaults to the API_KEY env var
});

const videoAsset = await client.videoAssets.tagMany({
  source_id: '60bd2ba353ff754d28179ee6',
  add_tags: ['tag-1'],
  remove_tags: ['playlist-1'],
  asset_list: ['6221db301c8b821b0519fba0', '61e8f2726ec832ab2ac4fa6e'],
});

console.log(videoAsset);
{
  "success": true
}