---
title: "Tag an execution"
method: PATCH
path: "/v1/executions/{id}"
tags: ["Executions"]
---

# Tag an execution

`PATCH /v1/executions/{id}`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/executions/{id}`
- Auth: HTTP bearer

Set (or clear with null) the tag of a past call, to group it into a job for GET /v1/usage.

## Path parameters

- `id` string, required

## Request body

- object
  - `tag` string, nullable, required

## Response `200`

Updated

- Execution
  - `id` string: Execution id — stable across internal retries; use it with GET /v1/executions/{id}
  - `status` 'pending' | 'processing' | 'completed' | 'partial' | 'failed' | 'cancelled' | 'timeout'
  - `operation` string
  - `tag` string, nullable: Your X-Tag, if sent
  - `created_at` string, date-time
  - `completed_at` string, date-time, nullable
  - `output` unknown
  - `error` string, nullable
  - `usage` object
    - `credits_charged` number, nullable
    - `credits_reserved` number
    - `estimated_credits` number
    - `cost_source` 'provider_reported' | 'calculated' | 'estimated' | 'null', nullable
    - `provider_usage` object, nullable: Normalised consumption, e.g. { VIDEO_SECOND: 22.4 }
  - `balance` object
    - `available` number
    - `reserved` number

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
