Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1012 Bytes

create-break-type-response.md

File metadata and controls

34 lines (26 loc) · 1012 Bytes

Create Break Type Response

The response to the request to create a BreakType. Contains the created BreakType object. May contain a set of Error objects if the request resulted in errors.

Structure

CreateBreakTypeResponse

Fields

Name Type Tags Description Getter
BreakType BreakType Optional A defined break template that sets an expectation for possible Break
instances on a Shift.
BreakType getBreakType()
Errors List<Error> Optional Any errors that occurred during the request. List getErrors()

Example (as JSON)

{
  "break_type": {
    "id": "49SSVDJG76WF3",
    "location_id": "CGJN03P1D08GF",
    "break_name": "Lunch Break",
    "expected_duration": "PT30M",
    "is_paid": true,
    "version": 1,
    "created_at": "2019-02-26T22:42:54Z",
    "updated_at": "2019-02-26T22:42:54Z"
  }
}