Delete a position screenshot.
DELETE
/api/positions/{id}/images/{imageId}
const url = 'https://api.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/images/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE'};
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.tradr.cloud/api/positions/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/images/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Authed. Removes one screenshot from a position the user owns. When the screenshot was stored as an object, its bucket object is deleted best-effort after the row is removed; a failed object delete is logged and the request still returns 204.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
imageId
required
string format: uuid
Responses
Section titled “ Responses ”Screenshot deleted.
Screenshot not found (or not owned by the user).