Stay organized with collections
Save and categorize content based on your preferences.
Updates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the EnumTypeOptions.validation_check_disabled flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT.
Required. The name of the document schema to update. Format: projects/{projectNumber}/locations/{location}/documentSchemas/{document_schema_id}. It takes the form projects/{project}/locations/{location}/documentSchemas/{documentschema}.
Request body
The request body contains data with the following structure:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-08 UTC."],[[["\u003cp\u003eUpdates to a Document Schema are limited to appending new properties, adding new ENUM possible values, and updating the \u003ccode\u003evalidation_check_disabled\u003c/code\u003e flag for ENUM possible values.\u003c/p\u003e\n"],["\u003cp\u003eUpdating existing properties or changing the document schema name (if non-empty) will result in an \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e error.\u003c/p\u003e\n"],["\u003cp\u003eThe request uses a \u003ccode\u003ePATCH\u003c/code\u003e method at a specific endpoint: \u003ccode\u003ehttps://contentwarehouse.googleapis.com/v1/{name}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires the \u003ccode\u003econtentwarehouse.documentSchemas.update\u003c/code\u003e IAM permission and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe required request body contains a \u003ccode\u003edocumentSchema\u003c/code\u003e object that represents the updated schema, and a successful update returns a \u003ccode\u003eDocumentSchema\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documentSchemas.patch\n\nUpdates a Document Schema. Returns INVALID_ARGUMENT if the name of the Document Schema is non-empty and does not equal the existing name. Supports only appending new properties, adding new ENUM possible values, and updating the [EnumTypeOptions.validation_check_disabled](/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas#EnumTypeOptions.FIELDS.validation_check_disabled) flag for ENUM possible values. Updating existing properties will result into INVALID_ARGUMENT.\n\n### HTTP request\n\n`PATCH https://contentwarehouse.googleapis.com/v1/{name}`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [DocumentSchema](/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas#DocumentSchema).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `name` resource:\n\n- `contentwarehouse.documentSchemas.update`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]