# Update a location type

Updates the fields supplied and returns the type in the same shape as reading it.
Only the fields sent are touched, so an empty body is a valid request that changes
nothing.

Renaming a type does not affect which locations are filed under it.

Endpoint: PUT /api/v2/headcount/location/type/{id}
Version: 2.0.0
Security: default

## Path parameters:

  - `id` (integer, required)
    The ID of the location type.

## Header parameters:

  - `Rosterfy-Platform` (string)

## Request fields (application/json):

  - `name` (string)
    The name of the location type. Required.

  - `sort_order` (integer)
    Where this type sits in the list, lowest first. Optional; types created without one sort as `0`.

## Response 200 fields (application/json):

  - `object` (object)

  - `object.id` (integer)

  - `object.name` (string)

  - `object.sort_order` (integer)

  - `object.uuid` (string)

  - `nice` (array)

  - `relations` (array)

  - `permissions` (object)

  - `permissions.read` (boolean)

  - `permissions.update` (boolean)

  - `permissions.delete` (boolean)

