Up - API Reference - Home
Make an original asset private; it is no longer available for download.
Returns an empty URL to indicate success.
GET /dam/p/<project gid>/unpublish/<storage pathname>
Authorization: Bearer <JWT>
storage pathname
is the storage path name to the asset - not related to the path name as used in the assets data.
The current implementation uses a gid-based filename with versioning. As an example, we have an svg file in /vector/example.svg, with gid eddbe3b0-eb6a-4301-9700-c770df127456
and version 31. The pathname will be eddbe3b0-eb6a-4301-9700-c770df127456~31.svg
.
Note: unlike
/api
calls, a/dam
call NEVER refreshes the JWT
{
"success": true,
"result": {
"public_url": null,
}
},
"data": {}
}
public_url
is null
to indicate the asset is no longer available publicly
400
Bad request - missing parameters or wrong type or value
401
Permission denied - missing or expired JWT
403
Forbidden - not a member of this project
422
Unprocessable entity - asset or parent asset doesn't exist