POST restapi/personal/instantmessages/attachment/v1
Upload file attachment to temporary storage. The file should be included in the post call so we can extract it as HttpContext.Current.Request.Files
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A list of tuples with file repo guids to identify temporary file, and the name of the file
Collection of TupleOfSystem.GuidAndSystem.StringName | Description | Type | Additional information |
---|---|---|---|
Item1 | globally unique identifier |
None. |
|
Item2 | string |
None. |
Response Formats
application/json, text/json
Sample:
[ { "m_Item1": "50e5bff8-4143-46b5-89eb-99b82ca7e0e6", "m_Item2": "sample string 2" }, { "m_Item1": "745c392a-dede-4d4d-8fd6-36070f82cf95", "m_Item2": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfTupleOfguidstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/System"> <TupleOfguidstring> <m_Item1>50e5bff8-4143-46b5-89eb-99b82ca7e0e6</m_Item1> <m_Item2>sample string 2</m_Item2> </TupleOfguidstring> <TupleOfguidstring> <m_Item1>745c392a-dede-4d4d-8fd6-36070f82cf95</m_Item1> <m_Item2>sample string 2</m_Item2> </TupleOfguidstring> </ArrayOfTupleOfguidstring>