One attribute
const url = 'https://app.currentpim.se/api/v1/attributes/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.currentpim.se/api/v1/attributes/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The attribute code.
Responses
Section titled “Responses”The attribute.
object
object
Labels per locale code.
object
object
Select types only.
object
Labels per locale code.
object
object
#RRGGBB
Code of the picture in the asset library.
Table types only: the columns rows use. Null on tables from before columns existed, whose rows take any names.
object
Labels per locale code.
object
object
Labels per locale code.
object
object
Guidance shown under the field, per locale.
object
Placeholder shown in empty text and number inputs, per locale.
object
The value new products get when nothing sets the attribute, in the attribute’s value shape; null for none.
“integration” when only integration accounts (and admins) may change the attribute’s values.
Example
{ "data": { "type": "text", "columns": [ { "type": "text" } ], "locked_for": "integration" }}No valid token (missing, revoked, expired, or the account is deactivated).
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}The token lacks the ability or the account the permission.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}No attribute with this code.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}More than the allowed requests a minute for this token; Retry-After says when to try again.
object
Problems by field, e.g. values.price._._ or items.0.identifier (422 only).
object
Example generated
{ "message": "example", "errors": { "additionalProperty": [ "example" ] }}