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

# POST /v1/{+name}:executeCode

`POST /v1/{+name}:executeCode`

Executes code statelessly.

## Path parameters

- `name` string, required

## Request body

- GoogleCloudAiplatformV1ExecuteCodeRequest — Request message for SandboxEnvironmentExecutionService.ExecuteCode.
  - `inputs` GoogleCloudAiplatformV1Chunk[] — Required. The inputs used for the stateless code execution.
    - `mimeType` string — Required. Mime type of the chunk data. See https://www.iana.org/assignments/media-types/media-types.xhtml for the full list.
    - `metadata` GoogleCloudAiplatformV1Metadata — Metadata for a chunk.
      - `attributes` object — Optional. Attributes attached to the data. The keys have semantic conventions and the consumers of the attributes should know how to deserialize the value bytes based on the keys.
    - `data` string, byte — Required. The data in the chunk.

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