C-TIP API
Welcome the C-TIP API. This API provides access to your own GeoSpatial data and environment.
API Description ¶
In this section we will go over the general calls and how to use the C-TIP API.
Login
When an account is created for you, you have access to a password and an email address. With this information you can obtain an API key.
Authentication is done based on JWT tokens that have an expiration time of 24 hours.
See the Authorization section for more information how to login to the API.
Authentication
Requesting any endpoint except the authentication will require you to send your token. This token will be given to you in the login response after a successful login, called ‘access_token’. Sending this token with any call can be done in two-ways. Either by Header or in the Query of an request.
Header
Use the following header to prove authorization of your request.
Authorization: Bearer vr5HmMkzlxKE70W1y4MibiJUusZwZC25NOVBEx3BD1
Notice Bearer has a capital B
Session
After login, the API remembers your session and to which tenant and to which tenant you are connected to. All calls are done on that specific tenant and network If you want to switch to another tenant and/or network, you have to change your session by setting the x-tenant and/or x-network header with the tenant id and/or the network id.
x-tenant: 1;
x-network: 1;
Actions ¶
All calls for action management
Action list ¶
Get a list of actions
Get actionsGET/action{?perPage}
Get a list of actions.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of actions to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"map_object_type_id": 2,
"action_status_id": 3,
"map_object_id": 7,
"geo_object_id": 2,
"dynamic_action_type_id": 9,
"action_priority_id": 10,
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new actionPOST/action{?perPage}
Create a new action with the required parameters.
New actions
New actions are coupled to your current tenant.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of actions to return
Body
{
"data": {
"map_object_type_id": 2,
"action_status_id": 3,
"map_object_id": 7,
"geo_object_id": 2,
"dynamic_action_type_id": 9,
"action_priority_id": 10
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"map_object_type_id": {
"type": "number",
"description": "Id of primary tenant"
},
"action_status_id": {
"type": "number",
"description": "Id of the current action status"
},
"map_object_id": {
"type": "number",
"description": "Id of the coupled map_object"
},
"geo_object_id": {
"type": "number",
"description": "Id of the location object"
},
"dynamic_action_type_id": {
"type": "number",
"description": "Id of the dynamic action type"
},
"action_priority_id": {
"type": "number",
"description": "Id of the current priority"
}
},
"required": [
"map_object_type_id",
"action_status_id",
"dynamic_action_type_id",
"action_priority_id"
]
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Action ¶
Get a specific actions
Get ActionGET/action/{id}
Get a action.
Example URI
- id
integer(required) Example: 1Id of a specific action
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"map_object_type_id": 2,
"action_status_id": 3,
"map_object_id": 7,
"geo_object_id": 2,
"dynamic_action_type_id": 9,
"action_priority_id": 10,
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Action identifier"
},
"map_object_type_id": {
"type": "number",
"description": "Id of primary tenant"
},
"action_status_id": {
"type": "number",
"description": "Id of the current action status"
},
"map_object_id": {
"type": "number",
"description": "Id of the coupled map_object"
},
"geo_object_id": {
"type": "number",
"description": "Id of the location object"
},
"dynamic_action_type_id": {
"type": "number",
"description": "Id of the dynamic action type"
},
"action_priority_id": {
"type": "number",
"description": "Id of the current priority"
},
"created_at": {
"type": "number",
"description": "Timestamp of action creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last action update"
}
}
}
}
}Update an existing actionPUT/action/{id}
Update a action
Example URI
- id
integer(required) Example: 1Id of a specific action
Body
{
"data": {
"id": 1,
"action_status_id": 3,
"geo_object_id": 2,
"action_priority_id": 10
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Action identifier"
},
"action_status_id": {
"type": "number",
"description": "Id of the current action status"
},
"geo_object_id": {
"type": "number",
"description": "Id of the location object"
},
"action_priority_id": {
"type": "number",
"description": "Id of the current priority"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonPatch an existing actionPATCH/action/{id}
Patch a action
Example URI
- id
integer(required) Example: 1Id of a specific action
Body
{
"data": {
"id": 1,
"action_status_id": 3,
"geo_object_id": 2,
"action_priority_id": 10
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Action identifier"
},
"action_status_id": {
"type": "number",
"description": "Id of the current action status"
},
"geo_object_id": {
"type": "number",
"description": "Id of the location object"
},
"action_priority_id": {
"type": "number",
"description": "Id of the current priority"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonDelete an existing actionDELETE/action/{id}
Delete a action
Example URI
- id
integer(required) Example: 1Id of a specific action
200Headers
Content-Type: application/jsonMapObjects ¶
All calls for MapObject management
MapObject list ¶
Get a list of MapObjects
Get MapObjectsGET/object{?perPage}{?include}
Get a list of MapObjects.
Example URI
- perPage
number(optional) Default: 15 Example: 25The maximum number of objects to return
- include
string(optional) Example: actionOption to get related data, multiple options are available by joining them with a ‘,’ in between (i.e. ‘attribute,action’). WARNING: this may increase loading times drastically
Choices:
actionmapObjectTypemapObjectStatusmapObjectImagemapObjectSelectionattributeactionCountchildrenparentsmapObjectSelectionIdmapObjectLabelcreatedBystartPointendPoint
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5,
"geoObject": {
"data": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
"road": "AbcStreet",
"house_number": "12",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"country_code": 528,
"length": 1000,
"start_point": 123,
"end_point": 123,
"area": 1000
},
"id": 1
}
},
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new MapObjectPOST/object{?perPage}{?include}
Create a new MapObject with the required parameters.
Example URI
- perPage
number(optional) Default: 15 Example: 25The maximum number of objects to return
- include
string(optional) Example: actionOption to get related data, multiple options are available by joining them with a ‘,’ in between (i.e. ‘attribute,action’). WARNING: this may increase loading times drastically
Choices:
actionmapObjectTypemapObjectStatusmapObjectImagemapObjectSelectionattributeactionCountchildrenparentsmapObjectSelectionIdmapObjectLabelcreatedBystartPointendPoint
Body
{
"data": {
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the object"
},
"parent_id": {
"type": "number",
"description": "Id of parent object"
},
"map_object_type_id": {
"type": "number",
"description": "Id of the object type"
},
"geo_object_id": {
"type": "number",
"description": "Id of of the location object"
},
"map_object_status_id": {
"type": "number",
"description": "Id of the current status"
}
}
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}MapObject ¶
Get a specific objects
Get MapObjectGET/object/{id}
Get a MapObject.
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5,
"geoObject": {
"data": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
"road": "AbcStreet",
"house_number": "12",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"country_code": 528,
"length": 1000,
"start_point": 123,
"end_point": 123,
"area": 1000
},
"id": 1
}
},
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObject identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
},
"parent_id": {
"type": "number",
"description": "Id of parent object"
},
"map_object_type_id": {
"type": "number",
"description": "Id of the object type"
},
"geo_object_id": {
"type": "number",
"description": "Id of of the location object"
},
"map_object_status_id": {
"type": "number",
"description": "Id of the current status"
},
"geoObject": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of format"
},
"geometry": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of geometry object"
},
"coordinates": {
"description": "Array of coordinates"
}
}
},
"properties": {
"type": "object",
"properties": {
"road": {
"type": "string",
"description": "Road of the GeoObject"
},
"house_number": {
"type": "string",
"description": "House number of the GeoObject"
},
"city_district": {
"type": "string",
"description": "City district of the GeoObject"
},
"city": {
"type": "string",
"description": "City of the GeoObject"
},
"postcode": {
"type": "string",
"description": "Postcode of the GeoObject"
},
"country_code": {
"type": "number",
"description": "Country Code of the GeoObject"
},
"length": {
"type": "number",
"description": "Length of the GeoObject (Only for LineStrings)"
},
"start_point": {
"type": "number",
"description": "MapObjectId of startpoint of the GeoObject (Only for LineStrings)"
},
"end_point": {
"type": "number",
"description": "MapObjectId of endpoint of the GeoObject (Only for LineStrings)"
},
"area": {
"type": "number",
"description": "Area of the GeoObject (Only for Polygons)"
}
},
"description": "Object with properties of object"
},
"id": {
"type": "number",
"description": "Id of geoObject"
}
}
}
}
},
"created_at": {
"type": "number",
"description": "Timestamp of object creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last object update"
}
}
}
}
}Update an existing MapObjectPUT/object/{id}
Update a MapObject
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "Bord",
"parent_id": 3,
"map_object_status_id": 5
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObject identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
},
"parent_id": {
"type": "number",
"description": "Id of parent object"
},
"map_object_status_id": {
"type": "number",
"description": "Id of the current status"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing MapObjectPATCH/object/{id}
Patch a MapObject
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "Bord",
"parent_id": 3,
"map_object_status_id": 5
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObject identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
},
"parent_id": {
"type": "number",
"description": "Id of parent object"
},
"map_object_status_id": {
"type": "number",
"description": "Id of the current status"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing MapObjectDELETE/object/{id}
Delete a MapObject
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}MapObjectImages ¶
All calls for mapObject image management
MapObjectImage list ¶
Get a list of mapObject images
Get mapObject imagesGET/object/{mapObjectId}/image{?perPage}
Get a list of mapObject images.
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- perPage
integer(optional) Default: 15 Example: 25The maximum number of mapObject images to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"map_object_id": 2,
"resource": "F34xfds",
"title": "Nice picture"
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new mapObject imagePOST/object/{mapObjectId}/image{?perPage}
Create a new mapObject image with the required parameters.
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- perPage
integer(optional) Default: 15 Example: 25The maximum number of mapObject images to return
Headers
Content-Type: multipart/form-data; boundary=---BOUNDARY
Content-Length: $requestlenBody
---BOUNDARY
content-disposition: form-data; name="name"
Title
---BOUNDARY
content-disposition: form-data; name="image"; filename="$filename"
Content-Type: $mimetype
Content-Transfer-Encoding: binary
$binarydata
---BOUNDARY201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}MapObjectImage ¶
Get a specific mapObject images
Get MapObjectImageGET/object/{mapObjectId}image/{id}
Get a mapObject image.
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- id
integer(required) Example: 1Id of a specific mapObject image
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"map_object_id": 2,
"resource": "F34xfds",
"title": "Nice picture"
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObjectImage identifier"
},
"map_object_id": {
"type": "number",
"description": "Id of coupled mapObject"
},
"resource": {
"type": "string",
"description": "Resource key?"
},
"title": {
"type": "string",
"description": "Title of the image"
}
}
}
}
}Update an existing mapObject imagePUT/object/{mapObjectId}image/{id}
Update a mapObject image
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- id
integer(required) Example: 1Id of a specific mapObject image
Body
{
"title": "Nice picture"
}Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the image"
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing mapObject imagePATCH/object/{mapObjectId}image/{id}
Patch a mapObject image
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- id
integer(required) Example: 1Id of a specific mapObject image
Body
{
"title": "Nice picture"
}Schema
{
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Title of the image"
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing mapObject imageDELETE/object/{mapObjectId}image/{id}
Delete a mapObject image
Example URI
- mapObjectId
integer(required) Example: 1Id of an mapObject
- id
integer(required) Example: 1Id of a specific mapObject image
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}MapObjectTypes ¶
All calls for mapObjectType management
MapObjectType list ¶
Get a list of mapObjectTypes
Get mapObjectTypesGET/type{?perPage}
Get a list of mapObjectTypes.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"name": "Network",
"description": "Root node network",
"map_object_category_id": 1,
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new mapObjectTypePOST/type{?perPage}
Create a new mapObjectType with the required parameters.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
Body
{
"data": {
"name": "Network",
"description": "Root node network",
"map_object_category_id": 1
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the mapObjectType"
},
"description": {
"type": "string",
"description": "Description of the mapObjectType"
},
"map_object_category_id": {
"type": "number",
"description": "Id of the mapObjectCategory the mapObjectType belongs to"
}
}
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}MapObjectType ¶
Get a specific mapObjectType
Get MapObjectTypeGET/type/{id}
Get a mapObjectType.
Example URI
- id
integer(required) Example: 1Id of a specific mapObjectType
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"name": "Network",
"description": "Root node network",
"map_object_category_id": 1,
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObjectType identifier"
},
"name": {
"type": "string",
"description": "Name of the mapObjectType"
},
"description": {
"type": "string",
"description": "Description of the mapObjectType"
},
"map_object_category_id": {
"type": "number",
"description": "Id of the mapObjectCategory the mapObjectType belongs to"
},
"created_at": {
"type": "number",
"description": "Timestamp of user creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last user update"
}
}
}
}
}Update an existing mapObjectTypePUT/type/{id}
Update a mapObjectType
Example URI
- id
integer(required) Example: 1Id of a specific mapObjectType
Body
{
"data": {
"id": 1,
"name": "Network",
"description": "Root node network",
"map_object_category_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObjectType identifier"
},
"name": {
"type": "string",
"description": "Name of the mapObjectType"
},
"description": {
"type": "string",
"description": "Description of the mapObjectType"
},
"map_object_category_id": {
"type": "number",
"description": "Id of the mapObjectCategory the mapObjectType belongs to"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing mapObjectTypePATCH/type/{id}
Patch a mapObjectType
Example URI
- id
integer(required) Example: 1Id of a specific mapObjectType
Body
{
"data": {
"id": 1,
"name": "Network",
"description": "Root node network",
"map_object_category_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "MapObjectType identifier"
},
"name": {
"type": "string",
"description": "Name of the mapObjectType"
},
"description": {
"type": "string",
"description": "Description of the mapObjectType"
},
"map_object_category_id": {
"type": "number",
"description": "Id of the mapObjectCategory the mapObjectType belongs to"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing mapObjectTypeDELETE/type/{id}
Delete a mapObjectType
Example URI
- id
integer(required) Example: 1Id of a specific mapObjectType
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}Network ¶
All calls for Network management
Network list ¶
Get a list of Networks
Get NetworksGET/network{?perPage}
Get a list of Networks.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of objects to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"name": "FKP Groningen",
"geo_object_id": 4,
"geoObject": {
"data": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
"road": "AbcStreet",
"house_number": "12",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"country_code": 528,
"length": 1000,
"start_point": 123,
"end_point": 123,
"area": 1000
},
"id": 1
}
},
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new NetworkPOST/network{?perPage}
Create a new Network with the required parameters.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of objects to return
Body
{
"data": {
"name": "Bord",
"geo_object_id": 4
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the object"
},
"geo_object_id": {
"type": "number",
"description": "Id of of the location object"
}
}
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Network ¶
Get a specific objects
Get NetworkGET/network/{id}
Get a Network.
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"name": "FKP Groningen",
"geo_object_id": 4,
"geoObject": {
"data": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
"road": "AbcStreet",
"house_number": "12",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"country_code": 528,
"length": 1000,
"start_point": 123,
"end_point": 123,
"area": 1000
},
"id": 1
}
},
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Network identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
},
"geo_object_id": {
"type": "number",
"description": "Id of of the location object"
},
"geoObject": {
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of format"
},
"geometry": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Type of geometry object"
},
"coordinates": {
"description": "Array of coordinates"
}
}
},
"properties": {
"type": "object",
"properties": {
"road": {
"type": "string",
"description": "Road of the GeoObject"
},
"house_number": {
"type": "string",
"description": "House number of the GeoObject"
},
"city_district": {
"type": "string",
"description": "City district of the GeoObject"
},
"city": {
"type": "string",
"description": "City of the GeoObject"
},
"postcode": {
"type": "string",
"description": "Postcode of the GeoObject"
},
"country_code": {
"type": "number",
"description": "Country Code of the GeoObject"
},
"length": {
"type": "number",
"description": "Length of the GeoObject (Only for LineStrings)"
},
"start_point": {
"type": "number",
"description": "MapObjectId of startpoint of the GeoObject (Only for LineStrings)"
},
"end_point": {
"type": "number",
"description": "MapObjectId of endpoint of the GeoObject (Only for LineStrings)"
},
"area": {
"type": "number",
"description": "Area of the GeoObject (Only for Polygons)"
}
},
"description": "Object with properties of object"
},
"id": {
"type": "number",
"description": "Id of geoObject"
}
}
}
}
},
"created_at": {
"type": "number",
"description": "Timestamp of object creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last object update"
}
}
}
}
}Update an existing NetworkPUT/network/{id}
Update a Network
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "WNT Groningen"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Network identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing NetworkPATCH/network/{id}
Patch a Network
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "WNT Groningen"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Network identifier"
},
"name": {
"type": "string",
"description": "Name of the object"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing NetworkDELETE/network/{id}
Delete a Network
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}NetworkChildren ¶
All calls to get a lot of objects under a single network
Network Children ¶
Get Network ChildrenGET/network/{id}/children{?perPage}{?depth}
Get the children objects under a network.
Example URI
- id
integer(required) Example: 1Id of a specific network
- perPage
integer(optional) Default: 15 Example: 25The maximum number of objects to return
- depth
boolean(optional) Default: false Example: trueWhether you only want the MapObject directly under the network, or also the children of those mapObjects and deeper
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5,
"geoObject": {
"data": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": []
},
"properties": {
"road": "AbcStreet",
"house_number": "12",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"country_code": 528,
"length": 1000,
"start_point": 123,
"end_point": 123,
"area": 1000
},
"id": 1
}
},
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Network Children Web ¶
Get Network WebGET/network/{id}/children/web
Get all the children MapObjects under a network in an array format.
Example URI
- id
integer(required) Example: 1Id of a specific network
200Headers
Content-Type: application/jsonBody
[
{
"id": 1,
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5,
"created_at": 1449143207,
"updated_at": 1449143207,
"deleted_at": 0,
"geo_type": "Point",
"country_code": 528,
"road": "AbcStreet",
"house_number": "123",
"neighbourhood": "AbcNeighbourhood",
"suburb": "AbcSuburb",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"length": 100,
"start_point": 123,
"end_point": 123,
"area": 1000,
"value_linestring": "SRID=4326;LineString(53.472422099307 6.157922744751, 53.472422099307 6.157922744751)",
"value_point": "SRID=4326;POINT(53.472422099307 6.157922744751)",
"value_polygon": "SRID=4326;Polygon(53.472422099307 6.157922744751, 53.472422099307 6.157922744751)",
"label": "5"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Network Children All ¶
Get Network AllGET/network/{id}/children/all
Get all the objects under a network.
Example URI
- id
integer(required) Example: 1Id of a specific network
200Headers
Content-Type: application/jsonBody
{
"actionImageTypes": {},
"actionPriorities": {},
"actionStatuses": {},
"attributes": {},
"attributeGroups": {},
"dynamicActionTypes": {},
"dynamicActionTypeCategories": {},
"keyValues": {},
"mapObjectCategories": {},
"mapObjectSelections": {},
"mapObjectSelectionTypes": {},
"mapObjectStatuses": {},
"mapObjectTypes": {},
"mapObjectTypeMapObjectStatuses": {},
"mapObjectTypeActionStatuses": {},
"actions": {},
"mapObjects": {}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"actionImageTypes": {
"type": "object",
"properties": {}
},
"actionPriorities": {
"type": "object",
"properties": {}
},
"actionStatuses": {
"type": "object",
"properties": {}
},
"attributes": {
"type": "object",
"properties": {}
},
"attributeGroups": {
"type": "object",
"properties": {}
},
"dynamicActionTypes": {
"type": "object",
"properties": {}
},
"dynamicActionTypeCategories": {
"type": "object",
"properties": {}
},
"keyValues": {
"type": "object",
"properties": {}
},
"mapObjectCategories": {
"type": "object",
"properties": {}
},
"mapObjectSelections": {
"type": "object",
"properties": {}
},
"mapObjectSelectionTypes": {
"type": "object",
"properties": {}
},
"mapObjectStatuses": {
"type": "object",
"properties": {}
},
"mapObjectTypes": {
"type": "object",
"properties": {}
},
"mapObjectTypeMapObjectStatuses": {
"type": "object",
"properties": {}
},
"mapObjectTypeActionStatuses": {
"type": "object",
"properties": {}
},
"actions": {
"type": "object",
"properties": {}
},
"mapObjects": {
"type": "object",
"properties": {}
}
}
}Network Children Config ¶
Get Network ConfigGET/network/{id}/children/config
Get all the objects under a network.
Example URI
- id
integer(required) Example: 1Id of a specific network
200Headers
Content-Type: application/jsonBody
{
"actionImageTypes": {},
"actionPriorities": {},
"actionStatuses": {},
"attributes": {},
"attributeGroups": {},
"dynamicActionTypes": {},
"dynamicActionTypeCategories": {},
"keyValues": {},
"mapObjectCategories": {},
"mapObjectSelections": {},
"mapObjectSelectionTypes": {},
"mapObjectStatuses": {},
"mapObjectTypes": {},
"mapObjectTypeMapObjectStatuses": {},
"mapObjectTypeActionStatuses": {}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"actionImageTypes": {
"type": "object",
"properties": {}
},
"actionPriorities": {
"type": "object",
"properties": {}
},
"actionStatuses": {
"type": "object",
"properties": {}
},
"attributes": {
"type": "object",
"properties": {}
},
"attributeGroups": {
"type": "object",
"properties": {}
},
"dynamicActionTypes": {
"type": "object",
"properties": {}
},
"dynamicActionTypeCategories": {
"type": "object",
"properties": {}
},
"keyValues": {
"type": "object",
"properties": {}
},
"mapObjectCategories": {
"type": "object",
"properties": {}
},
"mapObjectSelections": {
"type": "object",
"properties": {}
},
"mapObjectSelectionTypes": {
"type": "object",
"properties": {}
},
"mapObjectStatuses": {
"type": "object",
"properties": {}
},
"mapObjectTypes": {
"type": "object",
"properties": {}
},
"mapObjectTypeMapObjectStatuses": {
"type": "object",
"properties": {}
},
"mapObjectTypeActionStatuses": {
"type": "object",
"properties": {}
}
}
}Network Children By MapObjectType ¶
Get Network By MapObjectTypeGET/network/{id}/children/type/{typeId}
Get all the objects under a network.
Example URI
- id
integer(required) Example: 1Id of a specific network
- typeId
integer(required) Example: 3Id of a specific MapObjecType
200Headers
Content-Type: application/jsonBody
[
{
"id": 1,
"name": "Bord",
"parent_id": 2,
"map_object_type_id": 3,
"geo_object_id": 4,
"map_object_status_id": 5,
"created_at": 1449143207,
"updated_at": 1449143207,
"deleted_at": 0,
"geo_type": "Point",
"country_code": 528,
"road": "AbcStreet",
"house_number": "123",
"neighbourhood": "AbcNeighbourhood",
"suburb": "AbcSuburb",
"city_district": "AbcDistrict",
"city": "AbcCity",
"postcode": "1234 AB",
"length": 100,
"start_point": 123,
"end_point": 123,
"area": 1000,
"value_linestring": "SRID=4326;LineString(53.472422099307 6.157922744751, 53.472422099307 6.157922744751)",
"value_point": "SRID=4326;POINT(53.472422099307 6.157922744751)",
"value_polygon": "SRID=4326;Polygon(53.472422099307 6.157922744751, 53.472422099307 6.157922744751)",
"label": "5"
}
]Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array"
}Role ¶
All calls for role management
Role list ¶
Get a list of roles
Get rolesGET/role{?perPage}
Get a list of roles.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of roles to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"name": "admin",
"display_name": "Admin",
"description": "Description of admin",
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new rolePOST/role{?perPage}
Create a new role with the required parameters.
New roles
New roles are coupled to your current tenant.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of roles to return
Body
{
"data": {
"name": "admin",
"display_name": "Admin",
"description": "Description of admin"
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the role, lowercase for identification"
},
"display_name": {
"type": "string",
"description": "Display label of a role"
},
"description": {
"type": "string",
"description": "Description of a role"
}
}
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Role ¶
Get a specific roles
Get RoleGET/role/{id}
Get a role.
Example URI
- id
integer(required) Example: 1Id of a specific role
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"name": "admin",
"display_name": "Admin",
"description": "Description of admin",
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Role identifier"
},
"name": {
"type": "string",
"description": "Name of the role, lowercase for identification"
},
"display_name": {
"type": "string",
"description": "Display label of a role"
},
"description": {
"type": "string",
"description": "Description of a role"
},
"created_at": {
"type": "number",
"description": "Timestamp of role creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last role update"
}
}
}
}
}Update an existing rolePUT/role/{id}
Update a role
Example URI
- id
integer(required) Example: 1Id of a specific role
Body
{
"data": {
"id": 1,
"name": "admin",
"display_name": "Admin",
"description": "Description of admin"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Role identifier"
},
"name": {
"type": "string",
"description": "Name of the role, lowercase for identification"
},
"display_name": {
"type": "string",
"description": "Display label of a role"
},
"description": {
"type": "string",
"description": "Description of a role"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing rolePATCH/role/{id}
Patch a role
Example URI
- id
integer(required) Example: 1Id of a specific role
Body
{
"data": {
"id": 1,
"name": "admin",
"display_name": "Admin",
"description": "Description of admin"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Role identifier"
},
"name": {
"type": "string",
"description": "Name of the role, lowercase for identification"
},
"display_name": {
"type": "string",
"description": "Display label of a role"
},
"description": {
"type": "string",
"description": "Description of a role"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing roleDELETE/role/{id}
Delete a role
Example URI
- id
integer(required) Example: 1Id of a specific role
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}Selections ¶
All calls for Selection management
Selection list ¶
Get a list of Selections
Get SelectionsGET/selection{?perPage}{?include}
Get a list of Selections.
Example URI
- perPage
number(optional) Default: 15 Example: 25The maximum number of objects to return
- include
string(optional) Example: mapObjectOption to get related data, multiple options are available by joining them with a ‘,’ in between (i.e. ‘attribute,parent’). WARNING: this may increase loading times drastically
Choices:
mapObjectmapObjectSelectionTypemapObjectSelectionImageattributeparentmapObjectId
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"parent_id": 2,
"name": "Selectie",
"description": "Dit is een omschrijving",
"map_object_selection_type_id": 3,
"network_id": 73,
"status": "ok",
"created_at": 1449143207,
"updated_at": 1449143207,
"created_by": 1
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new SelectionPOST/selection{?perPage}{?include}
Create a new Selection with the required parameters.
Example URI
- perPage
number(optional) Default: 15 Example: 25The maximum number of objects to return
- include
string(optional) Example: mapObjectOption to get related data, multiple options are available by joining them with a ‘,’ in between (i.e. ‘attribute,parent’). WARNING: this may increase loading times drastically
Choices:
mapObjectmapObjectSelectionTypemapObjectSelectionImageattributeparentmapObjectId
Body
{
"data": {
"name": "Bord",
"description": "Dit is een omschrijving",
"parent_id": 3,
"map_object_selection_type_id": 5
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the selection"
},
"description": {
"type": "string",
"description": "Description of the selection"
},
"parent_id": {
"type": "number",
"description": "Id of parent selection"
},
"map_object_selection_type_id": {
"type": "number",
"description": "Id of the selection type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Selection ¶
Get a specific Selection
Get SelectionGET/selection/{id}
Get a Selection.
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"parent_id": 2,
"name": "Selectie",
"description": "Dit is een omschrijving",
"map_object_selection_type_id": 3,
"network_id": 73,
"status": "ok",
"created_at": 1449143207,
"updated_at": 1449143207,
"created_by": 1
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Selection identifier"
},
"parent_id": {
"type": "number",
"description": "Id of parent selection"
},
"name": {
"type": "string",
"description": "Name of the selection"
},
"description": {
"type": "string",
"description": "Description of the selection"
},
"map_object_selection_type_id": {
"type": "number",
"description": "Id of the selection type"
},
"network_id": {
"type": "number",
"description": "Id of the network id"
},
"status": {
"type": "string",
"description": "Status of the selection, options: ok | broken | unknown"
},
"created_at": {
"type": "number",
"description": "Timestamp of selection creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last selection update"
},
"created_by": {
"type": "number",
"description": "User id of the creator of the selection"
}
}
}
}
}Update an existing SelectionPUT/selection/{id}
Update a Selection
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "Bord",
"description": "Dit is een omschrijving",
"parent_id": 3,
"map_object_selection_type_id": 5
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Selection identifier"
},
"name": {
"type": "string",
"description": "Name of the selection"
},
"description": {
"type": "string",
"description": "Description of the selection"
},
"parent_id": {
"type": "number",
"description": "Id of parent selection"
},
"map_object_selection_type_id": {
"type": "number",
"description": "Id of the selection type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing SelectionPATCH/selection/{id}
Patch a Selection
Example URI
- id
integer(required) Example: 1Id of a specific object
Body
{
"data": {
"id": 1,
"name": "Bord",
"description": "Dit is een omschrijving",
"parent_id": 3,
"map_object_selection_type_id": 5
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Selection identifier"
},
"name": {
"type": "string",
"description": "Name of the selection"
},
"description": {
"type": "string",
"description": "Description of the selection"
},
"parent_id": {
"type": "number",
"description": "Id of parent selection"
},
"map_object_selection_type_id": {
"type": "number",
"description": "Id of the selection type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing SelectionDELETE/selection/{id}
Delete a Selection
Example URI
- id
integer(required) Example: 1Id of a specific object
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}Tenants ¶
All calls for tenant management
Tenant list ¶
Get a list of tenants
Get TenantsGET/tenant{?perPage}
Get a list of tenants.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"parent_id": 2,
"name": "Office B.V.",
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new tenantPOST/tenant{?perPage}
Create a new tenant with the required parameters.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
Body
{
"data": {
"name": "Company B.V.",
"parent_id": 3
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tenant"
},
"parent_id": {
"type": "number",
"description": "Id of parent tenant, empty means create a root tenant"
}
},
"required": [
"name"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Tenants ¶
Get a specific tenants
Get TenantGET/tenant/{id}
Get a tenant.
Example URI
- id
integer(required) Example: 1Id of a specific tenant
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"parent_id": 2,
"name": "Office B.V.",
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Tenant identifier"
},
"parent_id": {
"type": "number",
"description": "Id of the parent tenant, null means this is a root tenant"
},
"name": {
"type": "string",
"description": "Name of the tenant"
},
"created_at": {
"type": "number",
"description": "Timestamp of tenant creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last tenant update"
}
}
}
}
}Update an existing tenantPUT/tenant/{id}
Update a tenant
Example URI
- id
integer(required) Example: 1Id of a specific tenant
Body
{
"data": {
"name": "Company B.V."
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tenant"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing tenantPATCH/tenant/{id}
Patch a tenant
Example URI
- id
integer(required) Example: 1Id of a specific tenant
Body
{
"data": {
"name": "Company B.V."
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Name of the tenant"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing tenantDELETE/tenant/{id}
Delete a tenant
Example URI
- id
integer(required) Example: 1Id of a specific tenant
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}Tenant User Relation ¶
All calls for tenant user relation management
TenantUser Relation ¶
Create new tenant user relationPOST/tenant/{tenantId}/user{?sync}
Create a new tenant relation given the required user id’s.
Example URI
- tenantId
integer(required) Example: 1Id of a tenant
- sync
bool(optional) Example: trueDetermines whether data is thrown away and attached or attached
Body
{
"data": [
"1",
"2",
"3"
]
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array with user id's"
}
},
"required": [
"data"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}Delete an existing tenant user relationDELETE/tenant/{tenantId}/user{?sync}
Example URI
- tenantId
integer(required) Example: 1Id of a tenant
- sync
bool(optional) Example: trueDetermines whether data is thrown away and attached or attached
Body
{
"data": [
"1",
"2",
"3"
]
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array with user id's"
}
},
"required": [
"data"
],
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}200Headers
Content-Type: application/jsonUsers ¶
All calls for user management
User list ¶
Get a list of users
Get usersGET/user{?perPage}
Get a list of users.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"primary_tenant_id": 2,
"name": "John Doe",
"email": "john@rapide.software",
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}Create new userPOST/user{?perPage}
Create a new user with the required parameters.
New users
New users are coupled to your current tenant.
Example URI
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
Body
{
"data": {
"primary_tenant_id": 2,
"name": "John Doe",
"email": "john@rapide.software"
},
"auth": {
"accessor_type": "user",
"access_level": 7,
"accessor_id": 1
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"primary_tenant_id": {
"type": "number",
"description": "Id of primary tenant"
},
"name": {
"type": "string",
"description": "Name of the user"
},
"email": {
"type": "string",
"description": "Email address of the user"
}
},
"required": [
"primary_tenant_id",
"name",
"email"
]
},
"auth": {
"type": "object",
"properties": {
"accessor_type": {
"enum": [
"user",
"role",
"tenant"
],
"description": "Type of authorization"
},
"access_level": {
"type": "number",
"description": "Accesslevel bit (read,write,full)"
},
"accessor_id": {
"type": "number",
"description": "Identifier of accessor type"
}
}
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of stored data (can be empty on array inserts)"
}
}
}User ¶
Get a specific users
Get UserGET/user/{id}
Get a user.
Example URI
- id
integer(required) Example: 1Id of a specific user
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"primary_tenant_id": 2,
"name": "John Doe",
"email": "john@rapide.software",
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "User identifier"
},
"primary_tenant_id": {
"type": "number",
"description": "Id of primary tenant"
},
"name": {
"type": "string",
"description": "Name of the user"
},
"email": {
"type": "string",
"description": "Email address of the user"
},
"created_at": {
"type": "number",
"description": "Timestamp of user creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last user update"
}
}
}
}
}Update an existing userPUT/user/{id}
Update a user
Example URI
- id
integer(required) Example: 1Id of a specific user
Body
{
"data": {
"id": 1,
"primary_tenant_id": 2,
"name": "John Doe",
"email": "john@rapide.software"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "User identifier"
},
"primary_tenant_id": {
"type": "number",
"description": "Id of primary tenant"
},
"name": {
"type": "string",
"description": "Name of the user"
},
"email": {
"type": "string",
"description": "Email address of the user"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Patch an existing userPATCH/user/{id}
Patch a user
Example URI
- id
integer(required) Example: 1Id of a specific user
Body
{
"data": {
"id": 1,
"primary_tenant_id": 2,
"name": "John Doe",
"email": "john@rapide.software"
}
}Schema
{
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "User identifier"
},
"primary_tenant_id": {
"type": "number",
"description": "Id of primary tenant"
},
"name": {
"type": "string",
"description": "Name of the user"
},
"email": {
"type": "string",
"description": "Email address of the user"
}
},
"required": [
"id"
]
}
},
"$schema": "http://json-schema.org/draft-04/schema#"
}201Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of updated data (can be empty on array inserts)"
}
}
}Delete an existing userDELETE/user/{id}
Delete a user
Example URI
- id
integer(required) Example: 1Id of a specific user
200Headers
Content-Type: application/jsonBody
{
"success": true,
"id": "1"
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"success": {
"type": "boolean",
"description": "Success true or false"
},
"id": {
"type": "string",
"description": "Id of deleted data (can be empty on array inserts)"
}
}
}UserTenants ¶
All calls for userTenant management
User list ¶
Get a list of root tenants based on a user id
Get tenantsGET/user/{id}/tenant{?perPage}
Get a list of tenants.
Example URI
- id
integer(required) Example: 1Id of a specific user
- perPage
integer(optional) Default: 15 Example: 25The maximum number of users to return
200Headers
Content-Type: application/jsonBody
{
"data": [
{
"id": 1,
"parent_id": 2,
"name": "Office B.V.",
"created_at": 1449143207,
"updated_at": 1449143207
}
],
"meta": {
"pagination": {
"total": 1,
"count": 1,
"per_page": 15,
"current": 1,
"total_pages": 1,
"links": []
}
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "array"
},
"meta": {
"type": "object",
"properties": {
"pagination": {
"type": "object",
"properties": {
"total": {
"type": "number",
"description": "Total number of objects"
},
"count": {
"type": "number",
"description": "Object on this page"
},
"per_page": {
"type": "number",
"description": "Object per page"
},
"current": {
"type": "number",
"description": "Current page number"
},
"total_pages": {
"type": "number",
"description": "Total number of pages"
},
"links": {
"description": "Array of meta links"
}
}
}
}
}
}
}User ¶
Get a specific tenant based on a user
Get TenantGET/user/{user_id}/tenant/{tenant_id}
Get a tenant.
Example URI
- user_id
integer(required) Example: 1Id of a specific user
- tenant_id
integer(required) Example: 1Id of a specific tenant
200Headers
Content-Type: application/jsonBody
{
"data": {
"id": 1,
"parent_id": 2,
"name": "Office B.V.",
"created_at": 1449143207,
"updated_at": 1449143207
}
}Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"data": {
"type": "object",
"properties": {
"id": {
"type": "number",
"description": "Tenant identifier"
},
"parent_id": {
"type": "number",
"description": "Id of the parent tenant, null means this is a root tenant"
},
"name": {
"type": "string",
"description": "Name of the tenant"
},
"created_at": {
"type": "number",
"description": "Timestamp of tenant creation date"
},
"updated_at": {
"type": "number",
"description": "Timestamp of last tenant update"
}
}
}
}
}