FruxonDocs
Agent NetworkGraph

Grants a user access to the Network, or changes an existing collaborator's role.

Grants the given user the specified role, or upgrades/downgrades their existing role. A new grant with no role defaults to Viewer. The last remaining Admin cannot be demoted. Roles: Viewer (read), Editor (read + configure), Admin (everything, including managing collaborators). Applies immediately.

PUT
/v1/tenants/{tenant}/networks/{network}/collaborators
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

network*string

The owning Network id.

Formatuuid
tenant*string

The tenant identifier

The collaborator user and role.

userId*string|null

The FruxonUser id to grant access to.

role?string

The access level a platform user (Fruxon.Model.Users.FruxonUser) holds on a Fruxon.Model.AgentNetwork.Network — the "Permissions / Collaborators" axis (design §12.7). Wire form is UPPER_SNAKE; Unspecified = 0 is the AIP-126 zero-sentinel. Distinct from the served-participant relationship (Fruxon.Model.AgentNetwork.NetworkAccessRelationshipKey): collaborators configure the Network, participants interact with it.

Value in"UNSPECIFIED" | "VIEWER" | "EDITOR" | "ADMIN"
[key: string]?never

Response Body

curl -X PUT "https://api.fruxon.com/v1/tenants/string/networks/497f6eca-6276-4993-bfeb-53cbbbba6f08/collaborators" \  -H "Content-Type: application/json" \  -d '{    "userId": "string"  }'
{
  "networkId": "00000000-0000-0000-0000-000000000000",
  "userId": "string",
  "role": "VIEWER",
  "createdAt": 0,
  "modifiedAt": 0,
  "tenantId": "00000000-0000-0000-0000-000000000000"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}