POST api/v1/Task/addFileNew
Request Information
URI Parameters
None.
Body Parameters
AddFileNewBindModelName | Description | Type | Additional information |
---|---|---|---|
IsMedia | boolean |
None. |
|
ThumbLink | string |
None. |
|
ViewLink | string |
None. |
|
FileSize | integer |
None. |
|
TaskId | integer |
Required |
|
FileName | string |
Required |
|
Link | string |
Required |
|
CloudStorageId | integer |
Required |
Request Formats
application/json, text/json
Sample:
{ "IsMedia": true, "ThumbLink": "sample string 2", "ViewLink": "sample string 3", "FileSize": 4, "TaskId": 5, "FileName": "sample string 6", "Link": "sample string 7", "CloudStorageId": 8 }
application/xml, text/xml
Sample:
<AddFileNewBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models"> <CloudStorageId>8</CloudStorageId> <FileName>sample string 6</FileName> <Link>sample string 7</Link> <TaskId>5</TaskId> <FileSize>4</FileSize> <IsMedia>true</IsMedia> <ThumbLink>sample string 2</ThumbLink> <ViewLink>sample string 3</ViewLink> </AddFileNewBindModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReturnResultName | Description | Type | Additional information |
---|---|---|---|
ErrorCode | integer |
None. |
|
ErrorMessage | string |
None. |
|
Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{ "ErrorCode": 1, "ErrorMessage": "sample string 2", "Data": {} }
application/xml, text/xml
Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeamworkClassLibrary"> <Data /> <ErrorCode>1</ErrorCode> <ErrorMessage>sample string 2</ErrorMessage> </ReturnResult>