POST/spaces/api/v1/spaces.json

Create a space

Body Params

    • Name
      space
      Type
      object
      Description
      SpaceCreate represents only the info required to create a new space

    Responses

    • Code
      200
      Type
      object
      Schema
      Description
      200 OK
      Space model represents a complete Space as returned from the database
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
    • Code
      500
      Type
      object
      Schema
      Description
      500 Internal Server Error

    Examples

    200 OK

    Space
    {
      "LinkedCategory": {
        "category": {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      },
      "banner": "string",
      "bannerX": 0,
      "bannerY": 0,
      "code": "string",
      "collaborators": [
        {
          "id": 0,
          "meta": {},
          "type": "string"
        }
      ],
      "collaboratorsCount": 0,
      "createdAt": "2024-04-24T00:52:20.157Z",
      "createdBy": {
        "id": 0,
        "meta": {},
        "type": "string"
      },
      "deletedAt": "2024-04-24T00:52:20.157Z",
      "deletedBy": {
        "id": 0,
        "meta": {},
        "type": "string"
      },
      "homepage": {
        "id": 0,
        "meta": {},
        "type": "string"
      },
      "icon": "string",
      "id": 0,
      "projectId": 0,
      "purpose": "string",
      "spaceColor": "string",
      "state": "string",
      "title": "string",
      "updatedAt": "2024-04-24T00:52:20.157Z",
      "updatedBy": {
        "id": 0,
        "meta": {},
        "type": "string"
      }
    }