ScxItemAttributeValueInput
One entry of the list that replaces the attribute values with an attribute code of an item. An entry with an “Id” updates that stored value; an entry without an “Id” creates a new value. A property that is not sent, or is null, keeps the stored value of an existing entry. Read-only properties of the stored value, such as the definition ids and “DefinitionScope”, are not part of the input. The REST schema lists every property of an entry as required, because the schema generator does not keep the optionality of the properties; the API accepts an entry without the properties it does not send, and a client generated from the REST schema may not be able to omit them. GraphQL treats all of them as optional.
ScxItemAttributeValueInputFields
ID of the stored value the entry updates. Omit to create a new value; the value then needs a "ClientId". The ID must belong to the item and must not appear twice in the list.
Identifier the client chooses for an entry. It should carry a recognizable prefix such as "temp__"; the server does not check the prefix. Required for an entry without an "Id", optional for an entry with an "Id"; unique within the request, also across entries with and without an "Id", and never stored. The result returns it with the value of the entry, for a created value together with its new "Id".
Attribute code assigned by the marketplace. Required for a new value. For an existing value it must equal the stored code, which cannot be changed.
Number of the repetition group of a repeatable sub-section. A new value without a reference group gets group 0. For an existing value it must equal the stored group, which cannot be changed.
Value of the attribute as it is transmitted to the marketplace, or the template if "IsTemplate" is true. A blank value is rejected like an empty one; numbers, dates and flags are read in invariant notation and returned as stored. Omit to keep the stored value of an existing entry. Ignored for an entry with a file.
Whether the value is a template written in Liquid syntax. Omit to keep the stored setting of an existing entry. Ignored for an entry with a file.
ID of an already stored file for an attribute of type image or document; this API does not upload files; other attributes reject a file. Omit or send null to keep the stored file of an existing entry; a file cannot be removed from an existing entry, so the client deletes the entry and creates a new one, which gets a new "Id".
Was this page helpful?