Docs/Api/Permit Schema

Permit Schema

Prerequisites
  • Basic API knowledge
User Flows Covered
Understanding API data structures

Permit Schema

Understand the structure of permit data in the API.

Permit Object

{
  "id": "uuid",
  "permit_number": "HWP-001",
  "permit_type_id": "uuid",
  "project_id": "uuid",
  "status": "approved",
  "created_by": "uuid",
  "created_at": "2024-01-15T10:00:00Z",
  "updated_at": "2024-01-15T12:30:00Z",
  "responses": {
    "question_id_1": "value",
    "question_id_2": ["option1", "option2"]
  }
}

Field Descriptions

FieldTypeDescription
idUUIDUnique identifier
permit_numberStringHuman-readable permit number
permit_type_idUUIDReference to permit type
project_idUUIDReference to project
statusStringCurrent workflow status
responsesObjectQuestion responses keyed by ID

Response Types

Different question types have different response formats:

  • Text: String value
  • Number: Numeric value
  • Date: ISO 8601 date string
  • Dropdown: Selected option ID
  • Multi-select: Array of option IDs
  • File: Array of file URLs
  • Signature: Base64 image or URL