# Update a metadata query Endpoint: PUT /accounts/{accountId}/ontologies/{ontologyId}/metadata-queries/{metadataQueryId} Version: 1.0.0 Security: bearerAuth ## Path parameters: - `accountId` (string, required) Short account ID with scd- prefix Example: "scd-k2j8n4m1" - `ontologyId` (string, required) The ID of the ontology - `metadataQueryId` (string, required) The ID of the metadata query ## Request fields (application/json): - `name` (string) Name of the metadata query Example: "Updated Author Name" - `description` (string) Description of the metadata query Example: "Updated description of the author field" - `dataType` (string) Data type of the metadata query Enum: "STRING", "SHORT_STRING", "NUMBER", "BOOLEAN", "DATE" - `instructions` (string) Instructions for how to execute the metadata query Example: "Extract the full name of the primary author from the document header or byline" ## Response 200 fields (application/json): - `id` (string, required) Example: "123e4567-e89b-12d3-a456-426614174001" - `name` (string, required) Example: "Author Name" - `description` (string,null, required) Example: "The name of the document author" - `dataType` (string, required) Enum: "STRING", "SHORT_STRING", "NUMBER", "BOOLEAN", "DATE" - `instructions` (string, required) Example: "Extract the full name of the primary author from the document header or byline" - `ontologyId` (string, required) Example: "987fcdeb-51a2-43d1-9c4e-5f6e7d8c9a0b" - `createdAt` (string, required) Example: "2024-01-15T10:30:00Z" - `updatedAt` (string,null, required) Example: "2024-01-15T14:30:00Z" ## Response 400 fields ## Response 401 fields ## Response 404 fields