Bloss Docs

Publish a flow's draft

Developers
POST
/brands/{brandId}/onboarding/flows/{flowId}/publish

Make the draft live in one go: its tasks and settings, the draft of every form its tasks use (each renamed after its task) and of every agreement they use, each as a new version when it changed. goLive: true also activates a draft or paused flow, and gives a flow with no links its first one ("Main link", returned as link). Refused with 400 and details.problems (taskId, message) while anything isn't ready; an archived flow answers 409. Creators partway through move onto the new version for the tasks they haven't finished (updatedSubmissions); one whose remaining tasks were all removed finishes, joining or waiting for approval. Preview with dryRun: whether anything would change, what blocks it, and how many open submissions would move. A brand key can't take a flow with no links live (403): the first link records who made it.

Authorization

bearerAuth onboarding:write
headerAuthorizationBearer <token>

Personal access token. Scopes: account:read, creator:read, creator:earnings, managed:read, coach:read, brand:read, creators:read, videos:read, analytics:read, onboarding:read, onboarding:signatures, engagement:read, support:read, integrations:read, payouts:read, funds:read, billing:read, groups:write, videos:write, onboarding:write, sync:write, payouts:write.

Scope: onboarding:write

Path Parameters

brandId*string

A brand id from GET /me or GET /creator/brands.

Length1 <= length
flowId*string

A flow id from GET /brands/{brandId}/onboarding/flows.

Length1 <= length

Query Parameters

dryRun?string

"true": run every check and return { dryRun: true, wouldChange } without changing anything.

Value in"true""false"

Request Body

application/json
  1. body
goLive?boolean

Also make the flow active, so its links take creators. Default false: publish only.

Response Body

Success.

application/json
  1. response
changed*boolean

Something creators see changed. False: the draft already matched the live flow.

status*string

The flow's status after publishing.

link*|

The link made for a flow that went live without one.

updatedSubmissions*number

Open submissions moved onto the new version.

curl -X POST 'https://example.com/api/v1/brands/string/onboarding/flows/string/publish' \  -H 'Content-Type: application/json' \  -d '{}'
{  "changed": true,  "status": "string",  "link": {    "id": "string",    "flowId": "string",    "url": "string",    "label": "string",    "active": true,    "uses": 0,    "maxUses": 0,    "expiresAt": "string",    "defaultGroupId": "string",    "createdAt": "string"  },  "updatedSubmissions": 0}

Was this page helpful?