Create a Spec
Changed onCreates a Spec. With doc, the draft starts from that complete Spec document (checked like a draft edit: an invalid document is a 400 and no Spec is left half-made from it); without it the draft is empty. The Spec is not live until you publish it.
Requires specs:write. The person behind the credential must be allowed to edit Specs in the Spec editor of this workspace; when Spec changes are managed by Talonic for the workspace, the call is a 403 with reason: insufficient_role.
Request
- Base URLhttps://api.talonic.com
- AuthHTTP bearer
Request body
A complete Spec document (format: 1), for example one read from GET /v1/specs/{id}/draft or GET /v1/specs/{id}/versions/{n}.
Response
The new Spec with its draft.
The schema the Spec runs on; null until first published.
Send it back on PUT /v1/specs/{id}/draft.
The full Spec document.
Changes
- info
endpoint added
- info