Translation

Bulk-archive (soft-delete) translation keys

Soft-archives multiple keys in one request — the bulk twin of DELETE /api/v2/keys/{id}. Unlike the single-key endpoint this NEVER hard-deletes: an id that is already archived is a no-op and is reported as skipped, so a select-all that includes archived rows cannot destroy them. Keys that do not exist, or belong to a different project_type than the story, are skipped too; archived + skipped always equals the number of distinct ids sent. Requires SourceDelete permission on the story's project_type, and the story must be the production one.

POST
/api/v2/keys/archive-bulk

Authorization

BearerAuthObject
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/keys/archive-bulk" \  -H "Content-Type: application/json" \  -d '{    "sourceIds": [      28257,      28258,      28259    ],    "storyId": 3  }'
{  "archived": 5,  "skipped": 2}
Empty
{  "message": {    "error": "Your request was made with invalid credentials."  }}
{  "message": {    "error": "You are not allowed to perform this action."  }}
Empty