Skip to main content
POST
/
queue
/
{id}
/
items
/
{itemId}
/
unresolve
JavaScript
import ModerationAPI from '@moderation-api/sdk';

const client = new ModerationAPI({
  secretKey: process.env['MODAPI_SECRET_KEY'], // This is the default and can be omitted
});

const response = await client.queue.items.unresolve('itemId', { id: 'id' });

console.log(response.status);
{
  "success": true,
  "status": "<string>",
  "unresolvedAt": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The queue ID

itemId
string
required

The item ID to unresolve

Body

application/json
comment
string

Optional reason for unresolving the item

Response

Successful response

success
boolean
required
status
string
required

New status of the item

unresolvedAt
string
required

Timestamp when the item was unresolved