{"version":"2.1.223","anchor":"programmatic-submission-of-a-queued-feedback-draft","canonical_anchor":"programmatic-submission-of-a-queued-feedback-draft","heading":"Programmatic submission of a queued feedback draft","tier":"internal","area":"Feedback","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223\/e\/programmatic-submission-of-a-queued-feedback-draft","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.223","markdown":"### Programmatic submission of a queued feedback draft\n\nScripts can now submit a queued feedback draft by id without opening the review dialog.\n\n**What**\n\nA new async entry point submits an already-queued feedback draft by id, without going through the interactive review dialog.\n\n**Details**\n\n- takes a draftId plus overrides for type, title, area and description, an `attachTranscript` flag, and a `surface` that defaults to `\"sdk\"`\n- returns either a `feedback_id` or a `failure_reason`\n- `failure_reason` is `\"drafts_disabled\"` when the drafts check does not pass, or `\"draft_not_found\"` when the id does not resolve\n\n**Evidence**\n\n`return { feedback_id: null, failure_reason: \"drafts_disabled\" };`\n\n- Area: Feedback\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}