Skip to content

Replace a team preset​

PUT
/api/teams/{teamId}

Replaces the whole preset: the body is revision (the one the last read gave) and every member of TeamInput. Checks, in order: 401, 403 no_access, 415, the shape (400), 404, 409 stale_revision, the values (400), the agents (422 member_agent_refused), then 409 name_taken. A body that changes nothing writes nothing and keeps the revision.

Authorizations​

bearerToken

A JWT signed by the configured issuer (RS256, RS384, ES256 or EdDSA), with the configured audience. Read when auth.mode is jwt or jwt_or_proxy_header. A missing or refused token gets 401 with WWW-Authenticate: Bearer; an issuer whose keys cannot be fetched gets 503.

Type
HTTP (bearer)
or
dpopToken

A JWT as bearerToken, bound to the key of the client (cnf.jkt, RFC 7638), sent as Authorization: DPoP <token> with one DPoP header holding a proof signed by that key (RFC 9449, ADR 0054). Read only when auth.dpop is configured. A bad proof gets 401 with WWW-Authenticate: DPoP error="invalid_dpop_proof", algs="ES256 EdDSA", a bad or unbound token error="invalid_token".

Type
HTTP (DPoP)
or
proxyIdentity

Set by oauth2-proxy after OIDC login; requests without it get 401. Read when auth.mode is proxy_header (the default) or jwt_or_proxy_header without a bearer token.

Type
API Key (header: X-Auth-Request-Email)

Request Body​

JSON
{
  
"name": "string",
  
"title": "string",
  
"lead": "string",
  
"members": [
  
  
{
  
  
  
"name": "string",
  
  
  
"target": {
  
  
  
  
"agentId": "string",
  
  
  
  
"release": "string"
  
  
  
},
  
  
  
"role": "string",
  
  
  
"history": "agent-keeps"
  
  
}
  
],
  
"charter": "string",
  
"maxHandoffs": 0,
  
"handoffApproval": "ask",
  
"checkpoints": {
  
  
"after": [
  
  
  
"string"
  
  
],
  
  
"beforePullRequest": true
  
},
  
"pushTokens": 0,
  
"summary": false,
  
"revision": "string"
}

Responses​

The preset as saved

JSON
{
  
"name": "string",
  
"title": "string",
  
"lead": "string",
  
"members": [
  
  
{
  
  
  
"name": "string",
  
  
  
"target": {
  
  
  
  
"agentId": "string",
  
  
  
  
"release": "string"
  
  
  
},
  
  
  
"role": "string",
  
  
  
"history": "agent-keeps"
  
  
}
  
],
  
"charter": "string",
  
"maxHandoffs": 0,
  
"handoffApproval": "ask",
  
"checkpoints": {
  
  
"after": [
  
  
  
"string"
  
  
],
  
  
"beforePullRequest": true
  
},
  
"pushTokens": 0,
  
"summary": false,
  
"id": "string",
  
"revision": "string",
  
"updatedAt": "2024-01-01T00:00:00Z"
}

Samples​

Powered by VitePress OpenAPI