Skip to main content

Update guest permissions

This feature allows you to modify the permissions associated with a particular guest, such as granting access to certain areas or resources. For further actions, such as inviting guests, refer to the related /invite_guest endpoint.

Request

Endpoint

PUT https://api.woodpecker.co/rest/v2/agency/companies/{company_id}/guests/permissions/

Headers

x-api-key: {YOUR_API_KEY}
Content-Type: application/json

For details on how to authenticate your requests, please see the authentication guide.

Body

{
"guests": [
{
"id": 1234,
"permissions": []
},
{
"id": 2345,
"permissions": ["mailboxes"]
}
]
}
info

Request body is required

Request sample

Update permissions

curl --request PUT \
--url "https://api.woodpecker.co/rest/v2/agency/companies/{company_id}/guests/permissions" \
--header "x-api-key: {YOUR_API_KEY}" \
--header "Content-Type: application/json" \
--data '{
"guests": [
{
"id": 1234,
"permissions": []
},
{
"id": 2345,
"permissions": ["mailboxes"]
}
]
}'

Response

Response examples

Status: 200
Body: none