POST api/Maps/postMap
Publicar nuevo mapa de una finca.
Request Information
URI Parameters
None.
Body Parameters
Map| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| file_path | string |
None. |
|
| status | byte |
None. |
|
| id_crop | integer |
None. |
|
| id_farm | integer |
None. |
|
| date_map | date |
None. |
|
| map_name | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"description": "sample string 3",
"file_path": "sample string 4",
"status": 64,
"id_crop": 6,
"id_farm": 7,
"date_map": "2025-12-09T18:48:29.4789444+00:00",
"map_name": "sample string 9"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Response| Name | Description | Type | Additional information |
|---|---|---|---|
| code | integer |
None. |
|
| message | string |
None. |
|
| hasError | boolean |
None. |
|
| exception | Exception |
None. |
|
| model | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"message": "sample string 2",
"hasError": true,
"exception": {
"ClassName": "System.Exception",
"Message": null,
"Data": null,
"InnerException": null,
"HelpURL": "sample string 1",
"StackTraceString": null,
"RemoteStackTraceString": null,
"RemoteStackIndex": 0,
"ExceptionMethod": null,
"HResult": 3,
"Source": "sample string 2",
"WatsonBuckets": null
},
"model": {}
}