PUT
/
workspaces
/
assets
/
{asset_id}
/
subscriptions
curl --request PUT \
  --url https://api.mudstack.com/workspaces/assets/{asset_id}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'x-account-id: <x-account-id>' \
  --header 'x-workspace-id: <x-workspace-id>'
[
  {
    "asset_id": "<string>",
    "user_id": "<string>",
    "subscribed": true
  }
]

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

asset_id
string
required

The ID of the asset

Query Parameters

subscribed
boolean
required

Subscription status

Response

200 - application/json
Updated subscription status
asset_id
string
required

The unique identifier of the asset.

user_id
string
required

The unique identifier of the user.

subscribed
boolean
required

Indicates whether the user is subscribed to the asset.