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

Update an existing permission

Path Params

  • Name
    spaceID
    Type
    integer
    required
    Description
  • Name
    permissionID
    Type
    integer
    required
    Description

Body Params

    • Name
      permission
      Type
      object
      Description
      PermissionUpdate represents the range of options available to update a permission

    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

    Permission
    {
      "permissions": [
        {
          "LinkedInstallation": {
            "installation": {
              "id": 0,
              "meta": {},
              "type": "string"
            }
          },
          "createdAt": "2024-04-24T00:52:04.633Z",
          "createdBy": {
            "id": 0,
            "meta": {},
            "type": "string"
          },
          "deletedAt": "2024-04-24T00:52:04.633Z",
          "deletedBy": {
            "id": 0,
            "meta": {},
            "type": "string"
          },
          "id": 0,
          "requester": {
            "id": 0,
            "meta": {},
            "type": "string"
          },
          "space": {
            "id": 0,
            "meta": {},
            "type": "string"
          },
          "updatedAt": "2024-04-24T00:52:04.633Z",
          "updatedBy": {
            "id": 0,
            "meta": {},
            "type": "string"
          }
        }
      ]
    }