Skip to main content
POST
/
integration
/
folder
/
{folderId}
/
assign-translator-to-orders
curl -X POST "https://api-integration.ollang.com/integration/folder/60b8d6f1e1b9b1d8c6c0d8e1/assign-translator-to-orders" \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "translatorId": "507f1f77bcf86cd799439011"
  }'
{
  "assignedCount": 12
}
Assigns a translator to all eligible (unassigned, completed) orders in the specified folder. Optionally filter by sourceLanguage and/or targetLanguage to only assign orders matching a specific language pair. When no language filters are provided, all eligible orders in the folder are assigned.
curl -X POST "https://api-integration.ollang.com/integration/folder/60b8d6f1e1b9b1d8c6c0d8e1/assign-translator-to-orders" \
  -H "X-Api-Key: <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "translatorId": "507f1f77bcf86cd799439011"
  }'

Authorizations

This endpoint requires API key authentication. Include your API key in the request header:
  • Header name: X-Api-Key
  • Header value: Your API key from the Ollang dashboard

Path Parameters

folderId
string
required
The unique identifier of the folder containing the orders.

Body Parameters

translatorId
string
required
The translator ID to assign to the orders.
deadline
string
Optional deadline for the assignment in ISO 8601 format (e.g., 2026-07-01T00:00:00.000Z).
sourceLanguage
string
Filter by source language code (e.g., en). Only orders with this source language will be assigned.
targetLanguage
string
Filter by target language code (e.g., fr). Only orders with this target language will be assigned.

Response

assignedCount
number
The number of orders that were successfully assigned.
{
  "assignedCount": 12
}