swap.quickswap.v1.QuickSwapBrokerService
RespondToInvite
RespondToInvite accepts or declines a pending invite addressed to the caller. Session token only; no step-up proof is needed. Errors: - NOT_FOUND: INVITE_NOT_FOUND. - ALREADY_EXISTS: ALREADY_MEMBER.
Method
POST
Path
swap.quickswap.v1.QuickSwapBrokerService/RespondToInvite
Service
swap.quickswap.v1.QuickSwapBrokerService
Visibility
Authentication
Session token
MFA Requirement
Not required
POST
swap.quickswap.v1.QuickSwapBrokerService/RespondToInvite Request
Testnet
curl --request POST \ \
--url 'https://api.testnet.polyester.com/swap.quickswap.v1.QuickSwapBrokerService/RespondToInvite' \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"accept": false,
"inviteId": "1"
}'Responses
{
"membership": {
"broker": "value",
"brokerDisplayName": "value",
"role": "OWNER"
}
}Request
swap.quickswap.v1.RespondToInviteRequestResponse
swap.quickswap.v1.RespondToInviteResponse inviteId string (fixed64)
Public invite ID.
accept boolean
True to accept, false to decline.
3 fields
broker string
Broker name.
brokerDisplayName string
Broker display name.
role enum
The caller's role.
OWNER ADMIN FINANCE AFFILIATE_MANAGER VIEWER
| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |