POST api/v3/Calls/UploadFile

Attaches a file to a call

Request Information

URI Parameters

None.

Body Parameters

ID of the user

CallFileInput
NameDescriptionTypeAdditional information
Cid

Id of the Call

integer

None.

Uid

User Id of the user attaching the file

string

None.

Typ

Type of the file (Audio = 1, Image = 2, File = 3, Video = 4)

integer

None.

Nme

Name of the file

string

None.

Data

Base64 encoded string of the file being uploaded

string

None.

Lat

string

None.

Lon

string

None.

Not

string

None.

Request Formats

application/json

Sample:
{
  "Cid": 1,
  "Uid": "sample string 2",
  "Typ": 3,
  "Nme": "sample string 4",
  "Data": "sample string 5",
  "Lat": "sample string 6",
  "Lon": "sample string 7",
  "Not": "sample string 8"
}

application/xml, text/xml

Sample:
<CallFileInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Controllers.Version3.Models.Calls">
  <Cid>1</Cid>
  <Data>sample string 5</Data>
  <Lat>sample string 6</Lat>
  <Lon>sample string 7</Lon>
  <Nme>sample string 4</Nme>
  <Not>sample string 8</Not>
  <Typ>3</Typ>
  <Uid>sample string 2</Uid>
</CallFileInput>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.