Skip to main content
PUT
Share an agent with teams or the organization

Authorizations

x-api-key
string
header
required

Organization API key passed as the x-api-key header. The raw key is the header value; do not prefix it with Bearer.

Path Parameters

id
string
required
Required string length: 1 - 160

Body

application/json
organization
boolean
required
teams
object[]
required
Maximum array length: 50
autoAddOrganization
boolean

Response

Updated agent.

agent
object
required
revision
object
required
routineCount
integer
required
Required range: 0 <= x <= 9007199254740991
role
enum<string>
default:owner

What the caller may do with this agent.

Available options:
owner,
manager,
collaborator
owner
object | null
sharedWith
object[]
routines
object[]
spend
object
openRequestCount
integer
default:0
Required range: 0 <= x <= 9007199254740991
audience
object
listed
boolean
default:true

False when the caller can use the agent through their organization or a team but has not opened it and it was not added for them: offer it, do not list it.

canShare
boolean
default:true

Whether the caller may share this agent now: their role allows it and the organization lets them.