POST api/Attachments/UploadToTemp?hostType={hostType}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| hostType | AttachmentHostType |
Required |
Body Parameters
None.
Response Information
Resource Description
UploadResult| Name | Description | Type | Additional information |
|---|---|---|---|
| HostType | AttachmentHostType |
None. |
|
| AttachmentId | integer |
None. |
|
| FileName | string |
None. |
|
| Url | string |
None. |
|
| MeterResp | BaiduMeterSimpleRespDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"HostType": 1,
"AttachmentId": 1,
"FileName": "sample string 2",
"Url": "sample string 3",
"MeterResp": {
"Weight": 1.0,
"Unit": "sample string 2"
}
}