Examples (Delete a resource)

See https://crossmedia.atlassian.net/wiki/spaces/WD/pages/2208301069/Delete+data#Delete-a-resource

Examples

With identifier

DELETE https://club-wed.wedia-group.com/api/rest/dam/data/asset/4

Delete the 4 identifier asset (Type of service: DAM).

With uniq identifier

DELETE https://club-wed.wedia-group.com/api/rest/dam/data/asset/78j1ko1ds3my1

Delete the 78j1ko1ds3my1identifier asset (Type of service: DAM).

With the unique identifier, if you don't know the type of resource, you can omit it from the URI:

DELETE https://club-wed.wedia-group.com/api/rest/dam/data/78j1ko1ds3my1

or

DELETE https://club-wed.wedia-group.com/api/rest/dam/78j1ko1ds3my1

Code examples

The following examples are given with a Basic authentication with bogus credentials.

HTTP

DELETE /api/rest/dam/data/asset/78j1ko1ds3my1 HTTP/1.1 Authorization: Basic ZGVtbzpkZW1vcHdk Host: club-wed.wedia-group.com

cURL

curl --request DELETE --url 'https://club-wed.wedia-group.com/api/rest/dam/data/asset/78j1ko1ds3my1' --header 'Authorization: Basic ZGVtbzpkZW1vcHdk'

JavaScript/fetch

 

fetch("https://club-wed.wedia-group.com/api/rest/dam/data/asset/78j1ko1ds3my1", { "method": "DELETE", "headers": { "Authorization": "Basic ZGVtbzpkZW1vcHdk" } }) .then(response => { console.log(response); }) .catch(err => { console.error(err); });

JavaScript/XMLHttpRequest

 

Java/Unirest (Basic)

Python/Request


Response sample

Since the response may vary depending on the state of the data, the query parameters, the resource configuration, and the data model, a response is presented here that may be somewhat different from what you will get in your implementation. Not all sections are documented here for the same reasons. The debug sections in particular are not documented on this page.