Attributes (Optional fields)ΒΆ

Attributes are non-standard fields which are part of an advertisement and define properties of both the item for sale in the advertisement, as well as properties of the advertisement itself. Attributes are a normal field, where the value can either be a single string, an integer or an array of multiple strings.

Only a predefined set of attributes are possible for an advertisement in a given category. The values of an attribute are also predefined, and when writing an attribute, only the allowed values can be used. If a unknown value is used, an error will be returned.

As an API user, an attribute looks like a normal property of an advertisement. It is just a field with a key and a value, where the value can be an array of multiple values. It will never be a Json Object (complex type).

invalid-field-value

This code is used to indicate that the specified value is not valid. For fields which accept only a single value, this means that the given value is not part of the list of valid attribute values. For fields which accept multiple values, this means that one or more values are not valid.

For fields which are numeric, the specified value is not within the range of accepted values. The valid range is given in the value field of the error details.