Skip to main content
PUT
/
organizations
/
{organization_id}
/
customers
/
{pk}
Update customer
curl --request PUT \
  --url https://api.example.com/organizations/{organization_id}/customers/{pk}/ \
  --header 'Content-Type: application/json' \
  --header 'X-Initdesk-Token: <api-key>' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "is_spam": true
}
'
{
  "id": 123,
  "name": "<string>",
  "email": "jsmith@example.com",
  "is_spam": true
}

Documentation Index

Fetch the complete documentation index at: https://developers.initdesk.com/llms.txt

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

Authorizations

X-Initdesk-Token
string
header
required

Path Parameters

pk
integer
required

A unique integer value identifying this customer.

organization_id
string
required

Body

name
string
required
Required string length: 1 - 255
email
string<email>
required
Required string length: 1 - 254
is_spam
boolean

If true, emails from this customer are marked as spam

Response

200 - application/json
id
integer
required
read-only
name
string
required
Maximum string length: 255
email
string<email>
required
Maximum string length: 254
is_spam
boolean

If true, emails from this customer are marked as spam