All available operations for listing and editing threads
This endpoint returns information about all threads in an application.
GET https://api.cord.com/v1/threads/
This REST endpoint has no request body.
The response is a JSON Array with objects with the following fields:
!!resolvedTimestamp
. In a PUT request, setting this to true
is
equivalent to setting resolvedTimestamp
to the current time, and setting
this to false
is equivalent to setting resolvedTimestamp
to null
.null
if this thread
is not resolved.This is an array of objects, each of which has the following fields:
null
if this participant has never viewed this
thread.FlatJsonObject
is an object where all values are simple, scalar types
(string, number or boolean).This endpoint gets information about a specific thread.
GET https://api.cord.com/v1/threads/<ID>
This REST endpoint has no request body.
The response is a JSON object with the following fields:
!!resolvedTimestamp
. In a PUT request, setting this to true
is
equivalent to setting resolvedTimestamp
to the current time, and setting
this to false
is equivalent to setting resolvedTimestamp
to null
.null
if this thread
is not resolved.This is an array of objects, each of which has the following fields:
null
if this participant has never viewed this
thread.FlatJsonObject
is an object where all values are simple, scalar types
(string, number or boolean).This endpoint updates an existing thread.
PUT https://api.cord.com/v1/threads/<ID>
Listed below are the fields of the request body to be added as part of the HTTP PUT request.
FlatJsonObject
is an object where all values are simple, scalar types
(string, number or boolean).null
if this thread
is not resolved.!!resolvedTimestamp
. In a PUT request, setting this to true
is
equivalent to setting resolvedTimestamp
to the current time, and setting
this to false
is equivalent to setting resolvedTimestamp
to null
.If successful, the response will be:
{
"success": true,
"message": "✅ You successfully updated thread abc123"
}
This endpoint deletes a thread.
DELETE https://api.cord.com/v1/threads/<ID>
This REST endpoint has no request body.
If successful, the response will be:
{
"success": true,
"message": "💀 You successfully deleted thread abc123"
}