Skip to content

Update user privilege of shared agent

PUT
/api/v1/gen_agents/share/{agent_id}

Update sharing permissions for an agent.

agent_id
required
Agent Id
string
UpdateShareAgentRequest
object
user_shared_agent
required
UpdateShareAgentData
object
username_or_email
required
Username Or Email

Username or email of the user

string
role
required
Role

Updated role/permission level

string
Allowed values: viewer editor owner manager
Example
viewer

Successful Response

BooleanResponse

Simple response returning a single boolean success status.

object
success
required
Success

Success status of the operation

boolean

Bad Request

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string

Agent not found

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string

User shared agent creation/update failed.

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string

Internal Server Error

ErrorResponse
object
detail
Any of:
string
error
Any of:
string
error_code
Any of:
string