PATCH/spaces/api/v1/spaces/{spaceID}.json

Delete a single space by ID

Path Params

  • Name
    spaceID
    Type
    integer
    required
    Description

Body Params

    • Name
      space
      Type
      object
      Description
      SpaceUpdate represents a PATCH request to update a Space where only fields that are changing will be sent

    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
      404
      Type
      object
      Schema
      Description
      404 Not Found
    • 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-07-26T20:26:26.553Z",
      "createdBy": {
        "id": 0,
        "meta": {},
        "type": "string"
      },
      "deletedAt": "2024-07-26T20:26:26.553Z",
      "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-07-26T20:26:26.553Z",
      "updatedBy": {
        "id": 0,
        "meta": {},
        "type": "string"
      }
    }