Stay organized with collections
Save and categorize content based on your preferences.
Full name: projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions
Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped.
Endpoint
post
https://{service-endpoint}/v1beta1/{context}:addContextArtifactsAndExecutions
Required. The resource name of the Context that the Artifacts and Executions belong to. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}
Request body
The request body contains data with the following structure:
Fields
artifacts[]string
The resource names of the Artifacts to attribute to the Context.
[[["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.addContextArtifactsAndExecutions\n\n**Full name**: projects.locations.metadataStores.contexts.addContextArtifactsAndExecutions\n\nAdds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped. \n\n### Endpoint\n\npost `https:``/``/{service-endpoint}``/v1beta1``/{context}:addContextArtifactsAndExecutions` \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 Context that the Artifacts and Executions belong to. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}`\n\n### Request body\n\nThe request body contains data with the following structure:\nFields `artifacts[]` `string` \nThe resource names of the Artifacts to attribute to the Context.\n\nFormat: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`\n`executions[]` `string` \nThe resource names of the Executions to associate with the Context.\n\nFormat: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}` \n\n### Response body\n\nIf successful, the response body is empty."]]