Skip to content

Every attribute

GET
/attributes
curl --request GET \
--url https://app.currentpim.se/api/v1/attributes \
--header 'Authorization: Bearer <token>'

Needs catalog:read and attributes.view.

Attributes with what a value may name.

Media typeapplication/json
object
data
required
Array<object>
object
code
string
type
string
Allowed values: text textarea richtext number boolean date datetime select multiselect price image file gallery file_list measurement reference_single reference_multi table url supplier
group
string
labels

Labels per locale code.

object
key
additional properties
string
localizable
boolean
scopable
boolean
unique
boolean
validation
object
key
additional properties
options

Select types only.

Array<object> | null
object
code
string
labels

Labels per locale code.

object
key
additional properties
string
swatch
object
color

#RRGGBB

string | null
asset

Code of the picture in the asset library.

string | null
url
string | null
columns

Table types only: the columns rows use. Null on tables from before columns existed, whose rows take any names.

Array<object> | null
object
code
string
type
string
Allowed values: text number boolean select
labels

Labels per locale code.

object
key
additional properties
string
required
boolean
unit
string | null
options
Array<object> | null
object
code
string
labels

Labels per locale code.

object
key
additional properties
string
measurement
object
family
string
standard_unit
string
default_unit
string | null
units
Array<string>
reference_entity
string | null
help_text

Guidance shown under the field, per locale.

object
key
additional properties
string
placeholder

Placeholder shown in empty text and number inputs, per locale.

object
key
additional properties
string
default_value

The value new products get when nothing sets the attribute, in the attribute’s value shape; null for none.

locked_for

“integration” when only integration accounts (and admins) may change the attribute’s values.

string | null
Allowed values: integration

Example

{
"data": [
{
"type": "text",
"columns": [
{
"type": "text"
}
],
"locked_for": "integration"
}
]
}

No valid token (missing, revoked, expired, or the account is deactivated).

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

The token lacks the ability or the account the permission.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}

More than the allowed requests a minute for this token; Retry-After says when to try again.

Media typeapplication/json
object
message
required
string
errors

Problems by field, e.g. values.price._._ or items.0.identifier (422 only).

object
key
additional properties
Array<string>

Example generated

{
"message": "example",
"errors": {
"additionalProperty": [
"example"
]
}
}