Skip to main content
PUT
/
v1
/
orgs
/
{org_id}
/
agents
/
{agent_id}
/
delegates
Replace Agent Delegates
curl --request PUT \
  --url https://api.letpiper.com/v1/orgs/{org_id}/agents/{agent_id}/delegates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "delegate_agent_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'
{
  "delegates": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "delegate_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "delegate_agent_name": "<string>",
      "delegate_agent_is_active": true,
      "name": "<string>",
      "description": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Platform token (starts with pat_)

Path Parameters

org_id
string<uuid>
required
agent_id
string<uuid>
required

Body

application/json

Schema for replacing agent delegates.

delegate_agent_ids
string<uuid>[]
Maximum array length: 50

Response

Successful Response

Schema for listing agent delegates.

delegates
AgentDelegateRead · object[]
required