Rensei docs
API ReferenceWorkflows

Save, publish or archive a canvas workflow (human member or management API key).

Save, publish or archive a canvas workflow (human member or management API key). - Rensei REST API operation reference.

PUT
/api/workflows/{id}

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Path Parameters

id*string

Workflow id.

Request Body

application/json
  1. body
name?string
description?string|null
status?string
Value in"configuring""draft""published""archived"
confirmUnpublish?boolean

Required to flip a published workflow back to draft.

nodes?array<unknown>
edges?array<unknown>
groups?array<unknown>
providerRequirements?array<>|null
workflowConfig?|null
definitionVersion?string

Explicit executable workflow grammar. Omission preserves auto-detection for legacy callers.

Value in"2""1.1"
lifecycle?|

Embedded lifecycle carrier. Omission retains the stored value; null clears it.

lifecycleRef?|

Project lifecycle reference. Omission retains the stored value; null clears it.

definitionMetadata?
viewport?unknown
sourceComments?

Response Body

Workflow updated.

application/json
  1. response
id*string
workspaceId*string
name*string
description*string|null
status*string
nodes*array<unknown>
edges*array<unknown>
groups*array<unknown>
providerRequirements*unknown|null
workflowConfig*unknown|null
triggerConfig*unknown|null
viewport*unknown
definitionYaml*string|null
createdBy*string
createdAt*string
updatedAt*string
publishedAt*string|null
archivedAt*string|null
Example Request
curl -X PUT 'https://app.rensei.ai/api/workflows/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "string",  "workspaceId": "string",  "name": "string",  "description": "string",  "status": "string",  "nodes": [    null  ],  "edges": [    null  ],  "groups": [    null  ],  "providerRequirements": null,  "workflowConfig": null,  "triggerConfig": null,  "viewport": null,  "definitionYaml": "string",  "createdBy": "string",  "createdAt": "string",  "updatedAt": "string",  "publishedAt": "string",  "archivedAt": "string"}