POST
/
conversations
/
{conversationId}
/
set-priority

Example JS Code to Change Priority

const apiUrl = 'https://api.ogenioia.com';
const apiKey = 'XXX';
const conversationId = 'XXX';

const res = await fetch(
  `${apiUrl}/conversations/${conversationId}/set-priority`,
  {
    method: 'POST',
    body: JSON.stringify({
      priority: 'LOW', // Valid values: LOW, MEDIUM, HIGH
    }),
    headers: {
      'Content-Type': 'application/json',
      Authorization: `Bearer ${apiKey}`,
    },
  }
);

Authorizations

Authorization
string
headerrequired

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

Path Parameters

conversationId
string
required

ID of the conversation for which the priority will be set.

Body

application/json
priority
enum<string>
required

New priority for the conversation.

Available options:
LOW,
MEDIUM,
HIGH

Response

200 - application/json
success
boolean
message
string