PIMS Attributes Management API
POST/pim/manage/attributes
- Requires Data Manager ApiKey permissions.
- Example URI: https://instancename.piminto.com/api/en-us/pim/manage/attributes
A Product Attribute in the Product Information Management System (PIM) refers to the specific characteristics or details that define a product.
Well-defined attributes provide structured data to various data endpoints and websites, enhancing their usability across multiple channels, including eCommerce.
To utilize this API, send a POST request with a JSON body. Set the action key in the JSON body to one of the following values:
- listAttributeGroups: Get list of all Attribute Groups
- listAttributes: Get all attributes
- addAttribute: Add Attribute
- editAttribute: Edit Attribute
- deleteAttribute: Delete Attribute
Use Example Value and Schema for Json requests
Request
- application/json
Body
required
- Get list all Attributes/Groups
- Add/Edit Attribute
- Delete Attribute
Possible values: [listAttributeGroups
, listAttributes
]
Possible values: [addAttribute
, editAttribute
]
definition objectrequired
Possible values: [boolean
, completeness
, date
, dropdown
, html
, media
, number
, relation
, string
, text
, url
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
label objectrequired
comment object
Possible values: [deleteAttribute
]
Responses
- 200
- default
success
- application/json
- Schema
- Example (from schema)
- Get list of all Attribute Groups
- Get all Attributes
- Add/Edit Attribute
- Delete Attribute
Schema
- Get list of all Attribute Groups
- Get all Attributes
- Add/Edit Attribute
- Delete Attribute
- Array [
- ]
Name Attribute Groups
data object[]required
Collection objects Attribute
definition objectrequired
Possible values: [boolean
, completeness
, date
, dropdown
, html
, media
, number
, relation
, string
, text
, url
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
label objectrequired
comment object
Default value: OK
data objectrequired
definition objectrequired
Possible values: [boolean
, completeness
, date
, dropdown
, html
, media
, number
, relation
, string
, text
, url
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
Possible values: [y
, n
]
label objectrequired
comment object
data objectrequired
Default value: OK
The status of the API request. A value of "OK" indicates that the request was successfully sent and processed
Provides additional information about the API execution result, if available.
{}
{
"status": "Ok",
"data": [
"Basic",
"Additional",
"Sales and Logistics"
]
}
{
"data": [
{
"definition": {
"type": "text",
"isIndexable": "n",
"isSearchable": "y",
"isFilterable": "n",
"isUnique": "n",
"collection": "n",
"validation": null,
"label": {
"en-us": "nameattribute"
},
"comment": {
"en-us": "name attribute for product card"
},
"group": "GroupName"
},
"name": "nameattribute"
}
],
"status": "OK"
}
{
"status": "OK",
"data": {
"name": "nameattribute",
"definition": {
"type": "text",
"isIndexable": "n",
"isSearchable": "y",
"isFilterable": "n",
"isUnique": "n",
"collection": "n",
"validation": null,
"format": null,
"label": {
"en-us": "nameattribute"
},
"comment": {
"en-us": "name attribute for product card"
},
"group": "GroupName"
}
}
}
{
"data": {
"name": "nameattribute"
},
"status": "OK",
"status_message": ""
}
If there is an error with the API request, additional information will be provided in the response body.
Examples of error messages include:
- listAttributeGroups, listAttributes: if the attributes are not found in PIMS:
"status_message": "PIM Configuration is incomplete!"
- addAttribute:
"status_message": "Attribute with such name exists."
- editAttribute, deleteAttribute:
"status_message": "Attribute type can not be modified!"
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Error
]
The status of the API request. A value of "Error" indicates that the request was not successfully sent or processed.
Provides a message that describes the reason for the error that occurred while processing the API request.
{
"status": "Error",
"status_message": "string"
}