OK
curl -i -X POST \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "defaultTimeZoneId": "string", "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true } }'
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces?active=true&id=string&name=string&page=1&pageSize=10&state=AL'
{ "hasResources": true, "totalResources": 0, "totalPages": 0, "pageSize": 0, "currentPage": 0, "previousPage": 0, "nextPage": 0, "results": [ { … } ] }
curl -i -X GET \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces/{workplaceId}'
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }
curl -i -X PATCH \ 'https://docs.encompassfi.com/_mock/reference/sandbox/companies/{companyId}/workplaces/{workplaceId}' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "string", "country": "string" }, "timekeepingSettings": { "defaultTimeZoneId": "string", "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true } }'
{ "id": "string", "companyId": "string", "name": "string", "active": true, "address": { "street1": "string", "street2": "string", "city": "string", "zipcode": "string", "state": "AL", "country": "US" }, "timekeepingSettings": { "dailyOvertimeHoursStart": 0.1, "weeklyOvertimeHoursStart": 0.1, "dailyDoubleOvertimeHoursStart": 0.1, "weeklyDoubleOvertimeHoursStart": 0.1, "enablePaidMealBreaks": true, "enablePaidRestBreaks": true, "defaultTimeZoneId": "string" } }