GetBranches
List branches and revisions available to the organization
Returns all processing branches and their revisions available to the organization tied to the API key.
Every organization has access to the default PS (Pollen Sense) branch. Organizations with custom
processing configurations will also see their own branches listed.
Each branch contains an array of revisions ordered by revision number (newest first). The EffectiveAt
timestamp indicates when each revision became active. A null EffectiveAt indicates a proposed (unsealed)
revision. The IsProposed property is true for proposed revisions.
Use the returned Code and revision Number values as the branchCode and revisionNumber parameters
when calling v2/sites/{siteId}/metrics or v2/sites/{siteId}/metrics-export.
Responses
- application/json
- application/json
Request Example for get/v2/branches
curl https://sensors.pollensense.com/api/v2/branches \
--header 'x-ps-key: YOUR_SECRET_TOKEN'
[
{
"Code": "string",
"Description": "string",
"Revisions": [
{
"Number": 1,
"EffectiveAt": null,
"IsProposed": true
}
]
}
]