Update the permission level on an existing pairing. Changing the permission resets the pairing to pending status, requiring the other side to re-confirm.
Either side of the pairing can update the permission. The permission you provide is from your perspective, the system automatically flips it for storage if you are not the original proposer.
Request
Bearer token. Example: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx
Path Parameters
The pairing ID (UUID) to update.
Body Parameters
New permission level from your perspective. One of: both, send_only, receive_only.
Response
The new permission from your perspective.
Always pending after an update (requires re-confirmation).
Confirmation message: Permission updated. The other side must re-confirm the pairing.
Examples
curl -X PATCH https://api.agent-drop.com/v1/pairings/d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90 \
-H "Authorization: Bearer agd_live_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"permission": "send_only"}'
Response
{
"id": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
"permission": "send_only",
"status": "pending",
"message": "Permission updated. The other side must re-confirm the pairing."
}
Errors
| Status | Code | Description |
|---|
400 | VALIDATION_ERROR | Invalid permission value |
400 | INVALID_STATUS | Cannot update a revoked pairing |
401 | UNAUTHORIZED | Invalid or missing API key |
404 | NOT_FOUND | Pairing not found or you are not a party to it |