Remove a photo from a visit
DELETE/api/v1/visits/{visit_id}/photos/{id}
Managers can remove any photo; other team members only the photos they added.
- Needs an API key, and runs with the access of the member who made the key.
- Send an
Idempotency-Key. The same key with the same request within 24 hours gives the first answer again and changes nothing. - A connected AI assistant can use it too, as
deleteVisitPhoto.
Parameters
In the address
visit_idstring (uuid)requiredidstring (uuid)required
Headers
Idempotency-KeystringrequiredUnique user-scoped key for safely retrying this mutation for 24 hours.
At least 1 character. Up to 200 characters.
Responses
204The operation completed successfully.
No body.
A refusal answers in the one error shape every operation shares.
Example
A request our own tests send. The ids are made up: put your own in their place.
curl -X DELETE "https://app.tradesender.co.uk/api/v1/visits/d256e41f-3501-5cb6-9c63-1514f6995d01/photos/aa78cd59-36b5-5f15-b627-e957dcf1d775" \ -H "Authorization: Bearer $TRADESENDER_KEY" \ -H "Idempotency-Key: $(uuidgen)"