Skip to main content
POST
/
api
/
data-platform
/
workflow-actions
/
task-create
Create ACTION_VECTOR tasks for a workflow run's trigger perimeter
curl --request POST \
  --url https://app.solya.app/api/data-platform/workflow-actions/task-create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "domains": [
    "restock"
  ],
  "minConfidence": 0.6,
  "organizationId": "550e8400-e29b-41d4-a716-446655440001",
  "perimeter": [
    {
      "shopId": "shop-uuid-1",
      "variantId": "variant-uuid-1"
    },
    {
      "shopId": "shop-uuid-2",
      "variantId": "variant-uuid-2"
    }
  ],
  "workflowRunId": "workflow-run-uuid-abc123"
}
'
{
  "created": 2,
  "successCode": "WORKFLOW_TASKS_CREATED",
  "suppressed": 0,
  "updated": 0,
  "workflowRunId": "workflow-run-uuid-abc123"
}

Authorizations

Authorization
string
header
required

Static internal-ops token used by the data platform and internal cron jobs (e.g. zombie-run sweep). Validated via requireBearerToken inside the handler against a service-specific environment variable.

Body

application/json
domains
enum<string>[]
required

Action-vector domains to materialize tasks for. Non-empty subset of ["restock", "rebalance", "markdown"].

Minimum array length: 1
Available options:
restock,
rebalance,
markdown
minConfidence
number
required

Minimum confidence threshold in [0, 1]. Rows with numeric confidence below this value are suppressed. Use 0 to disable filtering.

Required range: 0 <= x <= 1
organizationId
string
required

UUID of the organization that owns the tasks

Minimum string length: 1
perimeter
object[]
required

List of (variantId, shopId) pairs from the trigger matched entities. Provide the trigger perimeter here.

workflowRunId
string
required

Databricks workflow run ID; stamped on every task row created by this run for lifecycle ownership

Minimum string length: 1

Response

Successful response

data
object
required
success
enum<boolean>
required
Available options:
true