Approve Sync Draft

Changed on

Approve a sync draft and apply its change. Fails with 409 and applies nothing when the draft or the sync changed after the versions you send.

post/syncs/{syncId}/drafts/{draftId}/approve

Request

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

Path parameters

syncIdnumber double required

The id of the sync

draftIdstring required

The id of the draft

Request body

expectedDraftVersionstring required

The draftVersion from the draft the reviewer saw

expectedResourceVersionstring required

The resourceVersion from the draft the reviewer saw

Response

Ok

idstring required

The draft's id

syncIdstring required

The id of the sync the draft changes

operation'create' | 'update' required

create publishes a new sync, update changes an existing one

status'pending' | 'approved' | 'rejected' | 'canceled' required

The state of a sync draft. New values may be added, so treat an unknown value as closed.

requestCommentstring nullable required

The comment the requester left for reviewers

createdAtstring date-time required

The timestamp when the draft was created

updatedAtstring date-time required

The timestamp when the draft last changed

reviewedAtstring date-time nullable required

The timestamp when the draft was approved or rejected

Changes