Skip to main content
POST
/
queue
/
{id}
/
items
/
{itemId}
/
resolve
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.resolve('itemId', { id: 'id' });

console.log(response.resolvedAt);
{
  "success": true,
  "resolvedAt": "<string>",
  "comment": "<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 resolve

Body

application/json
comment
string

Optional comment

Response

Successful response

success
boolean
required
resolvedAt
string
required

Timestamp when the item was resolved

comment
string

Optional comment