Publish an agent
Make the draft the published version of the agent. Copies the draft settings (including actions and skills) over the published version, so the Completion API uses them by default. If the draft has embedEnabled: true, publishing also makes the external embed widget live; this requires a non-empty embedOptions.domainWhitelist. Who can see and use the agent in-app is controlled separately via sharing in the nuwacom app. Idempotent: publishing an already published agent without draft changes is a no-op.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the space the agent belongs to.
2 - 6Unique ID of the agent.
Response
Agent published successfully.
Unique ID of the agent. Use it with the Completion API (agentId option) to chat with the agent.
ID of the space the agent belongs to.
2 - 6Whether the agent is published as an external, embeddable chat widget.
Identifier used to embed the agent as an external widget.
External embed widget options (draft state).
Actions/tools configured on the agent (draft state).
true for built-in nuwacom system agents (cannot be updated or deleted).
Whether a published version of the agent exists. Publishing happens in the nuwacom app.
true when the draft differs from the published version (or nothing has been published yet).