> ## Documentation Index
> Fetch the complete documentation index at: https://developer.jtl-software.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetScxItemAttributeValuesCommandRequestInput

> Replaces the attribute values with an attribute code that are stored on an item for an SCX seller. The list describes the values the item has afterwards: an entry with an "Id" updates that value (a property that is not sent keeps its stored value), an entry without an "Id" creates a new value and needs a "ClientId", and a stored value that no entry names is deleted, so an empty list deletes all of them. Stored values whose attribute code has no definition any more are deleted as well, although the read operation never returns them; the call does not report them. Custom fields of the item are not touched. The whole call is one unit: if any rule is violated nothing is written. The result lists all values with an attribute code that the item has after the call, ordered like "QueryScxItemAttributeValues" without a requested sort order, read after the change was saved; a value whose entry sent a "ClientId" carries it, a created value together with its new "Id". The call has no concurrency protection: it writes the list as given, so a value that another client created in the meantime is deleted as well. A repeated call is not idempotent for created values: a retry sends no "Id" for a value that the lost first call created, so it deletes that value and creates a new one with a new "Id". A client that did not receive the result therefore reads the stored values ("QueryScxItemAttributeValues") before it repeats the call. A change that reaches the offers of the item marks the item for upload. An invalid sales channel id is rejected as invalid (error code SALES_CHANNEL_ID_INVALID). A sales channel that does not exist, is deleted, is deactivated or is not an SCX seller, or an id whose channel part does not match the seller, is rejected as not found (error code SCX_SALES_CHANNEL_NOT_FOUND); an item that does not exist is rejected as not found (error code SCX_ITEM_NOT_FOUND). Violated rules of the entries are all reported at once. The error carries the error code that all violations share, or SCX_VALIDATION_FAILED if they differ, and the violations grouped by field: the key is "entries[<index>].<field>" with the zero-based position of the entry in the list and the field in camelCase (for example "entries[2].value"), the value is a list of texts of the form "[id: <id>, clientId: <clientId>] <error code>: <message>", where the bracket part appears only if the entry carries an id or a client id and is not a machine-readable contract. The grouping is delivered in the same form on every API surface. - Request



**Kind**: `input`

## Fields

**`salesChannelId`**: `String!` (required)

Sales channel id of the SCX seller/account. Opaque, tenant-local composite identifier (not a UUID); use the id returned by "GET /v2/sales-channels".

---

**`itemId`**: `ID!` (required)

ID of the item.

---

**`attributeValues`**: `[ScxItemAttributeValueInput]!` (required)

The complete list of attribute values with an attribute code that the item has afterwards. Required; an empty list deletes all of them.

