Automation

Link a draft automation to a post

Links the draft. armed: true also arms it — only for a person (the SociaHive iOS app); send the previewed_hash you showed. A refused arm keeps the link (linked: true on the error).

post/posts/{id}/automation

Request

  • Base URL: https://www.sociahive.com/api/v1
  • URL: https://www.sociahive.com/api/v1/posts/{id}/automation
  • Auth: one of:
    • API key in header X-API-Key
    • OAuth 2 (authorization code, authorization URL /api/oauth/authorize, token URL /api/oauth/token, scopes: flows:write, posts:write)

Path parameters

idstring required

MongoDB ObjectId (24-character hex string)

Example:507f1f77bcf86cd799439011

Request body

flow_idstring required

MongoDB ObjectId (24-character hex string)

armedboolean
previewed_hashstring
replaceboolean

Replace the post's existing draft automation.

Example request

{
  "flow_id": "507f1f77bcf86cd799439011"
}

Response

Linked

Changes

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