iNaturalist · Schema

PostFlag

BiodiversityNatureCitizen ScienceWildlifeObservationsTaxaEcology

Properties

Name Type Description
flag object
flag_explanation string
View JSON Schema on GitHub

JSON Schema

postflag.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "PostFlag",
  "type": "object",
  "properties": {
    "flag": {
      "type": "object",
      "properties": {
        "flaggable_type": {
          "type": "string",
          "enum": [
            "Comment",
            "Identification",
            "Message",
            "Observation",
            "Post",
            "Taxon"
          ]
        },
        "flaggable_id": {
          "type": "integer"
        },
        "flag": {
          "enum": [
            "spam",
            "inappropriate",
            "other"
          ]
        }
      }
    },
    "flag_explanation": {
      "type": "string"
    }
  }
}