Save a team preset of one's own
Saves a preset (teams-v1.md). Every member's agent must be one the caller may use (agent.invoke and the agent's audience, ADR 0045): an agent that is not, or that nobody lists for them, is 422 member_agent_refused with at: members.<i>.agentId, and the answer never says which of the two it was. The checks run in one order: 401, 403 no_access, 415, the shape (400 bad_request), the values (400 with a code and at), the agents (422), and last the store (409 name_taken, then too_many_teams).
Authorizations
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.
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".
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.
Request Body
Responses
Saved