POST api/v1/media/assets/{assetId}/rendition-sets?userId={userId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
assetId

integer

Required

userId

integer

Default value is 0

Body Parameters

CreateRenditionSetRequest
NameDescriptionTypeAdditional information
PlacementKey

string

None.

Viewport

string

None.

ProfileVersion

integer

None.

Crop

NormalizedCrop

None.

FocalPoint

NormalizedPoint

None.

WorkflowVersion

integer

None.

AdjustmentConfirmed

boolean

None.

Rotation

decimal number

None.

Crops

Collection of PlacementCropRequest

None.

Request Formats

application/json, text/json

Sample:
{
  "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:
<CreateRenditionSetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/navtezcms.BO.Media">
  <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>
</CreateRenditionSetRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.