POST
/
pub
/
v1
/
assets
/
archive
curl --request POST \
  --url https://api.rendernet.ai/pub/v1/assets/archive \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "ids": [
    "ast_01"
  ]
}'
{
  "data": [
    {
      "data": {
        "size": {
          "height": 512,
          "width": 512
        },
        "url": "object-url"
      },
      "id": "asset_id",
      "status": "archive",
      "tags": [
        "api"
      ],
      "type": "image"
    }
  ],
  "err": {
    "code": "error_code",
    "message": "error_message"
  }
}

Headers

X-API-KEY
string
required

API key needed to access our public endpoints. You can find yours under the 'Account' section of the website

Body

application/json
ids
string[]

Response

200 - application/json
A list of deleted assets
data
object[]
err
object

The error if the request was not successful