---
title: "(BETA) Run an AI Lake services command"
method: POST
path: "/api/v1/ailake/services/{serviceId}/commands/{commandName}/run"
tags: ["AI Lake - Services & Operations"]
---

# (BETA) Run an AI Lake services command

`POST /api/v1/ailake/services/{serviceId}/commands/{commandName}/run`

## Request

- Base URL: `https://www.gooddata.ai`
- URL: `https://www.gooddata.ai/api/v1/ailake/services/{serviceId}/commands/{commandName}/run`
- Auth: none declared

(BETA) Runs a specific AI Lake service command.

## Path parameters

- `serviceId` string, required
- `commandName` string, required

## Headers

- `operation-id` string

## Request body

- RunServiceCommandRequest: Request to run an AI Lake Service Command
  - `context` object, nullable: The context to pass to the command
  - `payload` JsonNode, nullable: Metadata definition in free-form JSON format.

## Response `202`

Accepted

---

[API](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-cn-oapi-all-api/revisions/c728ef303bfb?raw)
