PUT
/
api-offers
/
attributes
/
{attributeId}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-site-context
string
required

The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.

Path Parameters

attributeId
number
required

ID of the attribute to be updated

Body

application/json
name
string
required

The attribute name.

values
string[]
required

The attribute values corresponding to the name.

Response

200 - application/json
_id
string

A 24-character system-generated attribute ID.

attributeId
number

A unique identifier of the attribute, for external use.

name
string

The attribute name.

values
string[]

The attribute values.

deleted
boolean

A flag indicating the deletion status of the attribute. Set it to true to indicate the attribute is deleted and false to indicate otherwise.

createdAt
string

The time of attribute creation, in UTC format.

updatedAt
string

The time when the attribute was last updated, in UTC format.