PUT
/
account-invitations
/
{id}
curl --request PUT \
  --url https://cookiechimp.com/api/v1/account-invitations/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "<string>",
  "role": "admin"
}'
{
  "id": "inv123",
  "email": "[email protected]",
  "role": "member",
  "invited_by_type": "API",
  "created_at": "2023-01-25T09:30:20Z",
  "updated_at": "2023-01-25T09:30:20Z"
}

Authorizations

X-API-KEY
string
headerrequired

Path Parameters

id
string
required

ID of the resource

Body

application/json
name
string
required

Name of the user the invitation is for

role
enum<string>
required

Role of the user when they accept the invitation

Available options:
admin,
member

Response

200 - application/json
name
string
required

Name of the user the invitation is for

email
string
required

Email address of the user

role
enum<string>
required

Role of the user when they accept the invitation

Available options:
admin,
member
id
string
invited_by_type
string

Type of entity that created the invitation (account_user or API)

invited_by_id
string | null

ID of the user who created the invitation

created_at
string

Date and time when the invitation was created

updated_at
string

Date and time when the invitation was last updated

deleted_at
string

Date and time when the invitation was cancelled