Create agent
POST/agents
Creates a new agent in the workspace specified by workspaceId. Agent names must be unique within the workspace.
Request
Responses
- 200
- 400
- 403
- 404
- 409
OK
Bad request: a field fails validation, serviceAccountId is missing, or githubAppCredentialId does not name a valid GitHub App credential in the workspace
Operation not allowed
Agents are not enabled for this organization
Duplicate agent name in the workspace, or the service account is deleted or disabled, is not a participant of the workspace, or has a workspace role without agent:execute