provider organizationslegal_documents DELETE
/api/organizations/{organization_id}/legal_documents/{id}/ @utdk/posthog
/api/organizations/{organization_id}/legal_documents/{id}/ legal_documents_destroy
Delete an unsigned legal document. The PandaDoc envelope is voided
first so the original signer can no longer complete it; only if that
succeeds is the row removed, freeing the unique-per-org-per-type
constraint so a fresh document can be generated.
Returns 503 if the PandaDoc void fails — the row stays in that case
and the frontend should prompt the user to retry. Returns 403 for
signed documents (legal artifacts; staff can still delete signed
rows from Django admin).
- id path required
- string
- organization_id path required
- ID of the organization you're trying to access. To find the ID of the organization, make a call to /api/organizations/.
- string
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.legalDocumentsDestroy()