Workflows
Set a campaign's workflow
RankShark EnhanceScopecampaigns:write
PUT
Validated against the campaign's tasks[] and saved. A linear flow (traffic sources, each followed by its own steps) is stored as classic tasks.
header
AuthorizationBearer <token>An Enhance API key (rsen_…) or an OAuth 2.1 access token, as "Authorization: Bearer …".
id*stringCampaign id
application/json- body
A workflow (GET /api/v1/schema/flow documents nodes, edges and subflows; mode nodes reference tasks[] by index)
nodes*array<>edges*array<>subflows?[key: string]?anySaved
application/json- response
id?stringsaved?booleanstoredAs?stringValue in
"flow""classic"taskCount?integerwarnings?array<string>summary?curl -X PUT 'https://panel.rankshark.io/api/v1/campaigns/string/flow' \ -H 'Content-Type: application/json' \ -d '{ "nodes": [ {} ], "edges": [ {} ]}'Example Response
{ "id": "string", "saved": true, "storedAs": "flow", "taskCount": 0, "warnings": [ "string" ], "summary": {}}