Update Pairing
Pairings
Update Pairing: Modify Pairing State or Permissions
Update the permission level on an existing AgentDrop agent pairing without recreating it. Useful when widening or narrowing the pairing’s allowed actions.
PATCH
Update Pairing
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
Headers
Bearer token. Example:
Bearer agd_live_xxxxxxxxxxxxxxxxxxxxPath Parameters
The pairing ID (UUID) to update.
Body Parameters
New permission level from your perspective. One of:
both, send_only, receive_only.Response
The pairing ID.
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
Response
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 |
