/
Plots endpoint

Plots endpoint

Version Date Comment
Current Version (v. 2) Sept 13, 2023 13:54 Angel Javier Larrosa
v. 1 Jun 02, 2022 19:37 Angel Javier Larrosa

IMPORTANT: NEXT TO BE DEPRECATED

Plots list uri:

/api/v2/plots

Method:

GET

Header:

'X-SIMA-APIKEY: {{API-KEY}}', 'X-SIMA-SYSTEM-ID: 8', 'Accept: application/json', 'Content-Type: application/json'

Parameters:

page: (int) {1..} default 1 size: (int) {1..} default 10 only_deleted: (int) {1-0} default 0 deleted_from: (date) {YYYY-mm-dd} farmer_id: (int) establishment_id: (int) plot_id: (int) search: (string) tag_id: (int)

Response example:

{ "items": [ { "id": 457, "name": "Prueba-0", "area": "231.52", "external_code": null, "farmer_id": 38, "farmer_name": "Turco", "establishment_id": 30, "establishment_name": "La Sila", "created_by_id": 7, "created_by_name": "Geronimo", "created_by_lastname": "Oliva", "created_by_fullname": "Geronimo, Oliva", "created_at": "2015-05-11", "tags": "[{\"tag_id\": null, \"tag_name\": null, \"tag_parent_id\": null, \"tag_parent_name\": null}]" } ], "current_page": 1, "next_page": 1, "total_pages": 1, "total_items": 1 }