# Create a location type

Adds a category that locations can be filed under. Point a location at it with
`headcount_location_type_id` on the create or update endpoint for that location.
**A type created without `sort_order` comes back without that field**, rather than
with its stored default of `0`. Read the type back if you need its complete state.

Endpoint: POST /api/v2/headcount/location/type
Version: 2.0.0
Security: default

## Header parameters:

  - `Rosterfy-Platform` (string)

## Request fields (application/json):

  - `name` (string, required)
    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 201 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)

