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"
}
}{
"message": "The input was invalid",
"docs": "https://quo.com/docs",
"title": "Bad Request",
"errors": [
{
"path": "/inviteId",
"message": "Expected string to match '^IV(.*)$'",
"value": "abc123",
"schema": {
"type": "TemplateLiteral",
"pattern": "^IV(.*)$"
}
}
]
}{
"message": "Unauthorized",
"docs": "https://quo.com/docs",
"title": "Unauthorized",
"trace": "6897907457496870895"
}{
"message": "You do not have permission to invite an admin",
"docs": "https://quo.com/docs",
"title": "Forbidden",
"trace": "6897907457496870895"
}{
"message": "Invitation with ID IV123abc not found",
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "6897907457496870895"
}{
"message": "This invitation has already been accepted and can no longer be modified",
"docs": "https://quo.com/docs",
"title": "Unprocessable Entity",
"trace": "6897907457496870895"
}{
"message": "We have encountered an unknown error",
"docs": "https://quo.com/docs",
"title": "Unknown",
"trace": "6897907457496870895"
}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"
}
}{
"message": "The input was invalid",
"docs": "https://quo.com/docs",
"title": "Bad Request",
"errors": [
{
"path": "/inviteId",
"message": "Expected string to match '^IV(.*)$'",
"value": "abc123",
"schema": {
"type": "TemplateLiteral",
"pattern": "^IV(.*)$"
}
}
]
}{
"message": "Unauthorized",
"docs": "https://quo.com/docs",
"title": "Unauthorized",
"trace": "6897907457496870895"
}{
"message": "You do not have permission to invite an admin",
"docs": "https://quo.com/docs",
"title": "Forbidden",
"trace": "6897907457496870895"
}{
"message": "Invitation with ID IV123abc not found",
"docs": "https://quo.com/docs",
"title": "Not Found",
"trace": "6897907457496870895"
}{
"message": "This invitation has already been accepted and can no longer be modified",
"docs": "https://quo.com/docs",
"title": "Unprocessable Entity",
"trace": "6897907457496870895"
}{
"message": "We have encountered an unknown error",
"docs": "https://quo.com/docs",
"title": "Unknown",
"trace": "6897907457496870895"
}Authorizations
Headers
API version header. Supported values: 2026-03-30
Available options:
2026-03-30 Path Parameters
The unique identifier of the invitation.
Pattern:
^IV(.*)$Example:
"IV123abc"
Body
application/json
The role the invited person will hold. Only an owner can promote an invitation to owner, and only an owner or admin to admin.
Available options:
owner, admin, member Example:
"admin"
Replaces the full list of assigned phone numbers — send every ID you want the invitation to keep. Pass [] to clear them, or omit the field to leave them unchanged.
Pattern:
^PN(.*)$Example:
["PN123abc"]
Response
OK
Show child attributes
Show child attributes
Was this page helpful?