API Reference
Urbi.Geo.Push.Api (v1)
Get dynamic asset metadata
Get dynamic asset metadata
Sample request:
GET /dynamic_asset/user_dyn_pRsBtqGECTpwKqDkCzow
Authorizations:
path Parameters
| assetId required | string [ 1 .. 200 ] characters Dynamic asset ID |
header Parameters
| X-Brand required | string Default: 2gis |
Responses
Response Schema: application/json
| id required | string [ 1 .. 200 ] characters ID |
| name required | string [ 1 .. 100 ] characters Name |
| description | string or null [ 1 .. 500 ] characters Description |
| geometry_dimension required | string (GeometryDimension) Enum: "point" "line" "polygon" Members:
|
required | Array of objects (AssetAttributeGroup) Attribute groups |
Array of objects or null (AttributeFilter) Filters | |
Array of objects or null (AttributeContextFilter) Context filters | |
object (DynamicAssetLocalizations) |
Response samples
- 200
- 403
- 404
{- "id": "user_dyn_zq3ZJxPdT0i1vDAvvyWkgQ",
- "name": "Road events",
- "description": "Information on various incidents affecting road traffic. The data includes details about roadworks, accidents, temporary traffic restrictions, weather conditions, traffic jams, and other events that may impact road safety and accessibility.",
- "geometry_dimension": "point",
- "attribute_groups": [
- {
- "name": "Key parameters",
- "attributes": [
- {
- "id": "Name",
- "type": "name",
- "caption": "Название"
}, - {
- "id": "Time",
- "type": "date_time",
- "caption": "Time of event",
- "localizations": {
- "caption": {
- "ru": "Время события"
}
}
}, - {
- "id": "EventType",
- "type": "string",
- "caption": "Event type",
- "localizations": {
- "caption": {
- "ru": "Тип события"
}
}
}, - {
- "id": "Status",
- "type": "string",
- "caption": "Status",
- "localizations": {
- "caption": {
- "ru": "Статус"
}
}
}, - {
- "id": "WeatherEventType",
- "type": "string",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}, - {
- "id": "Duration",
- "type": "number",
- "caption": "Duration",
- "localizations": {
- "caption": {
- "ru": "Продолжительность"
}
}
}
], - "localizations": {
- "name": {
- "ru": "Основные параметры"
}
}
}
], - "filters": [
- {
- "attribute_id": "Time",
- "control_type": "date_time_range",
- "min": 1735664400000,
- "max": 1743970440000
}, - {
- "attribute_id": "EventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Accident",
- "localizations": {
- "caption": {
- "ru": "Авария"
}
}
}, - {
- "value": "2",
- "caption": "Roadwork",
- "localizations": {
- "caption": {
- "ru": "Дорожные работы"
}
}
}, - {
- "value": "3",
- "caption": "Traffic jam",
- "localizations": {
- "caption": {
- "ru": "Затор"
}
}
}, - {
- "value": "4",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}
]
}, - {
- "attribute_id": "Status",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Actual",
- "localizations": {
- "caption": {
- "ru": "Актуально"
}
}
}, - {
- "value": "2",
- "caption": "Completed",
- "localizations": {
- "caption": {
- "ru": "Завершено"
}
}
}
]
}, - {
- "attribute_id": "Duration",
- "control_type": "range",
- "min": 1,
- "max": 15000
}
], - "context_filters": [
- {
- "context_attribute_id": "EventType",
- "context_values": [
- "4"
], - "attribute_id": "WeatherEventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Rain",
- "localizations": {
- "caption": {
- "ru": "Дождь"
}
}
}, - {
- "value": "2",
- "caption": "Snow",
- "localizations": {
- "caption": {
- "ru": "Снег"
}
}
}, - {
- "value": "3",
- "caption": "Glaze ice",
- "localizations": {
- "caption": {
- "ru": "Гололёд"
}
}
}, - {
- "value": "5",
- "caption": "Fog",
- "localizations": {
- "caption": {
- "ru": "Туман"
}
}
}
]
}
], - "localizations": {
- "name": {
- "ru": "Дорожные события"
}, - "description": {
- "ru": "Информация о различных происшествиях, влияющих на дорожное движение. Данные содержат информацию о дорожных работах, авариях, временных ограничениях движения, погодных условиях, заторах и других событиях, способных повлиять на безопасность и проходимость дорог."
}
}
}Create dynamic asset
Create dynamic asset
Sample request:
POST /dynamic_asset
Authorizations:
header Parameters
| X-Brand required | string Default: 2gis |
Request Body schema: application/json
| name required | string [ 1 .. 100 ] characters Asset name |
| description | string or null [ 1 .. 500 ] characters Asset description |
| geometry_dimension required | string (GeometryDimension) Enum: "point" "line" "polygon" Members:
|
Array of objects or null (AssetAttributeGroup) Attribute groups | |
Array of objects or null (AttributeFilter) Filters | |
Array of objects or null (AttributeContextFilter) <= 100 items Context filters | |
| asset_group_id | string or null [ 1 .. 200 ] characters Asset group ID. Determines the library group to place the asset to |
object (CreateDynamicAssetRequestLocalizations) |
Responses
Response Schema: application/json
| task_id | string or null Task ID |
Array of objects or null (UrbiActionError) Errors (if any) | |
| asset_id | string or null Asset ID |
| access_token | string or null Token required to push data to asset |
Request samples
- Payload
{- "geometry_dimension": "point",
- "name": "Road events",
- "description": "Information on various incidents affecting road traffic. The data includes details about roadworks, accidents, temporary traffic restrictions, weather conditions, traffic jams, and other events that may impact road safety and accessibility.",
- "attribute_groups": [
- {
- "name": "Key parameters",
- "attributes": [
- {
- "id": "Name",
- "type": "name",
- "caption": "Название"
}, - {
- "id": "Time",
- "type": "date_time",
- "caption": "Time of event",
- "localizations": {
- "caption": {
- "ru": "Время события"
}
}
}, - {
- "id": "EventType",
- "type": "string",
- "caption": "Event type",
- "localizations": {
- "caption": {
- "ru": "Тип события"
}
}
}, - {
- "id": "Status",
- "type": "string",
- "caption": "Status",
- "localizations": {
- "caption": {
- "ru": "Статус"
}
}
}, - {
- "id": "WeatherEventType",
- "type": "string",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}, - {
- "id": "Duration",
- "type": "number",
- "caption": "Duration",
- "localizations": {
- "caption": {
- "ru": "Продолжительность"
}
}
}
], - "localizations": {
- "name": {
- "ru": "Основные параметры"
}
}
}
], - "filters": [
- {
- "attribute_id": "Time",
- "control_type": "date_time_range",
- "min": 1735664400000,
- "max": 1743970440000
}, - {
- "attribute_id": "EventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Accident",
- "localizations": {
- "caption": {
- "ru": "Авария"
}
}
}, - {
- "value": "2",
- "caption": "Roadwork",
- "localizations": {
- "caption": {
- "ru": "Дорожные работы"
}
}
}, - {
- "value": "3",
- "caption": "Traffic jam",
- "localizations": {
- "caption": {
- "ru": "Затор"
}
}
}, - {
- "value": "4",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}
]
}, - {
- "attribute_id": "Status",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Actual",
- "localizations": {
- "caption": {
- "ru": "Актуально"
}
}
}, - {
- "value": "2",
- "caption": "Completed",
- "localizations": {
- "caption": {
- "ru": "Завершено"
}
}
}
]
}, - {
- "attribute_id": "Duration",
- "control_type": "range",
- "min": 1,
- "max": 15000
}
], - "context_filters": [
- {
- "context_attribute_id": "EventType",
- "context_values": [
- "4"
], - "attribute_id": "WeatherEventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Rain",
- "localizations": {
- "caption": {
- "ru": "Дождь"
}
}
}, - {
- "value": "2",
- "caption": "Snow",
- "localizations": {
- "caption": {
- "ru": "Снег"
}
}
}, - {
- "value": "3",
- "caption": "Glaze ice",
- "localizations": {
- "caption": {
- "ru": "Гололёд"
}
}
}, - {
- "value": "5",
- "caption": "Fog",
- "localizations": {
- "caption": {
- "ru": "Туман"
}
}
}
]
}
], - "localizations": {
- "name": {
- "ru": "Дорожные события"
}, - "description": {
- "ru": "Информация о различных происшествиях, влияющих на дорожное движение. Данные содержат информацию о дорожных работах, авариях, временных ограничениях движения, погодных условиях, заторах и других событиях, способных повлиять на безопасность и проходимость дорог."
}
}
}Response samples
- 201
- 400
- 403
{- "asset_id": "user_dyn_zq3ZJxPdT0i1vDAvvyWkgQ",
- "access_token": "VT8UivWdluDSWdXA",
- "task_id": "hBAbF8iZVUKoXXUjJBgKpA"
}Update dynamic asset metadata
Update dynamic asset metadata
Sample request:
PUT /dynamic_asset
Authorizations:
header Parameters
| X-Brand required | string Default: 2gis |
Request Body schema: application/json
| name required | string [ 1 .. 100 ] characters Asset name |
| description | string or null [ 1 .. 500 ] characters Asset description |
Array of objects or null (AssetAttributeGroup) Attribute groups | |
Array of objects or null (AttributeFilter) Filters | |
Array of objects or null (AttributeContextFilter) <= 100 items Context filters | |
object (CreateDynamicAssetRequestLocalizations) | |
| id required | string [ 1 .. 200 ] characters Asset ID |
Responses
Response Schema: application/json
| task_id | string or null Task ID |
Array of objects or null (UrbiActionError) Errors (if any) | |
| asset_id | string or null Asset ID |
| access_token | string or null Token required to push data to asset |
Request samples
- Payload
{- "id": "user_dyn_zq3ZJxPdT0i1vDAvvyWkgQ",
- "name": "Road events",
- "description": "Information on various incidents affecting road traffic. The data includes details about roadworks, accidents, temporary traffic restrictions, weather conditions, traffic jams, and other events that may impact road safety and accessibility.",
- "attribute_groups": [
- {
- "name": "Key parameters",
- "attributes": [
- {
- "id": "Name",
- "type": "name",
- "caption": "Название"
}, - {
- "id": "Time",
- "type": "date_time",
- "caption": "Time of event",
- "localizations": {
- "caption": {
- "ru": "Время события"
}
}
}, - {
- "id": "EventType",
- "type": "string",
- "caption": "Event type",
- "localizations": {
- "caption": {
- "ru": "Тип события"
}
}
}, - {
- "id": "Status",
- "type": "string",
- "caption": "Status",
- "localizations": {
- "caption": {
- "ru": "Статус"
}
}
}, - {
- "id": "WeatherEventType",
- "type": "string",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}, - {
- "id": "Duration",
- "type": "number",
- "caption": "Duration",
- "localizations": {
- "caption": {
- "ru": "Продолжительность"
}
}
}
], - "localizations": {
- "name": {
- "ru": "Основные параметры"
}
}
}
], - "filters": [
- {
- "attribute_id": "Time",
- "control_type": "date_time_range",
- "min": 1735664400000,
- "max": 1743970440000
}, - {
- "attribute_id": "EventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Accident",
- "localizations": {
- "caption": {
- "ru": "Авария"
}
}
}, - {
- "value": "2",
- "caption": "Roadwork",
- "localizations": {
- "caption": {
- "ru": "Дорожные работы"
}
}
}, - {
- "value": "3",
- "caption": "Traffic jam",
- "localizations": {
- "caption": {
- "ru": "Затор"
}
}
}, - {
- "value": "4",
- "caption": "Weather event",
- "localizations": {
- "caption": {
- "ru": "Погодное явление"
}
}
}
]
}, - {
- "attribute_id": "Status",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Actual",
- "localizations": {
- "caption": {
- "ru": "Актуально"
}
}
}, - {
- "value": "2",
- "caption": "Completed",
- "localizations": {
- "caption": {
- "ru": "Завершено"
}
}
}
]
}, - {
- "attribute_id": "Duration",
- "control_type": "range",
- "min": 1,
- "max": 15000
}
], - "context_filters": [
- {
- "context_attribute_id": "EventType",
- "context_values": [
- "4"
], - "attribute_id": "WeatherEventType",
- "control_type": "check_box_list",
- "items": [
- {
- "value": "1",
- "caption": "Rain",
- "localizations": {
- "caption": {
- "ru": "Дождь"
}
}
}, - {
- "value": "2",
- "caption": "Snow",
- "localizations": {
- "caption": {
- "ru": "Снег"
}
}
}, - {
- "value": "3",
- "caption": "Glaze ice",
- "localizations": {
- "caption": {
- "ru": "Гололёд"
}
}
}, - {
- "value": "5",
- "caption": "Fog",
- "localizations": {
- "caption": {
- "ru": "Туман"
}
}
}
]
}
], - "localizations": {
- "name": {
- "ru": "Дорожные события"
}, - "description": {
- "ru": "Информация о различных происшествиях, влияющих на дорожное движение. Данные содержат информацию о дорожных работах, авариях, временных ограничениях движения, погодных условиях, заторах и других событиях, способных повлиять на безопасность и проходимость дорог."
}
}
}Response samples
- 200
- 400
- 403
- 404
{- "asset_id": "user_dyn_zq3ZJxPdT0i1vDAvvyWkgQ",
- "access_token": "VT8UivWdluDSWdXA",
- "task_id": "hBAbF8iZVUKoXXUjJBgKpA"
}Update dynamic asset filter
Update dynamic asset metadata
Sample request:
PUT /dynamic_asset/assetId/filter
Authorizations:
path Parameters
| id required | string [ 1 .. 200 ] characters |
header Parameters
| X-Brand required | string Default: 2gis |
Request Body schema: application/json
| attribute_id required | string [ 1 .. 200 ] characters Corresponding attribute ID |
| control_type required | string (FilterControlType) Enum: "text_box" "check_box" "select_box" "check_box_list" "range" "date_range" "date_time_range" Control type used to render filter in UI Members:
|
Array of objects or null (AttributeFilterItem) <= 500 items Filter items | |
| min | number or null <double> Minimal value |
| max | number or null <double> Maximum value |
Responses
Response Schema: application/json
| task_id | string or null Task ID |
Array of objects or null (UrbiActionError) Errors (if any) | |
| asset_id | string or null Asset ID |
| access_token | string or null Token required to push data to asset |
Request samples
- Payload
{- "attribute_id": "Time",
- "control_type": "date_time_range",
- "min": 1761988910583,
- "max": 1793524910583
}Response samples
- 200
- 400
- 403
- 404
{- "asset_id": "user_dyn_zq3ZJxPdT0i1vDAvvyWkgQ",
- "access_token": "VT8UivWdluDSWdXA",
- "task_id": "hBAbF8iZVUKoXXUjJBgKpA"
}Push data to dynamic asset
Push data to dynamic asset
Sample request:
PUT /dynamic_asset/user_dyn_pRsBtqGECTpwKqDkCzow/data
Authorizations:
path Parameters
| assetId required | string [ 1 .. 200 ] characters Dynamic asset ID |
header Parameters
| X-Brand required | string Default: 2gis |
Request Body schema: application/json
Payload in GeoJSON format
| type required | string (GeoJsonType) Enum: "Geometry" "Feature" "FeatureCollection" GeoJson data type Members:
|
Array of objects or null (GeoJsonFeature) [ 1 .. 100 ] items |
Responses
Response Schema: application/json
object or null Errors grouped by object ID | |||
| |||
Request samples
- Payload
{- "type": "FeatureCollection",
- "features": [
- {
- "id": "1",
- "type": "Feature",
- "geometry": {
- "type": "Point",
- "coordinates": [
- 37.567749,
- 55.626445
]
}, - "properties": {
- "Name": "Some Event",
- "Time": "2025-11-01T09:21:50.5893855+00:00",
- "EventType": "Accident",
- "Status": "Actual",
- "Duration": 15
}, - "localizations": {
- "Name": {
- "ru": "Какое-то событие"
}
}
}
]
}Response samples
- 200
- 400
- 403
- 404
{- "errors_by_id": {
- "1": [
- "Invalid geometry"
]
}
}Delete selected objects from dynamic asset
Delete selected objects from dynamic asset
Sample request:
DELETE /dynamic_asset/user_dyn_pRsBtqGECTpwKqDkCzow/data
Authorizations:
path Parameters
| assetId required | string [ 1 .. 200 ] characters Dynamic asset ID |
header Parameters
| X-Brand required | string Default: 2gis |
Request Body schema: application/jsonrequired
Objects to delete
Responses
Response Schema: application/json
Request samples
- Payload
[- "1",
- "2",
- "3"
]Response samples
- 200
- 400
- 403
- 404
"string"Delete all objects from dynamic asset
Delete all objects from dynamic asset
Sample request:
DELETE /dynamic_asset/user_dyn_pRsBtqGECTpwKqDkCzow/data/all
Authorizations:
path Parameters
| assetId required | string [ 1 .. 200 ] characters Dynamic asset ID |
header Parameters
| X-Brand required | string Default: 2gis |
Responses
Response Schema: application/json
Response samples
- 200
- 400
- 403
- 404
"string"