PATCH
/
damc
/
assets
/
viewers
/
remove
curl --request PATCH \
  --url https://dev-api.rootkey.ai/api-v1/damc/assets/viewers/remove/ \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "assetId": [
    "<any>"
  ],
  "ownerWallet": "<string>",
  "viewers": [
    "<any>"
  ]
}'
{
  "chainId": 80002,
  "transactionHash": "0x0a535c95f4450bf2b468a606a093936b90d09c13c1cac6ca2d2f8543f9bfb433"
}

Authorizations

x-api-key
string
header
required

Body

application/json
assetId
any[]
required

The Id of the assets to join the list of workers

ownerWallet
string
required

A previous admin with the rights to add new workers

viewers
any[]
required

The address of the asset viewer

Response

200
application/json
Viewers removed successfully from the asset

An error occurred.

message
string
errorCode
string
docUrl
string
timestamp
string