edit_guidance
Nothing it saves shapes guidance or reviews until a person opens the returned review_url and chooses Review & publish. Editors, admins and owners can call it. Members get an authorization error.
Inputs
| Field | Limit | Use |
|---|---|---|
kind | enum | Required. brand_guide or skill |
slug | 64 chars | Required. Kebab-case. Must be brand-guide for a Brand guide. Can't reuse a built-in Skill's name |
markdown | 50,000 chars | The document body. Required unless you're sending decision_candidate |
lens | enum | Skills only. Pairs a built-in Skill, the Editor setting on the Skills page. Omit it to keep an existing draft's pairing |
organization_id | Optional. Can repeat the connection's workspace, can't switch it |
The title comes from the slug. Set a Skill's audience, channel, goal, format, tone and avoid rules on the Skills page.
Markdown it accepts
Allowed: paragraphs, H2 and H3 headings, lists, blockquotes, inline links, emphasis and code.
Rejected, with a message naming the construct: H1 or H4+ headings, tables, images, horizontal rules, strikethrough, footnotes, task lists, reference-style links and raw HTML.
What comes back
{
"org_id": "…",
"saved": {
"slug": "exec-update",
"kind": "skill",
"status": "draft",
"revision": 3,
"document_id": "…"
},
"review_url": "https://app.smartbrevity.com/style-guide/<document_id>",
"next_tool": "…"
}Give the user the review_url. Calling again with the same slug updates that draft and bumps revision. A new slug creates a new document.
Write a useful Skill
- Name the document type in the slug:
exec-update,customer-incident-notice. - State the rules an editor would give a new hire: what leads, what never appears, how long.
- Pair a
lensonly when the type always benefits from it. - After publishing, an owner or admin adds before/after examples linked to the Skill on the References page. Guidance with that
skill_slugandinclude_examples: truereturns them.
Save review rules
To convert a guide into review rules, read the source with browse_guidance, then save the result here.
| Field | Use |
|---|---|
decision_candidate | { "version": 1, "binding", "draft" }. Copy binding from the candidate_binding that browse_guidance returned. draft holds the proposals |
document_id | The source Draft |
expected_revision | The exact revision you read |
kind, slug | The source Draft's existing values |
Send this on its own, without markdown or lens.
The result adds rule_proposals: rules, unresolved, calibration (not_validated) and active (false). The source and its proposals publish together through Review & publish. After that, applicable approved rules can run in quick reviews. They stay unvalidated, and each review reports the rules it covered.
Errors
| Condition | Result |
|---|---|
| The caller is a member | Authorization error |
kind: "brand_guide" with any other slug | Rejected |
lens on a Brand guide | Rejected |
| A slug that matches a built-in Skill | Rejected |
| Disallowed Markdown | Error naming the construct |
decision_candidate sent with markdown or lens, or without document_id and expected_revision | Rejected |
| The connection is bound to the wrong workspace | The draft lands there. Reconnect and pick the right one |