[[["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\u003eThis API endpoint allows you to create a new document schema within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter, formatted as \u003ccode\u003eprojects/{project}/locations/{location}\u003c/code\u003e, is required to specify the context.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain a \u003ccode\u003eDocumentSchema\u003c/code\u003e instance, defining the structure of the new document.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created \u003ccode\u003eDocumentSchema\u003c/code\u003e instance in the response body.\u003c/p\u003e\n"],["\u003cp\u003eCreating a document schema requires OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e and \u003ccode\u003econtentwarehouse.documentSchemas.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.documentSchemas.create\n\nCreates a document schema.\n\n### HTTP request\n\n`POST https://contentwarehouse.googleapis.com/v1/{parent}/documentSchemas`\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [DocumentSchema](/document-warehouse/docs/reference/rest/v1/projects.locations.documentSchemas#DocumentSchema).\n\n### Response body\n\nIf successful, the response body contains a newly created 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 `parent` resource:\n\n- `contentwarehouse.documentSchemas.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]