Jobs

Bulk update stuck image statuses

Updates the status of multiple ImageResult objects to 'failed'. This is useful for cleaning up images that are stuck in 'pending' or 'processing' status. Only images belonging to the authenticated user can be updated.

POST
/jobs/stuck-images/bulk-update

Authorization

token_auth
AuthorizationBearer <token>

Token-based authentication using access tokens.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://v2.api.piktid.com/jobs/stuck-images/bulk-update" \  -H "Content-Type: application/json" \  -d '{    "image_ids": [      0    ],    "new_status": "failed"  }'
{
  "success": true,
  "updated_count": 0,
  "message": "string"
}
{
  "error": "Invalid request",
  "detail": [
    {
      "field": null,
      "message": "string",
      "position": "query"
    }
  ]
}
Empty