Get a preset with every version's rules

Get a preset with every version's rules

GET/v1/presets/{preset}

Not available yet Pod's API does not answer this call yet.

A key with the permissions:read scope.

Request

curl "https://api.pod.mapier.ai/v1/presets/example?project=example" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
presetpathstringYes
projectquerystringYesThe project the call is about. Every route is scoped to one.
Pod-OrganisationheaderstringNoThe organization, for a person who belongs to several. An API key's organization is its own, and a different one here is forbidden.

Answer

200. The preset.

200
{
  "name": "example",
  "latest_version": 1,
  "versions": [
    {
      "version": 1,
      "published": "example",
      "summary": "example",
      "rule_count": 0,
      "newly_allows": ["example"],
      "no_longer_allows": ["example"],
      "rules": "example"
    }
  ]
}
FieldTypeAlwaysWhat it is
namestringYes
latest_versionintegerYesAt least 1.
versionsPresetVersion[]YesOldest first.

Errors

The refusals this call is known for: unauthorized, forbidden, not_found. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.