A valid request URL is required to generate request examples{
"id": "ax-season",
"name": "Saison",
"scope": "product",
"source": "local",
"roots": [
{
"id": "n-blue",
"label": "Bleu",
"children": []
}
],
"active": true,
"version": 3
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}Create a taxonomy axis (axe de classification)
Creates one classification axis under a caller-supplied id, optionally with an initial node tree (roots defaults to empty). 409s when the id already exists; 400s on a bad scope/source enum or an empty name.
A valid request URL is required to generate request examples{
"id": "ax-season",
"name": "Saison",
"scope": "product",
"source": "local",
"roots": [
{
"id": "n-blue",
"label": "Bleu",
"children": []
}
],
"active": true,
"version": 3
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123,
"fieldErrors": [
{
"field": "<string>",
"message": "<string>"
}
]
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}{
"error": {
"code": "VALIDATION_FAILED",
"message": "<string>",
"statusCode": 123
}
}Authorizations
Authorization: Bearer <token>. Accepts EITHER a Keycloak access token (scopes-in-token) OR an opaque POS session token; both resolve to the same pos.* scope vocabulary the route guards enforce.
Body
Caller-supplied axis id (must be unique).
1Display name of the axis (e.g. Couleur, Famille).
1What the axis classifies: product, variant (builds SKU-group labels), or movement.
product, variant, movement Origin of the axis values: managed, local, or an external feed.
managed, local The initial node tree (unbounded depth); defaults to empty.
How the axis is typed / rendered: text (default) / color / size / etc.
text, color, size, number, measure Unit shared by measure nodes (cm, ml, …).
1Whether a product may hold several values on this axis.
Response
The created axis.
The created axis.
11product, variant, movement managed, local 0 < x <= 9007199254740991text, color, size, number, measure 1
