Stay organized with collections
Save and categorize content based on your preferences.
Adds a set of Contexts as children to a parent Context. If any of the
child Contexts have already been added to the parent Context, they are
simply skipped. If this call would create a cycle or cause any Context
to have more than 10 parents, the request will fail with an
INVALID_ARGUMENT error.
Arguments
Parameters
context
string
Required. The resource name of the parent Context. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
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-08-29 UTC."],[],[],null,["# Method: googleapis.aiplatform.v1beta1.projects.locations.metadataStores.contexts.addContextChildren\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\nAdds a set of Contexts as children to a parent Context. If any of the\nchild Contexts have already been added to the parent Context, they are\nsimply skipped. If this call would create a cycle or cause any Context\nto have more than 10 parents, the request will fail with an\nINVALID_ARGUMENT error.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response will be empty.\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/v1beta1/projects.locations.metadataStores.contexts/addContextChildren). \n\n### YAML\n\n```yaml\n- addContextChildren:\n call: googleapis.aiplatform.v1beta1.projects.locations.metadataStores.contexts.addContextChildren\n args:\n context: ...\n region: ...\n body:\n childContexts: ...\n result: addContextChildrenResult\n```\n\n### JSON\n\n```json\n[\n {\n \"addContextChildren\": {\n \"call\": \"googleapis.aiplatform.v1beta1.projects.locations.metadataStores.contexts.addContextChildren\",\n \"args\": {\n \"context\": \"...\",\n \"region\": \"...\",\n \"body\": {\n \"childContexts\": \"...\"\n }\n },\n \"result\": \"addContextChildrenResult\"\n }\n }\n]\n```"]]