---
title: "POST /v1/{+context}:addContextArtifactsAndExecutions"
method: POST
path: "/v1/{+context}:addContextArtifactsAndExecutions"
tags: ["projects"]
---

# POST /v1/{+context}:addContextArtifactsAndExecutions

`POST /v1/{+context}: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.

## Path parameters

- `context` string, required

## Request body

- GoogleCloudAiplatformV1AddContextArtifactsAndExecutionsRequest — Request message for MetadataService.AddContextArtifactsAndExecutions.
  - `artifacts` string[] — The resource names of the Artifacts to attribute to the Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/artifacts/{artifact}`
  - `executions` string[] — The resource names of the Executions to associate with the Context. Format: `projects/{project}/locations/{location}/metadataStores/{metadatastore}/executions/{execution}`

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
