Skip to content
Leadtime
English
Esc
navigateopen⌘Jpreview

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 · headerrequired
Scopes:api:write
or
AuthorizationBearer token (JWT) · headerrequired
Path parameters
idstringrequired
Responses
200
successbooleanrequired
Operation 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"
Response
{
  "success": true
}