AgencyV1Schema

HealthPublic HealthGrantsInteroperabilityFHIRGovernmentOpen DataFDAHRSAONC

Properties

Name Type Description
agency_id string The internal ID of the agency
agency_name string The name of the agency who created the opportunity
agency_code string The agency who created the opportunity
top_level_agency objectnull
is_test_agency boolean Indicates if the agency is a test agency.
opportunity_statuses array List of opportunity statuses the agency is linked with.
created_at string
updated_at string
View JSON Schema on GitHub

JSON Schema

agencyv1.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://api.simpler.grants.gov/schemas/AgencyV1Schema",
  "title": "AgencyV1Schema",
  "type": "object",
  "properties": {
    "agency_id": {
      "type": "string",
      "format": "uuid",
      "description": "The internal ID of the agency",
      "example": "123e4567-e89b-12d3-a456-426614174000"
    },
    "agency_name": {
      "type": "string",
      "description": "The name of the agency who created the opportunity",
      "example": "Department of Examples"
    },
    "agency_code": {
      "type": "string",
      "description": "The agency who created the opportunity",
      "example": "ABC"
    },
    "top_level_agency": {
      "type": [
        "object",
        "null"
      ],
      "anyOf": [
        {
          "$ref": "#/components/schemas/AgencyV1Schema"
        },
        {
          "type": "null"
        }
      ]
    },
    "is_test_agency": {
      "type": "boolean",
      "description": "Indicates if the agency is a test agency.",
      "example": false
    },
    "opportunity_statuses": {
      "type": "array",
      "description": "List of opportunity statuses the agency is linked with.",
      "example": [
        "posted"
      ],
      "items": {
        "enum": [
          "forecasted",
          "posted",
          "closed",
          "archived"
        ],
        "type": [
          "string"
        ]
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "readOnly": true
    }
  }
}