Skip to content

Commit 6207c0b

Browse files
authored
Merge pull request #178 from intercom/jonny/add_assignment_to_readme
Adding assignment to README
2 parents 97d4309 + d3bbc46 commit 6207c0b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,30 @@ var reply = {
471471
client.conversations.reply(reply, callback);
472472
```
473473

474+
```node
475+
// Assign a conversation to an admin
476+
var assignment = {
477+
id: '13879167940',
478+
type: 'admin',
479+
admin_id: '1309092',
480+
assignee_id: '1723471',
481+
message_type: 'assignment'
482+
};
483+
484+
client.conversations.reply(assignment, callback);
485+
486+
// Assign a conversation to unassigned
487+
var assignment = {
488+
id: '13879167940',
489+
type: 'admin',
490+
admin_id: '1309092',
491+
assignee_id: '0',
492+
message_type: 'assignment'
493+
}
494+
495+
client.conversations.reply(assignment, callback);
496+
```
497+
474498
```node
475499
// Mark a conversation as read
476500
client.conversations.markAsRead({ id: '1039067180' }, callback);

0 commit comments

Comments
 (0)