Specs

Replace a Spec's draft

Changed on

Replaces the whole draft document. revision must be the draft's current revision; if someone saved in between you get a 409 and nothing changes, so read the draft again and re-apply your edit.

Keep each field's field_id when you edit a field: ground truth, rules and other references point at it. A write that replaces most fields with new ids is refused (422) unless allow_field_reset is true. A document with a setting this workspace may not choose is a 403. Requires specs:write.

put/v1/specs/{id}/draft

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

object required
doc, object required
revision, integer required
allow_field_reset, boolean

Response

Saved.

object required
spec_id, string uuid
revision, integer
updated_at, string date-time
field_adoptions, object

Fields matched to existing workspace fields, field id to workspace field.

Changes