{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fieldwirelabs/json-schema/fieldwirelabs-submittal-schema.json",
  "title": "submittal",
  "description": "Entity that represents a Submittal document",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fieldwirelabs-fieldwire-regional-api-openapi.yml#/components/schemas/submittal",
  "type": "object",
  "required": [
    "id",
    "name",
    "status",
    "created_at",
    "updated_at",
    "project_id",
    "creator_user_id",
    "last_editor_user_id"
  ],
  "nullable": false,
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "nullable": false,
      "description": "ID of the entity"
    },
    "name": {
      "type": "string",
      "nullable": false,
      "description": "Name of the Submittal. Must be unique between Submittals under the same parent."
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the Submittal"
    },
    "number": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The number associated with the Submittal"
    },
    "code": {
      "type": [
        "string",
        "null"
      ],
      "description": "The code associated with the Submittal"
    },
    "consolidated_current_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "The consolidated current number of the Submittal"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "requested",
        "pending_review",
        "pending_approval",
        "pending_close",
        "closed",
        "void",
        null
      ],
      "nullable": false,
      "description": "The status of the Submittal as an enum, e.g. draft, requested"
    },
    "revision_number": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The revision number associated with the Submittal"
    },
    "submit_by_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The date the Submittal should be submitted by"
    },
    "requested_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server requested the entity"
    },
    "submission_received_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "deprecated": true,
      "description": "Time when the server submitted the entity"
    },
    "response_received_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "deprecated": true,
      "description": "Time at which the submittal was approved"
    },
    "submitted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server submitted the entity"
    },
    "responded_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time at which the submittal was approved"
    },
    "assigned_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server assigned the entity"
    },
    "review_by_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The date the Submittal should be reviewed by"
    },
    "approve_by_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The date the Submittal should be approved by"
    },
    "reviewed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the entity was reviewed"
    },
    "approved_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server approved the entity"
    },
    "closed_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server closed the entity"
    },
    "voided_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the server voided the entity"
    },
    "sent_for_approval_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time when the submittal was sent for approval"
    },
    "response_time": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Difference between sent_for_approval_at and responded_at in days"
    },
    "response": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The last primary approval response name, e.g. Approved, Rejected"
    },
    "device_created_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the device created the entity"
    },
    "device_updated_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the device last updated the entity"
    },
    "deleted_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "Time the server deleted the entity"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the server created the entity"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "nullable": false,
      "description": "Time when the server last updated the entity"
    },
    "spec_section_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "ID of the spec section the Submittal is associated with"
    },
    "spec_section_project_resource_link": {
      "oneOf": [
        {
          "$ref": "#/$defs/null_object"
        },
        {
          "$ref": "#/$defs/project_resource_link"
        }
      ]
    },
    "submittal_type_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "ID of the type the Submittal is associated with"
    },
    "submittal_type_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Type name the Submittal is associated with"
    },
    "spec_section": {
      "oneOf": [
        {
          "$ref": "#/$defs/null_object"
        },
        {
          "$ref": "#/$defs/spec_section"
        }
      ]
    },
    "submittal_type": {
      "type": "object",
      "description": "Entity that represents a Submittal Type",
      "nullable": false,
      "required": [
        "id",
        "name",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the entity"
        },
        "name": {
          "type": "string",
          "nullable": false,
          "description": "Name of the entity"
        },
        "translation_key": {
          "type": [
            "string",
            "null"
          ],
          "description": "Translation key for the entity name"
        },
        "aliases": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          },
          "description": "Alias names for entity"
        },
        "deleted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time the server deleted the entity"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server created the entity"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server last updated the entity"
        },
        "deactivated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time when the server last deactivated the entity"
        }
      },
      "additionalProperties": false
    },
    "submittal_actions": {
      "type": [
        "array",
        "null"
      ],
      "description": "Array containing submittal actions",
      "items": {
        "type": "object",
        "description": "Entity that represents a Submittal Action",
        "nullable": false,
        "required": [
          "id",
          "outcome",
          "revision_number",
          "submittal_id",
          "project_id"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project this entity belongs to"
          },
          "assigned_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp of when entity was assigned"
          },
          "responded_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Timestamp of when entity was responded to"
          },
          "content": {
            "type": [
              "object",
              "null"
            ],
            "description": "JSON object that stores the content of the entity"
          },
          "message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Message associated with the entity"
          },
          "outcome": {
            "type": "string",
            "enum": [
              "draft",
              "requested",
              "pending_review",
              "pending_approval",
              "pending_close",
              "closed",
              "void",
              null
            ],
            "nullable": false,
            "description": "The outcome of the entity as an enum, e.g. draft, requested"
          },
          "revision_number": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "The revision number associated with the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time the server deleted the entity"
          },
          "submittal_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the submittal associated with the entity"
          },
          "assignee_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The id of the user assigned to the entity"
          },
          "submittal_assignee": {
            "$ref": "#/$defs/submittal_assignee"
          },
          "next_assignee_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The id of the user getting assigned to the next entity"
          },
          "next_submittal_assignee": {
            "$ref": "#/$defs/submittal_assignee"
          },
          "responding_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The id of the user who responded to the entity"
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          },
          "last_editor_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "ID of the user who most recently edited this entity"
          },
          "creator_user_id": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "ID of the user who created this entity"
          },
          "submittal_attachments": {
            "type": [
              "array",
              "null"
            ],
            "description": "Array containing submittal attachments",
            "items": {
              "type": "object",
              "description": "Entity that encapsulates an attachment on a Submittal.",
              "required": [
                "id",
                "kind",
                "submittal_id",
                "project_id",
                "last_editor_user_id",
                "creator_user_id",
                "created_at",
                "updated_at",
                "resolved_conflict"
              ],
              "nullable": false,
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": false,
                  "description": "ID of the Submittal Attachment object."
                },
                "name": {
                  "type": "string",
                  "nullable": false,
                  "description": "Name of the file."
                },
                "file_url": {
                  "type": "string",
                  "nullable": false,
                  "description": "URL of the potentially processed file"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "file"
                  ],
                  "nullable": false,
                  "description": "Kind of the attachment. Currently it only supports file type."
                },
                "submittal_id": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": false,
                  "description": "The Submittal on which the attachment will exist."
                },
                "submittal_action_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "deprecated": true,
                  "description": "The Submittal Action on which the attachment will exist."
                },
                "project_id": {
                  "type": "string",
                  "format": "uuid",
                  "nullable": false,
                  "description": "ID of the project this entity belongs to"
                },
                "last_editor_user_id": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "ID of the user who last modified this entity"
                },
                "creator_user_id": {
                  "type": "integer",
                  "format": "int32",
                  "nullable": false,
                  "description": "ID of the user who created this entity"
                },
                "created_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the server created the entity"
                },
                "updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the server last updated the entity"
                },
                "resolved_conflict": {
                  "type": [
                    "boolean",
                    "null"
                  ],
                  "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
                },
                "file_size": {
                  "type": [
                    "integer",
                    "null"
                  ],
                  "format": "int32",
                  "description": "Size of file"
                },
                "original_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "URL of the file originally uploaded by the user"
                },
                "flattened_file_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "URL of the file that has the markups flattened"
                },
                "thumb_url": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Thumb URL of the file"
                },
                "attachment_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The ID of the existing attachment."
                },
                "submittal_response_id": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "uuid",
                  "description": "The ID of the existing response."
                },
                "deleted_at": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date-time",
                  "description": "Time the server deleted the entity"
                },
                "device_created_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the device created the entity"
                },
                "device_updated_at": {
                  "type": "string",
                  "format": "date-time",
                  "nullable": false,
                  "description": "Time when the device last updated the entity"
                }
              },
              "additionalProperties": false
            }
          }
        },
        "additionalProperties": false
      }
    },
    "submittal_watchers": {
      "type": [
        "array",
        "null"
      ],
      "description": "Array containing submittal watchers",
      "items": {
        "type": "object",
        "description": "Entity that relates an Submittal to a User.",
        "required": [
          "id",
          "creator_user_id",
          "project_id",
          "submittal_id",
          "user_id",
          "created_at",
          "resolved_conflict",
          "updated_at"
        ],
        "nullable": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the entity"
          },
          "creator_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who created this entity"
          },
          "last_editor_user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the user who last interacted modified this entity"
          },
          "project_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the project this entity belongs to"
          },
          "user_id": {
            "type": "integer",
            "format": "int32",
            "nullable": false,
            "description": "ID of the User being related."
          },
          "submittal_id": {
            "type": "string",
            "format": "uuid",
            "nullable": false,
            "description": "ID of the Submittal which is being related."
          },
          "user_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Full name of the user who is watching this Submittal."
          },
          "user_email": {
            "type": [
              "string",
              "null"
            ],
            "description": "Email of the user who is watching this Submittal."
          },
          "user_pm_group_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "PM Group ID of the user who is watching this Submittal."
          },
          "user_pm_group_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the PM Group of the user who is watching this Submittal."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server created the entity"
          },
          "device_created_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device created the entity"
          },
          "resolved_conflict": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
          },
          "device_updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the device last updated the entity"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "nullable": false,
            "description": "Time when the server last updated the entity"
          },
          "deleted_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Time the server deleted the entity"
          }
        },
        "additionalProperties": false
      }
    },
    "reviewers": {
      "type": [
        "array",
        "null"
      ],
      "description": "Array containing meta data about reviewers",
      "items": {
        "type": "object",
        "description": "Reviewer meta data object",
        "required": [
          "name",
          "company",
          "responded",
          "primary_approver"
        ],
        "nullable": false,
        "properties": {
          "name": {
            "type": "string",
            "nullable": false,
            "description": "Reviewers name"
          },
          "company": {
            "type": [
              "string",
              "null"
            ],
            "description": "Reviewers company"
          },
          "responded": {
            "type": "boolean",
            "nullable": false,
            "description": "Whether or not the reviewer has responded"
          },
          "primary_approver": {
            "type": "boolean",
            "nullable": false,
            "description": "Whether or not the reviewer is the primary approver"
          }
        },
        "additionalProperties": false
      }
    },
    "project_id": {
      "type": "string",
      "format": "uuid",
      "nullable": false,
      "description": "ID of the project this entity belongs to"
    },
    "creator_user_id": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "ID of the user who created this entity"
    },
    "creator_pm_group_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The id of the PmGroup that the Submittal creator was in when the Submittal was created"
    },
    "requesting_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The id of the user who requested the Submittal"
    },
    "current_submittal_revision_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The id of the current revision"
    },
    "submitting_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The id of the user who submitted the Submittal"
    },
    "submitting_pm_group_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "The id of the PmGroup that the Submittal submitting user was in when the Submittal was requested"
    },
    "assignee_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The id of the user assigned to the Submittal"
    },
    "submittal_assignee": {
      "$ref": "#/$defs/submittal_assignee"
    },
    "assignees": {
      "type": "array",
      "nullable": false,
      "description": "Array of assignees",
      "items": {
        "$ref": "#/$defs/submittal_assignee"
      }
    },
    "approving_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The id of the user who approved the Submittal"
    },
    "closing_user_id": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32",
      "description": "The id of the user who closed the Submittal"
    },
    "last_editor_user_id": {
      "type": "integer",
      "format": "int32",
      "nullable": false,
      "description": "ID of the user who most recently edited this entity"
    },
    "creator_submittal_user": {
      "oneOf": [
        {
          "$ref": "#/$defs/null_object"
        },
        {
          "$ref": "#/$defs/submittal_user"
        }
      ]
    },
    "closing_submittal_user": {
      "oneOf": [
        {
          "$ref": "#/$defs/null_object"
        },
        {
          "$ref": "#/$defs/submittal_user"
        }
      ]
    },
    "voiding_submittal_user": {
      "oneOf": [
        {
          "$ref": "#/$defs/null_object"
        },
        {
          "$ref": "#/$defs/submittal_user"
        }
      ]
    },
    "submittal_code": {
      "type": "string",
      "nullable": false,
      "description": "The Submittal code"
    },
    "resolved_conflict": {
      "type": "boolean",
      "nullable": false,
      "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
    },
    "workflow": {
      "type": "string",
      "nullable": false,
      "description": "Determines which submittal transitions are available"
    },
    "is_reminder_enabled": {
      "type": "boolean",
      "nullable": false,
      "description": "Boolean flag indicating if email reminders for submittals are enabled"
    },
    "lead_time": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 0,
      "description": "The number of weeks it takes to get the submittal material on-site after it is approved and closed (includes fabrication and shipping time)"
    },
    "on_site_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The first day in the construction schedule that the submittal's material is needed"
    },
    "suggested_submit_by_date": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The 'submit by' date calculated as optimal for ensuring the submittal will meet the on-site deadline (draft submittals only)"
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional message to add onto body"
    },
    "reference_number": {
      "type": [
        "string",
        "null"
      ],
      "description": "Reference number of submittal"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "null_object": {
      "type": [
        "string",
        "null"
      ],
      "description": "To allow null values"
    },
    "project_resource_link": {
      "type": "object",
      "description": "Entity that represents a Project Resource Link",
      "nullable": false,
      "required": [
        "id",
        "project_id",
        "entity_id_1",
        "entity_id_2",
        "entity_type_1",
        "entity_type_2"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the entity"
        },
        "project_id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the project this entity belongs to"
        },
        "entity_id_1": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the first entity to link"
        },
        "entity_id_2": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the second entity to link"
        },
        "target_entity_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "ID of the target entity"
        },
        "entity_type_1": {
          "type": "string",
          "enum": [
            "Rfi",
            "Sheet",
            "Task",
            "SpecSection",
            "Submittal",
            "ChangeOrder",
            "Form"
          ],
          "nullable": false,
          "description": "The type of the first entity"
        },
        "entity_type_2": {
          "type": "string",
          "enum": [
            "Rfi",
            "Sheet",
            "Task",
            "SpecSection",
            "Submittal",
            "ChangeOrder",
            "Form"
          ],
          "nullable": false,
          "description": "The type of the second entity"
        },
        "data": {
          "type": [
            "object",
            "null"
          ],
          "description": "JSON object that stores optional metadata of the entity"
        },
        "device_created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time when the device created the entity"
        },
        "device_updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time when the device last updated the entity"
        },
        "deleted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time the server deleted the entity"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server created the entity"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server last updated the entity"
        },
        "last_editor_user_id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the user who most recently edited this entity"
        },
        "creator_user_id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the user who created this entity"
        },
        "resolved_conflict": {
          "type": "boolean",
          "nullable": false,
          "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
        }
      },
      "additionalProperties": false
    },
    "spec_section": {
      "type": "object",
      "description": "An entity that represents a spec section within a spec book. Can have multiple versions.",
      "required": [
        "id",
        "section_number",
        "project_id",
        "current_version_id",
        "current_version_title",
        "current_version_description",
        "current_version_file_url",
        "current_version_thumb_url",
        "conflict",
        "processing",
        "creator_user_id",
        "last_editor_user_id",
        "created_at",
        "updated_at",
        "deleted_at",
        "device_created_at",
        "device_updated_at"
      ],
      "nullable": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the spec_section"
        },
        "section_number": {
          "type": "string",
          "nullable": false,
          "description": "The number that the spec_section corresponds to within a spec book"
        },
        "project_id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the project the spec_section belongs to"
        },
        "current_version_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "ID of the current spec_section_version of the spec_section"
        },
        "current_version_title": {
          "type": "string",
          "nullable": false,
          "description": "Title of the current spec_section_version of the spec_section"
        },
        "current_version_description": {
          "type": "string",
          "nullable": false,
          "description": "Description of the spec_section_version of the spec_section"
        },
        "current_version_file_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL for the PDF associated with the current spec_section_version of the spec_section"
        },
        "current_version_thumb_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "The URL for the thumbnail associated with the current spec_section_version of the spec_section"
        },
        "conflict": {
          "type": "boolean",
          "nullable": false,
          "description": "Indicates a version conflict on the spec_section"
        },
        "processing": {
          "type": "boolean",
          "nullable": false,
          "description": "Indicates the processing status of the spec_section"
        },
        "error": {
          "type": "boolean",
          "nullable": false,
          "description": "Indicates whether the spec_section contains an error"
        },
        "creator_user_id": {
          "type": "integer",
          "format": "int32",
          "nullable": false,
          "description": "ID of the user who created the spec_section"
        },
        "last_editor_user_id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the last user who edited the spec_section"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server created the spec_section"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server last updated the spec_section"
        },
        "deleted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time when the server last deleted the spec_section"
        },
        "device_created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the device created the spec_section"
        },
        "device_updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the device last updated the spec_section"
        }
      },
      "additionalProperties": false
    },
    "submittal_assignee": {
      "description": "the SubmittalAssignee",
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string",
          "nullable": false,
          "description": "unique identifier of the assignee"
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "if it is a non-user then the email of the non-user"
        },
        "language": {
          "type": [
            "string",
            "null"
          ],
          "description": "if it is a non-user then the language of the non-user"
        },
        "kind": {
          "type": "string",
          "enum": [
            "user",
            "non_user"
          ],
          "nullable": false,
          "description": "if it is a user or a non-user"
        },
        "user_id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "if it is a user then the id of the User"
        },
        "user": {
          "type": [
            "object",
            "null"
          ],
          "description": "the associated project-user attributes",
          "properties": {
            "user_id": {
              "type": "integer",
              "format": "int32",
              "nullable": false,
              "description": "ID of the User. Belongs to User entity."
            },
            "full_name": {
              "type": "string",
              "nullable": false,
              "description": "User full name: first name + last name."
            },
            "project_id": {
              "type": [
                "string",
                "null"
              ],
              "format": "uuid",
              "description": "The ID of the Project that project user belongs to. PmGroup information is scoped to this project."
            },
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "member",
                "follower"
              ],
              "nullable": false,
              "description": "role that the project-user holds in this project"
            },
            "pm_group_id": {
              "type": [
                "string",
                "null"
              ],
              "format": "uuid",
              "description": "The id of the PmGroup that user belongs to within a project."
            },
            "pm_group_name": {
              "type": [
                "string",
                "null"
              ],
              "description": "The name of the PmGroup that user belongs to within a project."
            },
            "pm_role": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "contributor",
                "manager"
              ],
              "description": "project management role that the project-user holds in this project"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "submittal_user": {
      "type": "object",
      "description": "Entity that represents a SubmittalUser document",
      "required": [
        "id",
        "project_id",
        "submittal_id",
        "creator_user_id",
        "last_editor_user_id",
        "created_at",
        "updated_at"
      ],
      "nullable": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the entity"
        },
        "project_id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the project this entity belongs to"
        },
        "submittal_id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the Submittal this entity belongs to"
        },
        "submittal_revision_id": {
          "type": "string",
          "format": "uuid",
          "nullable": false,
          "description": "ID of the SubmittalRevision this entity belongs to"
        },
        "submittal_approval_workflow_step_id": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid",
          "description": "ID of the SubmittalApprovalWorkflowStep this entity belongs to"
        },
        "project_userable_id": {
          "type": "integer",
          "format": "int32",
          "nullable": false,
          "description": "ID of the ProjectUser if user kind, ExternalProjectUser if non-user kind."
        },
        "project_userable_type": {
          "type": "string",
          "nullable": false,
          "description": "ProjectUser or ExternalProjectUser, i.e non-user or user kind"
        },
        "user_id": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int32",
          "description": "ID of the User. Belongs to User entity."
        },
        "revision_number": {
          "type": "integer",
          "nullable": false,
          "description": "SubmittalRevision number"
        },
        "is_assignee": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "indication for whether this SubmittalUser is an assignee on the Submittal"
        },
        "is_watcher": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "indication for whether this SubmittalUser is a watcher on the Submittal"
        },
        "is_reviewer": {
          "type": [
            "boolean",
            "null"
          ],
          "description": "indication for whether this SubmittalUser is a reviewer on the Submittal"
        },
        "is_required": {
          "type": "boolean",
          "nullable": false,
          "description": "indication for whether approval of this user is required to move forward"
        },
        "kind": {
          "type": "string",
          "nullable": false,
          "description": "kind of user"
        },
        "email": {
          "type": [
            "string",
            "null"
          ],
          "description": "users email, if non_user"
        },
        "language": {
          "type": [
            "string",
            "null"
          ],
          "description": "users language, if non_user"
        },
        "user": {
          "type": [
            "object",
            "null"
          ],
          "description": "the associated project-user attributes",
          "properties": {
            "user_id": {
              "type": "integer",
              "format": "int32",
              "nullable": false,
              "description": "ID of the User. Belongs to User entity."
            },
            "full_name": {
              "type": "string",
              "nullable": false,
              "description": "User full name: first name + last name."
            },
            "project_id": {
              "type": [
                "string",
                "null"
              ],
              "format": "uuid",
              "description": "The ID of the Project that project user belongs to. PmGroup information is scoped to this project."
            },
            "role": {
              "type": "string",
              "enum": [
                "admin",
                "member",
                "follower"
              ],
              "nullable": false,
              "description": "role that the project-user holds in this project"
            },
            "pm_group_id": {
              "type": [
                "string",
                "null"
              ],
              "format": "uuid",
              "description": "The id of the PmGroup that user belongs to within a project."
            },
            "pm_group_name": {
              "type": [
                "string",
                "null"
              ],
              "description": "The name of the PmGroup that user belongs to within a project."
            },
            "pm_role": {
              "type": [
                "string",
                "null"
              ],
              "enum": [
                "contributor",
                "manager"
              ],
              "description": "project management role that the project-user holds in this project"
            }
          },
          "additionalProperties": false
        },
        "device_created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the device created the entity"
        },
        "device_updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the device last updated the entity"
        },
        "deleted_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time",
          "description": "Time the server deleted the entity"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server created the entity"
        },
        "updated_at": {
          "type": "string",
          "format": "date-time",
          "nullable": false,
          "description": "Time when the server last updated the entity"
        },
        "creator_user_id": {
          "type": "integer",
          "format": "int32",
          "nullable": false,
          "description": "ID of the user who created this entity"
        },
        "last_editor_user_id": {
          "type": "integer",
          "format": "int32",
          "nullable": false,
          "description": "ID of the user who most recently edited this entity"
        },
        "resolved_conflict": {
          "type": "boolean",
          "nullable": false,
          "description": "Specifies if PUT/PATCH request was rejected - do not store this field!"
        }
      },
      "additionalProperties": false
    }
  }
}