Update an invitation
curl --request PATCH \
--url https://dev-public-api.openphone.dev/invites/{inviteId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"role": "admin",
"phoneNumberIds": [
"PN123abc"
]
}
'{
"data": {
"id": "IV123abc",
"email": "johndoe@example.com",
"phoneNumberIds": [
"PN123abc"
],
"role": "member",
"status": "pending",
"acceptedAt": "2022-01-01T00:00:00Z",
"acceptedBy": "US456def",
"cancelledAt": "2022-01-01T00:00:00Z",
"createdAt": "2022-01-01T00:00:00Z",
"invitedBy": "US123abc",
"updatedAt": "2022-01-01T00:00:00Z"
}
}Invites
Update an invitation
Update a pending invitation. Fields you omit are left unchanged; phoneNumberIds is replaced wholesale by the list you send. Accepted and cancelled invitations cannot be modified.
PATCH
/
invites
/
{inviteId}
Update an invitation
curl --request PATCH \
--url https://dev-public-api.openphone.dev/invites/{inviteId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'Quo-Api-Version: <quo-api-version>' \
--data '
{
"role": "admin",
"phoneNumberIds": [
"PN123abc"
]
}
'{
"data": {
"id": "IV123abc",
"email": "johndoe@example.com",
"phoneNumberIds": [
"PN123abc"
],
"role": "member",
"status": "pending",
"acceptedAt": "2022-01-01T00:00:00Z",
"acceptedBy": "US456def",
"cancelledAt": "2022-01-01T00:00:00Z",
"createdAt": "2022-01-01T00:00:00Z",
"invitedBy": "US123abc",
"updatedAt": "2022-01-01T00:00:00Z"
}
}Headers
Path Parameters
Body
application/json
Was this page helpful?