Skip to content

Every family

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

Needs catalog:read and families.view.

Families with their attributes, requirements per channel and variant structures.

Media typeapplication/json
object
data
required
Array<object>
object
code
string
labels

Labels per locale code.

object
key
additional properties
string
attributes

Attribute codes in the family’s order.

Array<string>
requirements

Channel code → required attribute codes.

object
key
additional properties
Array<string>
label_attribute
string | null
image_attribute
string | null
variant_structures
Array<object>
object
code
string
labels

Labels per locale code.

object
key
additional properties
string
levels

Levels below the root model, each with its axis attributes and the attributes it owns.

Array<object>
object
level
integer
axes
Array<string>
attributes
Array<string>

Example generated

{
"data": [
{
"code": "example",
"labels": {
"additionalProperty": "example"
},
"attributes": [
"example"
],
"requirements": {
"additionalProperty": [
"example"
]
},
"label_attribute": "example",
"image_attribute": "example",
"variant_structures": [
{
"code": "example",
"labels": {
"additionalProperty": "example"
},
"levels": [
{
"level": 1,
"axes": [
"example"
],
"attributes": [
"example"
]
}
]
}
]
}
]
}

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"
]
}
}