Upsert a workflow definition
POST/api/workflows
upsertWorkflow
Authentication is not described for this operation in the spec — that does not mean it is public. Check tokens and scopes.
curl
curl -X POST 'https://neosource.dev/api/workflows' \
-H 'Content-Type: application/json' \
-d '{"repo_id":"string","path":"string","source_operation":"string","definition":{}}'fetch
fetch("https://neosource.dev/api/workflows", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({"repo_id":"string","path":"string","source_operation":"string","definition":{}}),
});Request bodyrequired
application/json
Responses
200Workflow
application/json
403Forbidden — one of: forbidden, needs_scope
application/json
one of
Standard errors
Bodies documented once for the whole API — see standard errors.
- 400Bad Request — one of: invalid_input
- 404Not Found — one of: not_found
- 409Conflict — one of: already_exists, conflict
- 429Rate limited — retry after the `Retry-After` header
- 500Internal server error
- 503Service temporarily unavailable / at capacity — retry after the `Retry-After` header
- 504Gateway timeout — the request exceeded the server's handling budget
Schemas
Referenced above. Listed here rather than expanded inline, so the same definition is not repeated at every level.
WorkflowWarningSeverity
Severity of a [`WorkflowWarning`].
"warning""error"