Skip to main content
PUT
/
account-invitations
/
{id}
Update account invitation
curl --request PUT \
  --url https://cookiechimp.com/api/v1/account-invitations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "role": "admin"
}
'
{
  "id": "inv123",
  "email": "newmember@cookiechimp.com",
  "role": "member",
  "invited_by_type": "API",
  "created_at": "2023-01-25T09:30:20Z",
  "updated_at": "2023-01-25T09:30:20Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.cookiechimp.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API token obtained from the login endpoint or the dashboard

Path Parameters

id
string
required

ID of the resource

Body

application/json

Account invitation to update

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

Updated account invitation

name
string
required

Name of the user the invitation is for

email
string<email>
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-time>

Date and time when the invitation was created

updated_at
string<date-time>

Date and time when the invitation was last updated

deleted_at
string<date-time>

Date and time when the invitation was cancelled