Stay organized with collections
Save and categorize content based on your preferences.
Creates a MetadataSchema.
Arguments
Parameters
parent
string
Required. The resource name of the MetadataStore where the MetadataSchema should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}
metadataSchemaId
string
The {metadata_schema} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/metadataSchemas/{metadataschema} If not provided, the MetadataStore's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all MetadataSchemas in the parent Location. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting MetadataSchema.)
region
string
Required. Region of the HTTP endpoint. For example, if region is set to us-central1, the endpoint https://us-central1-integrations.googleapis.com will be used. See service endpoints.
[[["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-09-04 UTC."],[],[],null,["# Method: googleapis.aiplatform.v1.projects.locations.metadataStores.metadataSchemas.create\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nCreates a MetadataSchema.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`GoogleCloudAiplatformV1MetadataSchema`](https://cloud.google.com/workflows/docs/reference/googleapis/aiplatform/v1/Overview#GoogleCloudAiplatformV1MetadataSchema).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/vertex-ai/docs/reference/rest/v1/projects.locations.metadataStores.metadataSchemas/create). \n\n### YAML\n\n```yaml\n- create:\n call: googleapis.aiplatform.v1.projects.locations.metadataStores.metadataSchemas.create\n args:\n parent: ...\n metadataSchemaId: ...\n region: ...\n body:\n description: ...\n schema: ...\n schemaType: ...\n schemaVersion: ...\n result: createResult\n```\n\n### JSON\n\n```json\n[\n {\n \"create\": {\n \"call\": \"googleapis.aiplatform.v1.projects.locations.metadataStores.metadataSchemas.create\",\n \"args\": {\n \"parent\": \"...\",\n \"metadataSchemaId\": \"...\",\n \"region\": \"...\",\n \"body\": {\n \"description\": \"...\",\n \"schema\": \"...\",\n \"schemaType\": \"...\",\n \"schemaVersion\": \"...\"\n }\n },\n \"result\": \"createResult\"\n }\n }\n]\n```"]]