POST api/v1/media/assets/uploads
Request Information
URI Parameters
None.
Body Parameters
CreateMediaUploadRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| FileName | string |
None. |
|
| ContentType | string |
None. |
|
| TotalBytes | integer |
None. |
|
| Width | integer |
None. |
|
| Height | integer |
None. |
|
| UploaderId | integer |
None. |
|
| CategoryIds | Collection of integer |
None. |
|
| Tags | Collection of string |
None. |
|
| AltText | string |
None. |
|
| Caption | string |
None. |
|
| Rendition | CreateRenditionSetRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"FileName": "sample string 1",
"ContentType": "sample string 2",
"TotalBytes": 3,
"Width": 4,
"Height": 5,
"UploaderId": 6,
"CategoryIds": null,
"Tags": null,
"AltText": "sample string 7",
"Caption": "sample string 8",
"Rendition": {
"PlacementKey": "sample string 1",
"Viewport": "sample string 2",
"ProfileVersion": 3,
"Crop": {
"X": 1.0,
"Y": 2.0,
"Width": 3.0,
"Height": 4.0
},
"FocalPoint": {
"X": 1.0,
"Y": 2.0
},
"WorkflowVersion": 1,
"AdjustmentConfirmed": true,
"Rotation": 1.0,
"Crops": null
}
}
application/xml, text/xml
Sample:
<CreateMediaUploadRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/navtezcms.BO.Media">
<AltText>sample string 7</AltText>
<Caption>sample string 8</Caption>
<CategoryIds i:nil="true" />
<ContentType>sample string 2</ContentType>
<FileName>sample string 1</FileName>
<Height>5</Height>
<Rendition>
<AdjustmentConfirmed>true</AdjustmentConfirmed>
<Crop>
<Height>4</Height>
<Width>3</Width>
<X>1</X>
<Y>2</Y>
</Crop>
<Crops i:nil="true" />
<FocalPoint>
<X>1</X>
<Y>2</Y>
</FocalPoint>
<PlacementKey>sample string 1</PlacementKey>
<ProfileVersion>3</ProfileVersion>
<Rotation>1</Rotation>
<Viewport>sample string 2</Viewport>
<WorkflowVersion>1</WorkflowVersion>
</Rendition>
<Tags i:nil="true" />
<TotalBytes>3</TotalBytes>
<UploaderId>6</UploaderId>
<Width>4</Width>
</CreateMediaUploadRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.