Agents

Share an agent with teams or the organization

Changed on

Replaces which teams, or whether the whole organization, can use the agent. Only the owner or a manager can change it, and the organization's policy can limit sharing to admins.

put/v1/personal-agents/{id}/audience

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Path parameters

id, string required

Request body

SetPersonalAgentAudience required
organization, boolean required
autoAddOrganization, boolean
teams, object[] required

Response

Updated agent.

PersonalAgentDetail required
agent, PersonalAgent required
revision, PersonalAgentRevision required
routineCount, integer required
role, 'owner' | 'manager' | 'collaborator'

What the caller may do with this agent.

owner, PersonalAgentPerson nullable
sharedWith, PersonalAgentShare[]
routines, PersonalAgentRoutineSummary[]
spend, PersonalAgentSpend
openRequestCount, integer
audience, PersonalAgentAudience
listed, boolean

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

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

Changes