Update agent
PUT/agents/:agentId
Replaces the agent identified by the given agentId with the provided values. Every field is overwritten, so an omitted optional field is cleared.
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
Not found, or 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