Delete organization letter
What this endpoint does: Soft deletes an organization letter, marking it as deleted without permanently removing it from the database. The letter will no longer appear in normal listings but can be recovered if needed.
What happens:
- Letter is marked as deleted (soft delete)
- Letter disappears from organization letters list
- Letter data is preserved in the database
- Letter can potentially be restored through database operations
Use cases:
- Remove letters that are no longer needed
- Clean up test or draft letters
- Maintain data integrity while allowing cleanup
Note: Requires writeLetters permission on the Organizations resource.
DELETE
/organizations/letters/{id}Authorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:writeor
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200
successbooleanrequiredOperation success flag
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
Request
curl -X DELETE "https://leadtime.app/api/public/organizations/letters/string" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/organizations/letters/string", {
method: "DELETE",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.delete(
"https://leadtime.app/api/public/organizations/letters/string",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
{
"success": true
}Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions