Delete a data source template
DELETE/v2/themes/{themeId}/data-source-templates/{id}
const url = 'https://api.ligr.live/rest/v2/themes/1/data-source-templates/1';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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://api.ligr.live/rest/v2/themes/1/data-source-templates/1 \ --header 'Authorization: Bearer <token>'Beta. This operation can change between minor versions. See Beta status.
Removes a data source template and every pushed snapshot derived from it. A graphic that still selects the alias refuses the delete with 409. Deselect the schema on each named graphic first.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The theme identifier
The data source template identifier
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Deleted
Request is invalid
object
object
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
object
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
object
Examplegenerated
{ "message": "example"}Theme or data source template not found
object
Examplegenerated
{ "message": "example"}A graphic still selects the data schema
Body of a 409 answer for a data schema a graphic still selects.
code is always DATA_SCHEMA_IN_USE. details names one graphic per line.
object
Examplegenerated
{ "message": "example", "code": "example", "details": [ "example" ]}Api key has made too many requests
object
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
object
Examplegenerated
{ "message": "example"}