Inventory

Create a new inventory category

Creates a new inventory category

post/inventory/categories

Request

  • Base URL: https://api.faireplace.com/api
  • URL: https://api.faireplace.com/api/inventory/categories
  • Auth: HTTP bearer

Request body

namestring required

Category name

descriptionstring nullable

Category description

Example request

{
  "name": "Doors and woodwork",
  "description": "Doors and woodwork"
}

Response

Inventory category created successfully

idstring uuid required

Unique identifier of the category

namestring required

Category name

descriptionstring nullable

Category description

created_atstring date-time required

Creation date

updated_atstring date-time required

Last modification date

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Doors and woodwork",
  "description": "Doors and woodwork",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.