{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/blackbaud/main/json-schema/blackbaud-save-ad-hoc-query-response-schema.json",
  "title": "SaveAdHocQueryResponse",
  "description": "Result of AdHocQuerySave: the created or updated query ID plus owner and audit metadata. date_added and date_changed are raw pass-through strings.",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blackbaud-altru-analysis-api-openapi.yml#/components/schemas/SaveAdHocQueryResponse",
  "type": "object",
  "properties": {
    "adhoc_query_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "ID of the created or updated query.",
      "format": "uuid"
    },
    "owner": {
      "type": [
        "string",
        "null"
      ],
      "description": "Display name of the query's owner."
    },
    "owner_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "System user ID of the query's owner.",
      "format": "uuid"
    },
    "others_can_modify": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Indicates whether other users may modify this saved query."
    },
    "added_by_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "System user ID of the user who originally created the query.",
      "format": "uuid"
    },
    "added_by_user_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "User name of the user who originally created the query."
    },
    "changed_by_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "System user ID of the user who last changed the query.",
      "format": "uuid"
    },
    "changed_by_user_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "User name of the user who last changed the query."
    },
    "date_added": {
      "type": [
        "string",
        "null"
      ],
      "description": "Raw wire value of the date the query was originally created, passed through verbatim (not parsed to date-time)."
    },
    "date_changed": {
      "type": [
        "string",
        "null"
      ],
      "description": "Raw wire value of the date the query was last changed, passed through verbatim (not parsed to date-time)."
    },
    "id_set_register_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Register ID for the ID set associated with the saved query, when applicable.",
      "format": "uuid"
    }
  },
  "additionalProperties": false,
  "x-display-name": "Save ad-hoc query response",
  "x-display-id": "SaveAdHocQueryResponse"
}