Skip to content
Docs

External API

Set custom fields on a customer

Set a customer's custom fields in Proto from your own system.

Sets a customer’s custom fields from your own system – for example, their plan or account manager from your CRM. The fields must already exist in your teamspace, and fields you don’t send keep their values. Not sure how to send a request? See Make your first request.

Request

Send a PUT request to:

https://v3-api.proto.cx/api/platform/v1/customers/YOUR_TEAMSPACE_ID/customer/YOUR_CUSTOMER_ID/add-custom-fields

In the body, list each field by its name or its id, and give its value as text – numbers and dates too. In the address and the body, replace anything starting with YOUR_ with your own – YOUR_CUSTOMER_ID is your ID for the customer, the one you used when you created them:

{
  "custom_fields": [
    { "name": "Account manager", "value": "Sam Tan" },
    { "id": "YOUR_FIELD_ID", "value": "25" },
    { "name": "Renewal date", "value": "2027-03-01" }
  ]
}
FieldRequiredWhat it is
custom_fieldsYesThe fields to set – at least one

Each item in custom_fields has:

FieldRequiredWhat it is
nameOne of the twoThe field’s name, exactly as it appears in Proto. Capital letters count.
idOne of the twoThe field’s ID, from List custom fields
valueNoThe value. null clears it. Leave it out to use the field’s default value.

Each field needs a name or an id, not both.

Values for each type of field

Field typeSendExample
TextAny text"Business"
NumberDigits, with an optional - and one . – no commas or spaces"-3.5"
Toggle switchtrue or false"true"
DateAn ISO 8601 date, or date and time"2026-11-18T09:30:00Z"

Important: you can’t set Dropdown or Single select fields on a customer through the API yet. Proto rejects any value for them except "" or null.

Response

Proto replies 200 OK:

{ "success": true }

success is always true.

Errors

Proto saves the fields in the order you send them. If one fails, the ones before it are already saved.

You getWhat it means
404No customer with this ID is in your teamspace, or no field has this name or ID.
422A field has both a name and an id, or neither, or the value doesn’t suit the field’s type. The message says which.

For errors any request can return, see If something goes wrong.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto