Create a Space
This method allows you to create a geolocation space. A space is associated to a geometry, which can be a point or polygon. The geolocations of a specific geometry can be associated only to those spaces of the respective geometries.
Base URI: https://<server address>/geolocation/v1/Spaces
Request
URI: /geolocation/v1/Spaces
HTTP: POST
Roles Required: Geolocation_Editor, Geolocation_Super_Editor
For more information on Roles and Permissions, see Role Template and Scopes
Request Parameters
None.
/geolocation/v1/Spaces
Payload
Format: JSON
Request Properties
| Name | Data Type | Required |
Maximum Length |
Description |
|---|---|---|---|---|
| Space Name | string | Yes | 100 | The unique name of the geolocation space. |
| Descriptions | array | No | - | The description of the geolocation space. |
| Geometry Type | string | No | 30 | The geometry type of the geolocation space.
For example, Point or Polygon. |
| ParentSpaceId | string | No | 36 | The parent space ID. |
Descriptions
| Name | Data Type | Required | Maximum Length | Description |
|---|---|---|---|---|
| Label | string | Yes | 200 | The label name of the geolocation space. |
| Locale | string | Yes | 2 | The locale of the geolocation space. For example, EN. |
Geometry
| Name | Data Type | Required | Maximum Length | Description |
|---|---|---|---|---|
| Type | string | Yes | 20 | The geometry type of the geolocation space.
For example, Point or Polygon. |
The JSON for this method has the following structure:
Response
|
Code |
Description |
|---|---|
|
201 |
New resource is returned in Location header |
|
400 |
Invalid request. Wrong format or structure of the provided request body |
|
403 |
Access denied. You did not have the required permissions to access the resource. |
|
409 |
Conflict. Geolocation space already exists. |
|
500 |
Internal server error. The operation you requested led to an error during execution. |
For more information on the error response structures, see Error Response Structures