Skip to content
Assistants

Replace a multi-step flow's transitions

PUT/assistants/{id}/edges

Replace the transitions of a multi-step assistant's flow. Every transition must reference assistants in your organization. To change one step's prompt or settings, PATCH /assistants/{id} on the step instead.

Path parameters

Request body

  • edgesarray of objectrequired

    Every transition of the flow, the ones you keep included.

Response

200
  • edgesarray of object

Errors

  • 400Invalid request: a field or parameter failed validation{ "message"?: string, "error"?: string, "bodyErrors"?: {…} }
  • 404Not found in your organization{ "error": string }

Error bodies carry an error (or message) string; a 400 adds bodyErrors.issues. See Errors.