---
updatedAt: 2026-06-09T10:44:05.000Z
agentTools:
  projectIndex: https://developer.phorest.com/llms.txt
---

# Update a break

Update and return a break for the specified business id, branch id and break id

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Third Party API",
    "description": "This API allow third parties to integrate with Phorest internal core services such as core, online-booking, planner, etc. Please, see the <a href=\"http://dev-changelog.s3-website-eu-west-1.amazonaws.com/?prefix=/third-party-api-server/\" target=\"_blank\">CHANGELOG</a> for further information on API updates.",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "1.42.1"
  },
  "servers": [
    {
      "url": "http://api-gateway-eu.phorest.com/third-party-api-server",
      "description": "If you are from Europe, use this server"
    },
    {
      "url": "http://api-gateway-us.phorest.com/third-party-api-server",
      "description": "If you are from United States, Canada or Australia, use this server"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "tags": [
    {
      "name": "Break",
      "description": "Break Controller"
    }
  ],
  "paths": {
    "/api/business/{businessId}/branch/{branchId}/break/{breakId}": {
      "put": {
        "tags": [
          "Break"
        ],
        "summary": "Update a break",
        "description": "Update and return a break for the specified business id, branch id and break id",
        "operationId": "updateBreak",
        "parameters": [
          {
            "name": "businessId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "branchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "breakId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BreakUpdateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Break updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BreakResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "Business, branch or break with the specified ids don't exist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "Break has been updated since it was read",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Request rate limit exceeded. Current limit set to 100 rps.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "statusCode": {
            "type": "integer",
            "format": "int32"
          },
          "id": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          }
        }
      },
      "BreakUpdateRequest": {
        "type": "object",
        "properties": {
          "breakDate": {
            "type": "string",
            "format": "date",
            "example": "2018-01-01"
          },
          "startTime": {
            "type": "string",
            "example": "12:30:00"
          },
          "endTime": {
            "type": "string",
            "example": "13:00:00"
          },
          "staffId": {
            "type": "string",
            "example": "staffid"
          },
          "roomId": {
            "type": "string",
            "example": "roomid"
          },
          "machineId": {
            "type": "string",
            "example": "machineid"
          },
          "label": {
            "type": "string",
            "example": "lunch break"
          },
          "paidBreak": {
            "type": "boolean",
            "example": true
          },
          "breakId": {
            "type": "string",
            "example": "ab123"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "example": 1
          }
        }
      },
      "BreakResponse": {
        "type": "object",
        "properties": {
          "breakDate": {
            "type": "string",
            "format": "date",
            "example": "2018-01-01"
          },
          "startTime": {
            "type": "string",
            "example": "12:30:00"
          },
          "endTime": {
            "type": "string",
            "example": "13:00:00"
          },
          "staffId": {
            "type": "string",
            "example": "staffid"
          },
          "roomId": {
            "type": "string",
            "example": "roomid"
          },
          "machineId": {
            "type": "string",
            "example": "machineid"
          },
          "label": {
            "type": "string",
            "example": "lunch break"
          },
          "paidBreak": {
            "type": "boolean",
            "example": true
          },
          "breakId": {
            "type": "string",
            "readOnly": true,
            "example": "ab123"
          },
          "version": {
            "type": "integer",
            "format": "int64",
            "example": 1
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  }
}
```