Types

Create a new place type

Creates a new place type in the system. This operation requires write permissions on properties.

post/types/places

Request

  • Base URL: https://api.faireplace.com/api
  • URL: https://api.faireplace.com/api/types/places
  • Auth: HTTP bearer

Request body

namestring required

Name of the place type to create

Example request

{
  "name": "Commercial building"
}

Response

Place type created successfully

idstring uuid nullable required

Unique identifier of the place type

namestring nullable required

Place type name

created_atstring date-time nullable required

Creation date and time

updated_atstring date-time nullable required

Last modification date and time

Example response

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "name": "Residential building",
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.