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

# POST /v1/{+execution}:addExecutionEvents

`POST /v1/{+execution}:addExecutionEvents`

Adds Events to the specified Execution. An Event indicates whether an Artifact was used as an input or output for an Execution. If an Event already exists between the Execution and the Artifact, the Event is skipped.

## Path parameters

- `execution` string, required

## Request body

- GoogleCloudAiplatformV1AddExecutionEventsRequest — Request message for MetadataService.AddExecutionEvents.
  - `events` GoogleCloudAiplatformV1Event[] — The Events to create and add.
    - `artifact` string — Required. The relative resource name of the Artifact in the Event.
    - `eventTime` string, google-datetime — Output only. Time the Event occurred.
    - `labels` object — The labels with user-defined metadata to annotate Events. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Event (System labels are excluded). See https://goo.gl/xmQnxf for more information and examples of labels. System reserved label keys are prefixed with "aiplatform.googleapis.com/" and are immutable.
    - `type` 'TYPE_UNSPECIFIED' | 'INPUT' | 'OUTPUT' — Required. The type of the Event.
    - `execution` string — Output only. The relative resource name of the Execution in the Event.

## 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)
