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.
HTTP request
POST https://{service-endpoint}/v1/{context}:addContextArtifactsAndExecutions
Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
context |
Required. The resource name of the Context that the Artifacts and Executions belong to. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "artifacts": [ string ], "executions": [ string ] } |
Fields | |
---|---|
artifacts[] |
The resource names of the Artifacts to attribute to the Context. Format: |
executions[] |
The resource names of the Executions to associate with the Context. Format: |
Response body
If successful, the response body is empty.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the context
resource:
aiplatform.contexts.addContextArtifactsAndExecutions
For more information, see the IAM documentation.