A Graze API GET request that returns a thread entry specified using the thread entry ID. Threads are comments or 'story activity' on Situations.
Back to Graze API EndPoint Reference.
Endpoint getThreadEntry
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | No | A valid |
| Number | Yes | Thread entry ID. |
Endpoint getThreadEntry
returns the following response:
Successful requests return an array of JSON objects containing the following:
Name | Type | Description |
---|---|---|
| Number | Thread entry unique ID. |
| Number | Situation ID. |
| String | Thread identifier. Can be either |
| String | Standard thread. |
| Number | Situation status. |
| Number | Timestamp of the thread entry. |
| Number | User ID. |
| Number | Department ID of the user. |
| String | Text of the thread entry. |
| Number | Multimedia database reference of embedded resource. |
The following examples demonstrate typical use of endpoint getThreadEntry
:
Example cURL request to return thread entry with entry ID "1":
curl -G -u graze:graze -k -v "https://localhost/graze/v1/getThreadEntry" \
--data-urlencode "entry_id=1"
Example response returning thread entry with ID "1" on thread "Support":
{
"entry_id": 1,
"sig_id": 1,
"thread_id": "Support",
"standard_thread": "Support",
"status": 1,
"timed_at": 1586874842,
"uid": 3,
"did": 1,
"entry": "My thread entry",
"mmid": -1
}