farmOS · Schema
QuantityCollection
AgricultureFarm ManagementOpen SourceJSON:APIRecordkeepingSelf-HostedDrupal
Properties
| Name | Type | Description |
|---|---|---|
| data | array | |
| links | object | |
| meta | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/farmos/json-schema/farmos-quantity-collection-schema.json",
"title": "QuantityCollection",
"x-generated": "2026-11-09",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/farmos-quantities-api-openapi.yml#/components/schemas/QuantityCollection",
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/$defs/QuantityData"
}
},
"links": {
"type": "object"
},
"meta": {
"type": "object",
"properties": {
"count": {
"type": "integer"
}
}
}
},
"$defs": {
"JsonApiLinks": {
"type": "object",
"properties": {
"self": {
"type": "string",
"format": "uri"
},
"related": {
"type": "string",
"format": "uri"
}
}
},
"JsonApiRelationship": {
"type": "object",
"properties": {
"data": {
"oneOf": [
{
"$ref": "#/$defs/JsonApiRelationshipData"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/JsonApiRelationshipData"
}
},
{
"type": [
"object",
"null"
],
"maxProperties": 0
}
]
},
"links": {
"$ref": "#/$defs/JsonApiLinks"
}
}
},
"JsonApiRelationshipData": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"id": {
"type": "string",
"format": "uuid"
}
}
},
"QuantityAttributes": {
"type": "object",
"properties": {
"measure": {
"type": "string",
"description": "Type of measurement (e.g., weight, volume, count, length, area, time, temperature, pressure, water_content, rating, ratio)",
"enum": [
"weight",
"volume",
"count",
"length",
"area",
"time",
"temperature",
"pressure",
"water_content",
"rating",
"ratio"
]
},
"value": {
"type": "object",
"description": "Numeric value with decimal precision",
"properties": {
"numerator": {
"type": "integer"
},
"denominator": {
"type": "integer"
},
"decimal": {
"type": "string"
}
}
},
"label": {
"type": "string",
"description": "Optional label for the quantity"
},
"inventory_adjustment": {
"type": "string",
"description": "How this quantity affects inventory (increment or decrement)",
"enum": [
"increment",
"decrement",
"reset"
]
}
}
},
"QuantityData": {
"type": "object",
"required": [
"type",
"attributes"
],
"properties": {
"type": {
"type": "string"
},
"id": {
"type": "string",
"format": "uuid",
"readOnly": true
},
"attributes": {
"$ref": "#/$defs/QuantityAttributes"
},
"relationships": {
"$ref": "#/$defs/QuantityRelationships"
},
"links": {
"$ref": "#/$defs/JsonApiLinks"
}
}
},
"QuantityRelationships": {
"type": "object",
"properties": {
"units": {
"$ref": "#/$defs/JsonApiRelationship"
},
"inventory_asset": {
"$ref": "#/$defs/JsonApiRelationship"
}
}
}
}
}
Work with this as data
Every JSON Schema 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 schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema 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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/farmos-quantity-collection"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.