Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
{
    "id": 118422,
    "farmer_id": 13873,
    "name": "Establecimiento 1",
    "observations": "Una observación",
    "created_at": "2024-08-30T18:03:13-03:00",
    "modified_at": "2024-08-30T18:03:13-03:00",
    "deleted_at": null,
    "active": true
}

Establishment update uri:

Code Block
/api/v3/third_party/establishments/{id}

Method:

Code Block
PATCH

Header:

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

Body:

Code Block
{   
    "farmer_id": 13873,    
    "name": "Establecimiento 1 EDIT",
    "observations": "Una observación EDIT"
}

Response example:

Code Block
{
    "id": 118422,
    "farmer_id": 13873,
    "name": "Establecimiento 1 EDIT",
    "observations": "Una observación EDIT",
    "created_at": "2024-08-30T18:03:13-03:00",
    "modified_at": "2024-08-30T18:03:13-03:00",
    "deleted_at": null,
    "active": true
}

Establishment list uri:

Code Block
/api/v3/third_party/establishments

...