Notes
Resource Fields
Name | Type | Read-only | Description |
---|---|---|---|
body_text | string | ||
body_html | string | ||
is_pinned | boolean |
Default: false
|
|
pinned_by | User | ||
user | User | ||
attachments | Attachments | ||
download_all | string | ||
created_at | timestamp | ISO-8601 Format | |
updated_at | timestamp | ISO-8601 Format |
Attachments
RESOURCE FIELDS
Name | Type | Read-only | Description |
---|---|---|---|
name | string | ||
size | integer | ||
width | integer | Only if the attachment is image | |
height | integer | Only if the attachment is image | |
type | string | Mime-type of the file | |
content_id | string | Content ID used for inline attachment | |
alt | string | ||
url | string | The URL to view the attachment | |
url_download | string | The URL to download the attachment | |
thumbnails | Thumbnails | ||
created_at | timestamp | ISO-8601 Format |
Thumbnails
RESOURCE FIELDS
Name | Type | Read-only | Description |
---|---|---|---|
name | string | ||
size | integer | ||
width | integer | ||
height | integer | ||
type | string | Mime-type of the file | |
url | string | The URL to view the thumbnail | |
created_at | timestamp | ISO-8601 Format |
Metadata
Version | 1.0 |
Last Updated | July 04, 2016 |
Actions
Retrieve all notes
GET /api/v1/cases/:id/notes.jsonInformation
Allowed for | Collaborators, Agents, Admins & Owners |
Scope | conversations |
Ordered by | created_at (descending) |
Arguments
Name | Type | Mandatory | Description |
---|---|---|---|
is_pinned | boolean | ||
filter | string |
This end-point will list the notes which are on conversation, it's requester and requester's organization.
Response
{
"status": 200,
"data": [
{
"id": 1,
"body_text": "Customer is using Honey - Blend. So communicate accordingly",
"body_html": null,
"is_pinned": true,
"pinned_by":
{
"id": 1,
"resource_type": "user"
}
,
"user":
{
"id": 1,
"resource_type": "user"
}
,
"attachments": [],
"download_all": null,
"created_at": "2016-02-17T08:20:18+05:00",
"updated_at": "2016-02-17T08:20:18+05:00",
"resource_type": "note"
,"resource_url": "https://brewfictus.kayako.com/api/v1/cases/1/notes/1"
}
],
"resource": "note",
"offset": 0,
"limit": 10,
"total_count": 3
}
Retrieve a note
GET /api/v1/cases/:id/notes/:id.jsonInformation
Allowed for | Collaborators, Agents, Admins & Owners |
Scope | conversations |
Response
{
"status": 200,
"data": {
"id": 1,
"body_text": "Customer is using Honey - Blend. So communicate accordingly",
"body_html": null,
"is_pinned": true,
"pinned_by":
{
"id": 1,
"resource_type": "user"
}
,
"user":
{
"id": 1,
"resource_type": "user"
}
,
"attachments": [],
"download_all": null,
"created_at": "2016-02-17T08:20:18+05:00",
"updated_at": "2016-02-17T08:20:18+05:00",
"resource_type": "note"
,"resource_url": "https://brewfictus.kayako.com/api/v1/cases/1/notes/1"
}
,
"resource": "note"
}
Update a note
PUT /api/v1/cases/:id/notes/:id.jsonInformation
Allowed for | Collaborators, Agents, Admins & Owners |
Scope | conversations |
Parameters
Name | Type | Mandatory | Description |
---|---|---|---|
is_pinned | boolean | If set to true then it wil appear as a pinned in the conversation timelines. |
Response
{
"status": 200,
"data": {
"id": 1,
"body_text": "Customer is using Honey - Blend. So communicate accordingly",
"body_html": null,
"is_pinned": true,
"pinned_by":
{
"id": 1,
"resource_type": "user"
}
,
"user":
{
"id": 1,
"resource_type": "user"
}
,
"attachments": [],
"download_all": null,
"created_at": "2016-02-17T08:20:18+05:00",
"updated_at": "2016-02-17T08:20:18+05:00",
"resource_type": "note"
,"resource_url": "https://brewfictus.kayako.com/api/v1/cases/1/notes/1"
}
,
"resource": "note"
}