Assign or remove priority from a thread
GET
/openapi/thread/assignpriority/{threadId}/{id}
const url = 'https://open-api.replyco.com/openapi/thread/assignpriority/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://open-api.replyco.com/openapi/thread/assignpriority/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Assigns a priority level to a thread or removes the current priority.
To assign priority: Provide a valid priority ID To remove priority: Pass null as the priority ID
Priority levels are configured per company and affect ticket SLA calculations.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”threadId
required
string format: uuid
Thread ID to update
id
required
string format: uuid
Priority ID to assign (null to remove current priority)
Responses
Section titled “Responses”Priority was successfully assigned or removed
User is not authenticated or authorized
Thread or priority ID was not found