POST
/
workspaces
/
libraries
curl --request POST \
  --url https://api.mudstack.com/workspaces/libraries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --form 'name=New Library' \
  --form 'description=<string>'
{
  "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

Body

multipart/form-data

Response

200 - application/json
The created library

The response is of type object.