Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.metadataStores.contexts.addContextChildren
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.
Endpoint
post
https://{service-endpoint}/v1/{context}:addContextChildren
[[["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-06-27 UTC."],[],[],null,["# Method: contexts.addContextChildren\n\n**Full name**: projects.locations.metadataStores.contexts.addContextChildren\n\nAdds 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. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1``/{context}:addContextChildren` \nWhere `{service-endpoint}` is one of the [supported service endpoints](/vertex-ai/docs/reference/rest#rest_endpoints).\n\n### Path parameters\n\n`context` `string` \nRequired. The resource name of the parent Context.\n\nFormat: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `childContexts[]` `string` \nThe resource names of the child Contexts. \n\n### Response body\n\nIf successful, the response body is empty."]]