Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions spec/job_batches_v2/job_batches_endpoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,48 @@ x-paths:
}
```
Creates: "Feature Release 2025 2025-10-08 02:34:15 PM" (if job already exists)

4. **Job reuse with salt suffix**:
**First request** - Creates initial job:
```json
POST /job-batches-api/v2/projects/abc123/jobs
{
"nameTemplate": "Daily Report {yyyy-MM-dd}",
"mode": "REUSE_EXISTING",
"salt": "RANDOM_ALPHANUMERIC",
"targetLocaleIds": ["fr-FR", "de-DE"]
}
```
Response: `{"jobName": "Daily Report 2025-12-09", "translationJobUid": "job001"}`

**After job is completed and closed...**

**Second request** - Creates job with salt (original is closed):
```json
POST /job-batches-api/v2/projects/abc123/jobs
{
"nameTemplate": "Daily Report {yyyy-MM-dd}",
"mode": "REUSE_EXISTING",
"salt": "RANDOM_ALPHANUMERIC",
"targetLocaleIds": ["fr-FR", "de-DE"]
}
```
Response: `{"jobName": "Daily Report 2025-12-09 a7x9k", "translationJobUid": "job002"}`

**Third request** - Reuses job with salt (prevents duplicate):
```json
POST /job-batches-api/v2/projects/abc123/jobs
{
"nameTemplate": "Daily Report {yyyy-MM-dd}",
"mode": "REUSE_EXISTING",
"salt": "RANDOM_ALPHANUMERIC",
"targetLocaleIds": ["fr-FR", "de-DE"]
}
```
Response: `{"jobName": "Daily Report 2025-12-09 a7x9k", "translationJobUid": "job002"}` (same job)

**Key behavior**: The third request reuses the job with salt suffix instead of creating another duplicate,
preventing multiple jobs with different salts for the same day.
tags:
- Job Batches V2
operationId: createJobV2
Expand Down