PeopleForce
Core

Early access

Company API v4 is the next-generation API and is under active development. Endpoints and fields may still change.

Update a location

Update a location

PUT
/api/v4/locations/{id}

Update a location

Path Parameters

id*integer
Formatint32

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Update a location

Response Body

application/json

curl -X PUT "https://example.com/api/v4/locations/0" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": 0,  "name": "string",  "country_code": "string",  "address": "string",  "time_zone": "string",  "holiday_policy_id": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}