Get Concept Chat Attachment
This request returns the attachment of the concept chat message.
Resource
GET /chats/<OID>/concept/attachment
Where <OID> is the chat session object ID.
Parameters
Name | Type | Description |
---|---|---|
|
[json|stream] |
if stream is specified then the attachments contents are streamed to the client. |
|
boolean |
retrieve the thumbnail of this attachment. See Get Thumbnail for more information. |
Payload
None
Response
The Attachment field contentsB64String
contains the attachment’s data in Base64 econding.
Context
Authorization |
User |
Errors
HTTP code | Xelion code | Description |
---|---|---|
500 |
11000 |
If the attachment exceeds the maximum size or another server error occurred. See error message for more information. |
Example
Request
GET https://xelion.nl/api/v1/master/chats/concept/attachment
Response
{
"object": {
"originalLocation": "file.txt",
"mimeType": "text/plain",
"contentsB64String": "SSBhbSBkb29tZWQgdG8gcmVtZW1iZXIgYSBib3kgd2l0aCBhIHdyZWNrZWQgdm9pY2XigJRub3QgYmVjYXVzZSBvZiBoaXMgdm9pY2UsIG9yIGJlY2F1c2UgaGUgd2FzIHRoZSBzbWFsbGVzdCBwZXJzb24gSSBldmVyIGtuZXcsIG9yIGV2ZW4gYmVjYXVzZSBoZSB3YXMgdGhlIGluc3RydW1lbnQgb2YgbXkgbW90aGVyJ3MgZGVhdGgsIGJ1dCBiZWNhdXNlIGhlIGlzIHRoZSByZWFzb24gSSBiZWxpZXZlIGluIEdvZC4=",
"hasThumbnail": false,
"size": 236,
"commonName": "file.txt",
"oid": "2313747",
"objectType": "Attachment"
}
}