Update a workplace

Updates the specified workplace.

patch/workplaces/{workplace}

Request

Path parameters

workplacestring required

Request body

companystring

Company ID to associate with the workplace.

namestring

Name for the workplace.

activeboolean

Indicates whether the workplace can be associated with an employee for payroll

metadatastring json

Additional loosely structured information to associate with the workplace

Response

200

idstring
namestring
companystring
activeboolean
metadataobject

Example response

{
  "id": "wrk_oRgjEaRycoCPuS5TqVkm",
  "name": "New York Office",
  "address": {
    "line1": "200 Park Ave",
    "city": "New York",
    "state": "NY",
    "postal_code": "10166",
    "country": "US"
  },
  "company": "com_P7JPeBhb8hH23iiReDQ5",
  "active": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.