Unicat API Reference

Up - API Reference - Home


/api/p/<project gid>/assets/permanent_delete

Requires JWT.

Permanently deletes a deleted asset and its subtree.

Note: AND its subtree!
Use with care

The assets are removed from the database and are no longer recoverable.

Request

POST /api/p/<project gid>/assets/permanent_delete
Authorization: Bearer <JWT>

{
    "asset": "<asset gid>"
}

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {
        "parent": "96ec02b2-fb8d-4fb4-b952-fad0c4b88a74"
    },
    "data": {
        "assets": {
            "96ec02b2-fb8d-4fb4-b952-fad0c4b88a74": {
                
            },
            
        }
    }
}

result

parent the parent asset with updated childcount.

data

assets Asset info with hierarchy, type, name.

Error responses

400 Bad request - missing argument
401 Unauthorized - missing or expired JWT
403 Forbidden - not a member of this project
422 Unprocessable entity - permanent deletion failed