Spinrun Docs
REST APIWorkflows

Create a workflow

Create through the collection: the document carries no `updated_at`.

PUT/api/build/workflows

Authorization

bearerAuth
AuthorizationBearer <token>

OAuth access token whose grant carries Build authorization.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

A whole workflow as one JSON document.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/build/workflows" \  -H "Content-Type: application/json" \  -d '{    "kind": "spinrun.workflow/v1",    "slug": "string",    "name": "string",    "description": "string",    "enabled": true,    "space": {      "team": "string"    },    "send_as": "string",    "inputs": {      "property1": {},      "property2": {}    },    "schedule": {      "cron": "stringstr",      "timezone": "string"    },    "steps": [      {        "id": "string",        "kind": "tool",        "tool": "string"      }    ],    "output": "string"  }'
{  "data": {    "document": null,    "applied": [      "string"    ],    "changes": [      "string"    ],    "version": 0,    "webhook_urls": [      {        "trigger_id": "string",        "url": "string"      }    ]  }}