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" }
]
}
| Field | Required | What it is |
|---|---|---|
custom_fields | Yes | The fields to set – at least one |
Each item in custom_fields has:
| Field | Required | What it is |
|---|---|---|
name | One of the two | The field’s name, exactly as it appears in Proto. Capital letters count. |
id | One of the two | The field’s ID, from List custom fields |
value | No | The 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 type | Send | Example |
|---|---|---|
| Text | Any text | "Business" |
| Number | Digits, with an optional - and one . – no commas or spaces | "-3.5" |
| Toggle switch | true or false | "true" |
| Date | An 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
""ornull.
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 get | What it means |
|---|---|
404 | No customer with this ID is in your teamspace, or no field has this name or ID. |
422 | A 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.