POST/spaces/api/v1/spaces/categories.json

create a category

Body Params

    • Name
      category
      Type
      object
      Description
      CategoryCreate adds a new Category to the data store.

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
    • Code
      404
      Type
      object
      Schema
      Description
      404 Not Found
    • Code
      500
      Type
      object
      Schema
      Description
      500 Internal Server Error

    Examples

    200 OK

    Category
    {
      "category": {
        "color": "string",
        "createdAt": "2024-06-20T19:01:44.887Z",
        "createdBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "deletedAt": "2024-06-20T19:01:44.887Z",
        "deletedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        },
        "id": 0,
        "meta": {
          "spaceCount": 0
        },
        "name": "string",
        "updatedAt": "2024-06-20T19:01:44.887Z",
        "updatedBy": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      }
    }