farmOS · Example Payload

Farmos Create Harvest Log Example

Example request body to create a harvest log recording a tomato harvest from a plant asset.

AgricultureFarm ManagementOpen-SourceJSON:APIRecordkeepingSelf-HostedDrupal

Farmos Create Harvest Log Example is an example object payload from farmOS, with 4 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

titledescriptionrequestresponse

Example Payload

Raw ↑
{
  "title": "Create a Harvest Log",
  "description": "Example request body to create a harvest log recording a tomato harvest from a plant asset.",
  "request": {
    "method": "POST",
    "url": "/api/log/harvest",
    "headers": {
      "Content-Type": "application/vnd.api+json",
      "Authorization": "Bearer {access_token}"
    },
    "body": {
      "data": {
        "type": "log--harvest",
        "attributes": {
          "name": "Tomato harvest - North field",
          "timestamp": 1720000000,
          "status": "done",
          "notes": {
            "value": "Harvested ripe tomatoes from the north greenhouse beds. Quality excellent.",
            "format": "default"
          },
          "is_movement": false
        },
        "relationships": {
          "asset": {
            "data": [
              {
                "type": "asset--plant",
                "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
              }
            ]
          },
          "location": {
            "data": [
              {
                "type": "asset--land",
                "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
              }
            ]
          },
          "quantity": {
            "data": [
              {
                "type": "quantity--standard",
                "id": "c3d4e5f6-a7b8-9012-cdef-123456789012"
              }
            ]
          },
          "category": {
            "data": [
              {
                "type": "taxonomy_term--log_category",
                "id": "d4e5f6a7-b8c9-0123-defa-234567890123"
              }
            ]
          }
        }
      }
    }
  },
  "response": {
    "status": 201,
    "headers": {
      "Content-Type": "application/vnd.api+json"
    },
    "body": {
      "data": {
        "type": "log--harvest",
        "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
        "attributes": {
          "drupal_internal__id": 42,
          "name": "Tomato harvest - North field",
          "timestamp": 1720000000,
          "status": "done",
          "notes": {
            "value": "Harvested ripe tomatoes from the north greenhouse beds. Quality excellent.",
            "format": "default"
          },
          "is_movement": false,
          "geometry": null,
          "created": 1720001234,
          "changed": 1720001234
        },
        "relationships": {
          "asset": {
            "data": [
              {
                "type": "asset--plant",
                "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
              }
            ]
          },
          "location": {
            "data": [
              {
                "type": "asset--land",
                "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901"
              }
            ]
          },
          "quantity": {
            "data": [
              {
                "type": "quantity--standard",
                "id": "c3d4e5f6-a7b8-9012-cdef-123456789012"
              }
            ]
          },
          "category": {
            "data": [
              {
                "type": "taxonomy_term--log_category",
                "id": "d4e5f6a7-b8c9-0123-defa-234567890123"
              }
            ]
          },
          "owner": {
            "data": []
          },
          "image": {
            "data": []
          },
          "file": {
            "data": []
          }
        },
        "links": {
          "self": "/api/log/harvest/e5f6a7b8-c9d0-1234-efab-345678901234"
        }
      }
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/farmos-create-harvest-log-example"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.