---
title: "Retry a metric collection job"
method: POST
path: "/v1/metric/collection-jobs/{jobId}/retry"
tags: ["Metric Collection Job"]
---

# Retry a metric collection job

`POST /v1/metric/collection-jobs/{jobId}/retry`

## Request

- Base URL: `https://api.roark.ai`
- URL: `https://api.roark.ai/v1/metric/collection-jobs/{jobId}/retry`
- Auth: HTTP bearer

Creates a new metric collection job using the same conversations and metrics as a previous job, then triggers processing. The previous job must be in a terminal state (COMPLETED, FAILED, or CANCELED). Returns the newly created job — track its id for downstream fetches.

## Path parameters

- `jobId` string, uuid, required

## Response `201`

The newly created (retry) metric collection job

- object
  - `data` MetricCollectionJobResponse, required: A metric collection job that processes metrics for calls or chats
    - `id` string, uuid, required: Unique identifier of the metric collection job
    - `status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED', required: Current status of the job
    - `triggeredBy` 'USER_MANUAL' | 'USER_API' | 'METRIC_POLICY' | 'SIMULATION', required: What triggered this job
    - `totalItems` integer, required: Total number of call-metric pairs to process
    - `completedItems` integer, required: Number of items that finished without failing: a value was written, or the metric did not apply to the conversation
    - `failedItems` integer, required: Number of items that could not be computed, for example because an artifact the metric reads (such as diarization) failed to generate
    - `startedAt` string, nullable, required: When the job started processing
    - `completedAt` string, nullable, required: When the job completed
    - `errorMessage` string, nullable, required: Why the job failed or, on a COMPLETED job with failedItems above 0, why those items failed
    - `policyIds` string[], required: IDs of the metric policies that triggered this job
    - `createdAt` string, required: When the job was created
    - `updatedAt` string, required: When the job was last updated

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

> 187 revisions in range; 1 not diffed.

- **2026-08-26** `b4a59c7057ca`: 1 info
  - added the non-success response with the status `402`
- **2026-08-17** `887b091b3d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/roarkhq/apis/roark-analytics-api/changes/v1/metric/collection-jobs/:jobId/retry/post.md)

---

[API](https://skmtc.dev/roarkhq/apis/roark-analytics-api.md) - [All operations](https://skmtc.dev/roarkhq/apis/roark-analytics-api/llms.txt) - [OpenAPI document](https://skmtc.dev/roarkhq/apis/roark-analytics-api/revisions/1a91a5c90e44?raw)
