Link relation ia:create-asset-with-position

Overview

Create an asset.

HTTP method

POST

URI template variables

-

Query parameters

queueId

A mandatory query parameter that specifies the Queue where the asset will be created.

position

Asset ID after which insert the new asset.

unlock

Put false to preserve asset lock

qkey

Password for key-locked queue.

Request body

An aa:asset resource.

The format of the request body depends on the system. The type property of the link contains the supported format.

HTTP response

201 Created

The asset was created successfully.

Response body

-

The link rel doesn’t return a response body, but sets the HTTP header Location to a URL that returns the created asset.

Available in

Description

The body is expected in NSML format. Content-Type must be set to application/vnd.com.avid.inews.nsml+xml.

Example request body:
 
<nsml version="4.1">
<head>
    <meta words="4" rate="180" wordlength="6" version="2"/>
    <formname>DEFAULT-FORM</formname>
    <storyid>0ba0af50:0000a8b9:56bc92a9</storyid>
</head>
<fields>
    <string id="title">Weather forecast</string>
    <date id="create-date">1453717480</date>
    <date id="modify-date">1455198889</date>
    <string id="modify-by">avstar</string>
</fields>
<body>
    <p>The weather is fine.</p>
</body>
</nsml>