Adds or updates a collaborator's access to an agent.
Grants the given user the specified role on this agent, or upgrades/downgrades their existing role. Requires Admin on the agent; admins cannot demote the last remaining Admin. Roles map to capabilities as: Viewer (read only), Editor (read + edit draft + deploy revisions), Admin (everything including managing collaborators, budgets, and deletion). To remove access entirely use `DELETE /v1/tenants/{tenant}/agents/{agent}/collaborators/{user}`.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The agent ID.
The tenant identifier
The collaborator details.
The FruxonUser ID to grant access to.
Defines the access level a collaborator has for an agent. Wire form
is UPPER_SNAKE per project convention; Unspecified = 0 is the
AIP-126 zero-sentinel.
"UNSPECIFIED" | "VIEWER" | "EDITOR" | "ADMIN"Per-collaborator alert preferences stored as JSONB on AgentCollaborator. All properties default to true so existing collaborators keep receiving all alerts. To add a new alert type, add a bool property here and register it in AlertTypeRegistry.
Response Body
curl -X PUT "https://api.fruxon.com/v1/tenants/string/agents/string/collaborators" \ -H "Content-Type: application/json" \ -d '{ "userId": "string" }'{
"agentId": "string",
"userId": "string",
"role": "VIEWER",
"status": "PENDING",
"alertPreferences": {
"errorAlerts": false,
"accessRequestAlerts": false,
"budgetAlerts": false
},
"createdAt": 0,
"modifiedAt": 0,
"tenantId": "00000000-0000-0000-0000-000000000000"
}Removes a collaborator's access from an agent.
Revokes the user's grant on the agent. Tenant admins retain implicit access regardless; this call only affects per-agent collaborator rows. Cannot remove the last remaining Admin — the request is rejected so the agent never becomes orphaned from explicit administration. Idempotent against users who have no current grant.
Rejects a pending access request.
Removes the pending request. Requires Admin role on the agent.