Skip to content

Create a new category

Request

Create a new category with optional details.

Security
sessionAuth
Path
orgIdstringrequired

The ID of the organization.

Bodyapplication/jsonrequired

The category object to be created.

_idinteger, (int64)

The unique identifier for the category.

namestringrequired

The name of the category.

codestringrequired

The code associated with the category.

archiveboolean

Indicates whether the category is archived or not.

x_org_idstring

The organization ID associated with the category.

created_bystring

The user who created the category.

modified_bystring

The user who last modified the category.

created_atstring, (date-time)

The date and time when the category was created.

updated_atstring, (date-time)

The date and time when the category was last updated.

curl -i -X POST \
  'https://api.aipim.fynd.com/service/panel/templates/v1.0/org/{orgId}/category' \
  -H 'Content-Type: application/json' \
  -b cc.session=YOUR_API_KEY_HERE \
  -d '{
    "_id": 0,
    "name": "string",
    "code": "string",
    "archive": true,
    "x_org_id": "string",
    "created_by": "string",
    "modified_by": "string",
    "created_at": "2019-08-24T14:15:22Z",
    "updated_at": "2019-08-24T14:15:22Z"
  }'

Responses

Category created successfully.

Bodyapplication/json
_idinteger, (int64)

The unique identifier for the category.

namestringrequired

The name of the category.

codestringrequired

The code associated with the category.

archiveboolean

Indicates whether the category is archived or not.

x_org_idstring

The organization ID associated with the category.

created_bystring

The user who created the category.

modified_bystring

The user who last modified the category.

created_atstring, (date-time)

The date and time when the category was created.

updated_atstring, (date-time)

The date and time when the category was last updated.

Response
{ "_id": 0, "name": "string", "code": "string", "archive": true, "x_org_id": "string", "created_by": "string", "modified_by": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }