Update break type
PUT
/v2/labor/break-types/{id}
Updates an existing BreakType
.
Permissions
TIMECARDS_SETTINGS_WRITE
TIMECARDS_SETTINGS_READ
Try in API Explorer
Name | Description |
---|---|
id
Required
|
UUID for the |
Name | Description |
---|---|
break_
Required
|
The updated |
Response Fields
Name | Description |
---|---|
break_
|
The response object. |
errors
|
Any errors that occurred during the request. |
Examples
PUT
/v2/labor/break-types/{id}
cURL
- cURL
- Ruby
- Python
- C#
- Java
- PHP
- Node.js
curl https://connect.squareup.com/v2/labor/break-types/Q6JSJS6D4DBCH \
-X PUT \
-H 'Square-Version: 2021-02-26' \
-H 'Authorization: Bearer ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"break_type": {
"location_id": "26M7H24AZ9N6R",
"break_name": "Lunch",
"expected_duration": "PT50M",
"is_paid": true,
"version": 1
}
}'
Response JSON
{
"break_type": {
"id": "Q6JSJS6D4DBCH",
"location_id": "26M7H24AZ9N6R",
"break_name": "Lunch",
"expected_duration": "PT50M",
"is_paid": true,
"version": 2,
"created_at": "2018-06-12T20:19:12Z",
"updated_at": "2019-02-26T23:12:59Z"
}
}