Create feedback
Purpose
This call is used to create a feedback. Like all other methods of this API, this method requires a TomTom API key. This information will be used to identify the creator of the feedback.
How to request data
HTTP method: POST
- Constants and parameters enclosed in curly brackets { } must be replaced with their values.
- Please see the following Request parameters section with the required and optional parameters tables for these values. The generic URL format is as follows.
URL request format
https://{baseURL}/maps/orbis/feedback?key={API-key}&apiVersion={version}Request parameters
The following table describes the parameters that can be used in a request.
- Required parameters must be used or the call will fail.
- Optional parameters may be used.
- The order of request parameters is not important.
Parameter | Required | Type | Description |
|---|---|---|---|
| Yes | string | Center location for the feedback in well-known text (WKT) format. Coordinates must be in longitude-latitude (lon lat) order, e.g. POINT(-3.693252 40.399412). |
| Yes | string | The schema name used in the |
| Yes | string | Feedback body, a base64 JSON-encoded string following the schema of type ‘kind’ |
| Yes | integer | Severity of the feedback. Must be greater than 0. A lower value means higher severity |
| No | list of strings | Labels attached to the feedback. A maximum of 20 labels is allowed. |
| No | string | Reference ID of the feedback provided by the customer. The value is unique in the context of the customer. |
Example request
{ "geometry": "POINT(19.4560 51.7592)", "kind": "Example_Kind", "data": "ewogICJ0aXRsZSI6ICJQcm9ibGVtIG9uIE1hcCIsCiAgImNyZWF0ZWREYXRlIjogIjIwMjUtMDYtMDYiLAogICJ1c2VyQ29tbWVudCI6ICJUaGlzIHJvYWQgc2hvdWxkIGJlIGRlbGV0ZWQuIiwKICAibG9jYXRpb24iOiAiUE9JTlQoMTkuNDU2MCA1MS43NTkyKSIsCn0=", "severity": 1, "labels": [ "Label1" ], "referenceId": "123001"}Response data
Response codes
HTTP Code | Message | Description | Sample response |
|---|---|---|---|
| Created | Feedback created successfully | |
| Bad Request | Invalid request parameters | |
| Forbidden | Access denied | |
| Conflict | Conflicting id | |
| Internal Server Error | Internal server error | |