Delete a NFT

The API allows you to delete a NFT


GRAPHQL


Headers

FieldsTypeDescriptionExampleData Management
URLstring{base_url}/creators
GRAPHQLstringMUTATION
content-typestringJSONapplication/json
x-access-tokenstringsession token with validitytokencreator token

Request

mutation {
  delete_nft(nft_id: "624fc253521415614f508933") {
    message
  }
}

Request Parameters

FieldsTypeDescriptionRequired
nft_idstring_id of the NFT

Success

{
    "data": {
        "delete_nft": {
            "message": "deleted successfully"
        }
    }
}

Error

{
    "errors": [
        {
            "message": "Unauthorized",
            "locations": [
                {
                    "line": 2,
                    "column": 3
                }
            ],
            "path": ["delete_nft"]
        }
    ],
    "data": {
        "delete_nft": null
    }
}