Archive an image
DELETE/v1/media/images/{imageId}
DELETE
/v1/media/images/{imageId}
const url = 'https://api.ligr.live/rest/v1/media/images/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/v1/media/images/1 \ --header 'Authorization: Bearer <token>'Archives one image, as the dashboard does. The image leaves the list, but its url keeps working,
so data source rows that use it do not break. Restore the image in the dashboard.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”imageId
required
Entity identifier
integer format: int32
The image id
Responses
Section titled “Responses”Archived
Request is invalid
Media typeapplication/json
object
message
required
string
details
required
object
key
additional properties
Examplegenerated
{ "message": "example", "details": { "additionalProperty": "example" }}Missing or invalid api key
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Api key provides insufficient access for the request
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Image not found
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}Organization has made too many requests
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}An unexpected error has occured. If problems persist please contact support
Media typeapplication/json
object
message
required
string
Examplegenerated
{ "message": "example"}