API Documentation
Status
Platform API
DAMC API
- Overview
- GETList assets
- GETList workers
- GETList asset maintenances
- GETList asset maintenance by id
- GETTotal asset maintenances
- GETList collectives
- GETVerify viewer
- POSTCreate asset
- POSTCreate worker
- POSTCreate collective
- POSTAdd workers to collective
- POSTTransfer asset
- POSTAdd asset viewers
- POSTAdd collective to asset
- POSTCreate maintenances
- PUTUpdate asset uri
- PATCHRemove asset viewers
- DELRemove collective of workers
- DELRemove workers from collective
DAMC API
Remove asset viewers
PATCH
/
damc
/
assets
/
viewers
/
remove
/
Copy
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>"
]
}'
Copy
{
"chainId": 80002,
"transactionHash": "0x0a535c95f4450bf2b468a606a093936b90d09c13c1cac6ca2d2f8543f9bfb433"
}
Authorizations
Body
application/json
The body is of type object
.
Response
200
application/json
Viewers removed successfully from the asset
An error occurred.
Copy
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>"
]
}'
Copy
{
"chainId": 80002,
"transactionHash": "0x0a535c95f4450bf2b468a606a093936b90d09c13c1cac6ca2d2f8543f9bfb433"
}
Assistant
Responses are generated using AI and may contain mistakes.