Skip to content

Instantly share code, notes, and snippets.

@karn09
Created April 6, 2017 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karn09/7a4558682e615c2f287aba0a5e4b4561 to your computer and use it in GitHub Desktop.
Save karn09/7a4558682e615c2f287aba0a5e4b4561 to your computer and use it in GitHub Desktop.
{
"name": "kustomer.conversation.note",
"app": "kustomer",
"type": "internal_api",
"inputTemplate": {
"orgId": "/#_env.orgId",
"uri": "http://sobjects:8000/v1/conversations/{{conversationId}}/notes",
"method": "POST",
"data": {
"body": "/#body",
"createdAt": "/#createdAt",
"userMentions": "/#userMentions"
}
},
"outputTemplate": {
"id": "/#body.data.id",
"body": "/#body.data.attributes.body",
"createdAt": "/#body.data.attributes.createdAt",
"updatedAt": "/#body.data.attributes.updatedAt",
"modifiedAt": "/#body.data.attributes.modifiedAt"
},
"inputSchema": {
"type": "object",
"properties": {
"body": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"userMentions": {
"type": "array",
"items": {
"type": "string"
}
},
"conversationId": {
"type": "string"
}
},
"required": [
"conversationId"
],
"additionalProperties": false
},
"outputSchema": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"body": {
"type": "string"
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"modifiedAt": {
"type": "string"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment