app.bivri.support.getPolicy

Get a published policy version and its content. Authentication is not required.

Details · query
Kindquery
Authoritysupport.bivri.app
Indexed
cid bafyreicq6mhktme7f2z46mlyjakylfh5kcmcxd42elcvo2bqblm43a77p4

Checks

Valid
  • missing-primary-description defs.mainThe query has no description.
  • unlimited-string defs.main.parameters.properties.typeNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.parameters.properties.versionNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "PolicyNotActive"
        },
        {
          "name": "PolicyVersionNotFound"
        },
        {
          "name": "InvalidPolicyType"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "policy": {
              "ref": "app.bivri.support.policyDefs#policyView",
              "type": "ref"
            }
          },
          "required": [
            "policy"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "type": {
            "knownValues": [
              "terms",
              "privacy"
            ],
            "type": "string"
          },
          "version": {
            "description": "Version to return. Omit it to get the currently active version.",
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Get a published policy version and its content. Authentication is not required.",
  "id": "app.bivri.support.getPolicy",
  "lexicon": 1
}