docs endpoints
Lists draft endpoints: ones added, or marked for removal, ahead of the next publish, the same drafts Add endpoint makes in API Studio. Nothing here changes your spec until publish, which writes every draft into it as a new version. Until then, readers, SDKs and MCP tools see nothing. See endpoints.
octri docs endpoints [list | add | edit | remove | discard | publish]octri docs endpoints add <METHOD> <path> --summary <text>
Drafts a new endpoint.
Arguments
<METHOD>stringrequiredGET, POST and so on, in any case.
<path>stringrequiredThe OpenAPI path, such as /customers/{id}.
Flags
--summary <text>stringrequiredThe endpoint's one-line summary.
--description <text>stringA longer description.
octri docs endpoints edit <draftId>
Changes a draft's summary or description.
Arguments
<draftId>stringrequiredThe draft, from the list.
Flags
--summary <text>stringThe new summary.
--description <text>stringThe new description.
octri docs endpoints remove <METHOD> <path>
Marks an endpoint your spec has for removal on the next publish.
Arguments
<METHOD>stringrequiredThe endpoint's method.
<path>stringrequiredIts path.
octri docs endpoints discard <draftId>
Drops a draft without publishing it.
Arguments
<draftId>stringrequiredThe draft.
octri docs endpoints publish
Writes every draft into the spec as a new version, then follows the pipeline that version starts. If the spec already matches the drafts, nothing is published.
Flags
--commit-to-githubbooleanCommits the new spec back to the connected repository. --no-commit-to-github doesn't.
Examples
Draft an endpoint
octri docs endpoints add GET /customers/{id}/notes --summary "List a customer's notes"✔ Drafting GET /customers/{id}/notes
✔ Drafted GET /customers/{id}/notes 6aedf5d4f8a05765fb1944e7
octri docs endpoints publish: write the drafts into the specList drafts
octri docs endpoints✔ Loading draft endpoints
Draft endpoints (1)
CHANGE ENDPOINT SUMMARY UPDATED ID
────── ───────────────────────── ─────────────────────── ─────── ────────────────────────
add GET /customers/{id}/notes List a customer's notes 0s ago 6aedf5d4f8a05765fb1944e7
octri docs endpoints publish: write the drafts into the specRelated
octri specs status: Show one spec's parse status and every job in the pipeline behind it.octri github connect: Point the project at a spec file in a GitHub repository.