Delete a collection model
const url = 'https://acme.mykreezalid.com/api/v1/collection-models/example?by=handle';const options = {method: 'DELETE', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url 'https://acme.mykreezalid.com/api/v1/collection-models/example?by=handle' \ --header 'Authorization: Basic <credentials>'Its collections stay where they are, online, on their own: each first takes what the model gave it (name, texts, SEO, indexing), so that it shows as before.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The model’s handle, or its id with by=id
Query Parameters
Section titled “Query Parameters”How the path names the collection: handle (the default, which also finds an integrator’s source handle) or id. A handle may be made of digits only, so an id is never guessed.
Responses
Section titled “Responses”Deleted
object
Example
{ "success": true, "message": "Collection model deleted"}by is not handle or id, or with by=id the reference is not a whole number
Why a collection or collection model request was refused.
object
The problems found: for a collection, field by field, the rules not met and their messages. Present only when there are some.
Example
{ "success": false, "message": "Collection handle is required"}Collection model not found
Why a collection or collection model request was refused.
object
The problems found: for a collection, field by field, the rules not met and their messages. Present only when there are some.
Example
{ "success": false, "message": "Collection handle is required"}