put

/customers/attribute-values

Upserts Customer Attribute Values. Updates the attribute values on the Customer. Multiple customer attribute values can be updated in one call.

Upsert checks for an existing record. If there is none, it creates the record, if there is a matching record, it updates that record.

Limits

  • 10 per call limit.

Authorization

apiKey - X-Auth-Token

Request Parameters

2 Headers

Request Body

1 Example
Schema
array[object]
$schema: http://json-schema.org/draft-04/schema#
id
integer

Attribute value ID.

3 validations
attribute_id
integer

Attribute ID.

3 validations + required
value
string

Attribute value. This will always be a string, regardless of the attribute’s type.

Corresponds to attribute_value used in customer attribute values GET requests.

3 validations + required
customer_id
integer

Customer ID.

4 validations + required

Responses

Schema
object

Response payload for the BigCommerce API.

$schema: http://json-schema.org/draft-04/schema#
data
array[object]
meta
object

Data about the response, including pagination and collection totals.

Send a Test Request

Send requests directly from the browser (CORS must be enabled)
$$.env
1 variable not set
store_hash
X-Auth-Token