Upload Attachment

Request

POST /v2/conversations/100/threads/1000/attachments HTTP/1.1
Authorization: Bearer oauth_token
Content-Type: application/json

{
  "fileName" : "file.txt",
  "mimeType" : "text/plain",
  "data" : "ZmlsZQ=="
}

Path Parameters

/v2/conversations/{conversationId}/threads/{threadId}/attachments

Request fields

Path Type Required Description
fileName String Y Attachment’s file name
mimeType String Y Attachment’s mime type
data String Y Base64-encoded stream of data.

Response

HTTP/1.1 201 Created

Moved or merged conversations

When a conversation is merged with another conversation, it is no longer accessible using the old ID. Get Conversation endpoint will return a HTTP 301 Moved Permanently status code and the response will contain a Location header with the URI of the new conversation.

This request will return a HTTP 404 Not Found in such case. If you suspect the conversation you are trying to change was merged, call the Get Conversation endpoint to get a new conversation location.