# AttributeScopes
Attribute scopes are used to organize your attributes in different scopes, so you can easily work with collections of attributes based on their attribute scopes. If for example you want to render a table with all technical specifications for a product on your website, what are the tehcnical specification attributes? By adding the technical specifications attributes to a specific attribute scope, your can easily find the collection of attributes to render in this table.
GET /attributescopes Get all attribute scopes in the system
[
{
"Uid": "a1c0b3da-1191-48ee-a13f-be27b7b87766",
"Alias": "ProductMasterData"
},
{
"Uid": "5098980f-3490-4ee3-8fa8-172c9a1c593d",
"Alias": "SpecificationData"
}
]
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Uid | string |
Unique id of scope |
Alias | string |
Unique alias of scope used to be easily identifiable by humans |
PUT /attributescopes Update an attribute scope
{
"Uid": "f7ae46fa-3aab-43ab-b50c-66b2bf5db476",
"Alias": "NewScopeAlias"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
attributeScope | body | object : AttributeScope |
Attribute scope to update |
Property name | Data type | Description |
---|---|---|
Uid | string |
Unique id of scope |
Alias | string |
Unique alias of scope used to be easily identifiable by humans |
Response status OK (200)
POST /attributescopes Create an attribute scope
{
"Uid": "522b6345-f3ff-4b5e-a712-bca7c7be2bf4",
"Alias": "ProductMasterData"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
attributeScope | body | object : AttributeScope |
Attribute scope to create |
Property name | Data type | Description |
---|---|---|
Uid | string |
Unique id of scope |
Alias | string |
Unique alias of scope used to be easily identifiable by humans |
Response status OK (200)
DELETE /attributescopes Delete an attribute scope
Attribute scopes can only be deleted if no attributes reference the scope
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
uid | query | string |
Unique id of attribute scope to delete |
Response status OK (200)
GET /attributescopes/{uid} Get a attribute scope from its uid
{
"Uid": "6e683614-1115-4b5d-94c0-aa919994979b",
"Alias": "ProductMasterData"
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
uid | path | string |
Unique id of attribute scope to get |
Response status OK (200)
Property name | Data type | Description |
---|---|---|
Uid | string |
Unique id of scope |
Alias | string |
Unique alias of scope used to be easily identifiable by humans |
POST /attributescopes/batch/attributes Get uids of attributes in scopes
{
"81afaa78-bf33-4807-bb96-071938b25868": [
"f0909fe7-e5f4-4fe9-8407-5f91c35859c0",
"70ccb724-7d30-410b-88e1-2d17824cc4f1"
],
"f3c27bd2-1ad2-4b63-84a2-712967f00ae3": [
"c3898e12-8d93-4658-b488-b4219fa0f98c",
"6e0405c0-7d04-47f7-a2dc-7bf35872b39f"
]
}
Request parameters
Property name | Parameter type | Data type | Description |
---|---|---|---|
model | body | object : AttributeScopeAttributesModel |
Property name | Data type | Description |
---|---|---|
AttributeScopeUids | array |
Attribute scope uids to request attributes for |