Create Warehouses Group 1

Creates a new Warehouses Group 1 classification in the caller's company.

Required add-on

General use — no specific add-on required. The API key/user must have add permission on Configuration > Catalogs.

POST https://app.fracttal.com/api/warehouses_groups_1

Input parameters — Required

Sent in the request body.

ParameterTypeRequiredDescription
descriptionstring (max. 200 chars)YesClassification name. It cannot be empty, missing, or contain only spaces. Leading and trailing spaces are removed before the text is validated and saved.

Input parameters — Optional

None.

Length of description

  • The text accepts up to 200 characters, counted after removing leading and trailing spaces.
  • If it exceeds 200 characters, the request is rejected with a 400 error and no record is created. The API does not shorten the text automatically.
  • Integrations must send description with a maximum of 200 characters.

Notable behaviors (not errors)

  • Sending the same description twice does not fail and is not idempotent: it creates a second record with the same text. The endpoint does not validate uniqueness.
  • The classification is always created as enabled (enabled = true).

Output parameters

ParameterTypeDescription
successbooleantrue if the creation was successful.
messagestring"200" on success; the error code otherwise.
dataobject{ id, id_company, description, enabled } of the created classification. On error, an array with { "ERROR": "<message>" }.
totalinteger1 on success, 0 on error.

Errors

CodeCause
400description is empty, missing, or contains only spaces.
400description exceeds 200 characters.
401Invalid or missing token.
403The API key/user does not have add permission on Configuration > Catalogs.
500Unexpected internal error.

Example

Request body

{
  "description": "Critical spare parts"
}

Response 200

{
  "success": true,
  "message": "200",
  "data": {
    "id": 751,
    "id_company": 4344,
    "description": "Critical spare parts",
    "enabled": true
  },
  "total": 1
}

Response — empty, missing, or whitespace-only description (400)

{
  "success": false,
  "message": "400",
  "data": [{ "ERROR": "description is required and cannot be empty" }],
  "total": 0
}

Response — description longer than 200 characters (400)

{
  "success": false,
  "message": "400",
  "data": [{ "ERROR": "description exceeds maximum length of 200 characters" }],
  "total": 0
}

Response — missing add permission (403)

{
  "success": false,
  "message": "403",
  "data": [{ "ERROR": "User does not have permission to add warehouse group" }],
  "total": 0
}

Response — invalid or missing token (401)

{
  "success": false,
  "message": "401",
  "data": [{ "ERROR": "Unauthorized" }],
  "total": 0
}
Response
200
Language
LoadingLoading…