Skip to content

Update a customer ​

PATCH/api/v1/workspaces/{slug}/customers/{pk}/

Update an existing customer with the provided fields.

Path Parameters ​

pk:requiredstring

Pk.

slug:requiredstring

Slug.

Body Parameters ​

name:optionalstring

Name.

description:optionalobject

Description.

description_html:optionalstring

Description html.

description_stripped:optionalstring

Description stripped.

email:optionalstring

Email.

website_url:optionalstring

Website url.

logo_props:optionalobject

Logo props.

domain:optionalstring

Domain.

employees:optionalinteger

Employees.

stage:optionalstring

Stage.

contract_status:optionalstring

Contract status.

revenue:optionalstring

Revenue.

archived_at:optionalstring

Archived at.

created_by:optionalstring

Created by.

updated_by:optionalstring

Updated by.

logo_asset:optionalstring

Logo asset.

Scopes ​

customers:write

Update a customer
bash
curl -X PATCH \
  "https://api.plane.so/api/v1/workspaces/my-workspace/customers/550e8400-e29b-41d4-a716-446655440000/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example Name",
  "description": "example-value",
  "description_html": "<p>Example content</p>",
  "description_stripped": "Example description",
  "email": "Example Name",
  "website_url": "https://example.com/resource",
  "logo_props": "example-value",
  "domain": "Example Name",
  "employees": 1,
  "stage": "Example Name",
  "contract_status": "Example Name",
  "revenue": "Example Name",
  "archived_at": "2024-01-01T00:00:00Z",
  "created_by": "550e8400-e29b-41d4-a716-446655440000",
  "updated_by": "550e8400-e29b-41d4-a716-446655440000",
  "logo_asset": "550e8400-e29b-41d4-a716-446655440000"
}'
Response200
json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "created_at": "2024-01-01T00:00:00Z",
  "updated_at": "2024-01-01T00:00:00Z",
  "name": "Example Name",
  "description": "example-value",
  "deleted_at": "2024-01-01T00:00:00Z",
  "customer_request_count": 1,
  "logo_url": "Example Name",
  "description_html": "<p>Example content</p>",
  "description_stripped": "Example description",
  "description_binary": "Example description",
  "email": "Example Name"
}