Skip to Content
Docs

Share or unshare an agent

PUT
/api/share_agent

Share or unshare an agent.

Personal access token scope: agents:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
id*string

ID of the agent

shared*boolean

Share or unshare the agent

username?string

Name of the user

Response Body

Success

Example Request
curl -X PUT 'http://localhost:7091/api/share_agent' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "shared": true}'
Example Response200
Empty