PUT
/
workspaces
/
libraries
/
{library_id}
/
assets
/
{asset_id}
curl --request PUT \
  --url https://api.mudstack.com/workspaces/libraries/{library_id}/assets/{asset_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>'
{
  "id": "<string>",
  "workspace_id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "thumbnail_file_id": "<string>",
  "defaultAvatar": 123,
  "created_by_user_id": "<string>",
  "sequence": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string
required
x-workspace-id
string
required

Path Parameters

library_id
string
required
asset_id
string
required

Response

200 - application/json
Successfully added asset to library

The response is of type object.