Drafts

Edit a draft

Changes the subject or body of a pending draft before it's approved. Needs an admin key (like approving), so an agent can't change a draft after a person has reviewed it. Decided drafts return 409.

patch/v1/drafts/{draft_id}

Request

  • Base URL: https://api.send0.dev
  • URL: https://api.send0.dev/v1/drafts/{draft_id}
  • Auth: HTTP bearer

Path parameters

draft_idstring required

Draft id (drf_…)

Request body

subjectstring
textstring nullable
htmlstring nullable

Response

Draft

object'draft' required
idstring required
inbox_idstring required
thread_idstring nullable required
status'pending' | 'approved' | 'rejected' | 'sent' required
kind'new' | 'reply' | 'forward' required
subjectstring required
textstring nullable required
htmlstring nullable required
decided_bystring nullable required
decided_atstring date-time nullable required
created_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.