curl --request PATCH \
--url https://prod.featherhq.com/api/v1/squads/{squadId}/transfer-rules/{ruleId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"allowManualTrigger": true,
"toolDescription": "<string>",
"variables": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"speakBeforeTransfer": "<string>"
}
'{
"transferRule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"squadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allowManualTrigger": true,
"toolDescription": "<string>",
"variables": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"speakBeforeTransfer": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fromAgent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"toAgent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
}Update an existing transfer rule
curl --request PATCH \
--url https://prod.featherhq.com/api/v1/squads/{squadId}/transfer-rules/{ruleId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"allowManualTrigger": true,
"toolDescription": "<string>",
"variables": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"speakBeforeTransfer": "<string>"
}
'{
"transferRule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"squadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"fromAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"toAgentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allowManualTrigger": true,
"toolDescription": "<string>",
"variables": [
{
"name": "<string>",
"description": "<string>",
"required": true
}
],
"speakBeforeTransfer": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"fromAgent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"toAgent": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
}
}Transfer rule updated successfully
Show child attributes