Replace the whole document of one Hive automation and save it as a DRAFT. Send the revision and draftVersionId you read, so a change somebody else made in Hive is never overwritten. Hive refuses and saves nothing when the new document has anything wrong with it. Going live stays a separate step a person approves.

post/api/v1/tools/update_flow_document

Request

  • Base URL: https://hivepublish.com
  • URL: https://hivepublish.com/api/v1/tools/update_flow_document
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Required for every write.

Request body

flowIdstring required

The Hive automation to change.

documentobject required

The whole new document.

expectedRevisioninteger required

The revision read_flow_document returned.

expectedDraftVersionIdstring required

The draftVersionId read_flow_document returned.

Response

Tool result

dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.