- Update category mapping by ID
Create a new category mapping
Get all category mappings
Get categories mapped to a specific template
Get category mappings by codes in bulk
Get template details for given category mapping codes
Get category mapping by code
Get category mapping by ID
Delete category mapping by ID
Bulk map category mappings to a template
Bulk unmap category mappings from a template
Update category mapping b...
Update a category mapping by its unique ID within the organization.
Security
sessionAuth
The category mapping object to be updated. Note - the "template" field is ignored even if provided.
- AIPIM Production Serverhttps://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/category/mapping/{id}
curl -i -X PATCH \
'https://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/category/mapping/{id}' \
-H 'Content-Type: application/json' \
-b cc.session=YOUR_API_KEY_HERE \
-d '{
"code": "SampleCategory",
"mapping": [
1,
2,
3
],
"archive": false,
"mapping_code": [
"code1",
"code2",
"code3"
],
"sales_id": [
"sale1",
"sale2",
"sale3"
],
"x_org_id": "org123",
"created_by": "user123",
"modified_by": "user456",
"template": "5f4b8c60d46df3841d86a551"
}'Category mapping updated successfully.
Response
{ "code": "string", "mapping": [ { … } ], "archive": true, "mapping_code": [ "string" ], "sales_id": [ { … } ], "x_org_id": "string", "created_by": "string", "modified_by": "string", "template": "060ce75e-87d6-4677-b330-eaee58e54138" }