Search documentation
karat

+

K

User Documentation ↗
Version 2.0

Register Media Item

POST/api/v2/mediasets/{mediaSetRid}/items/register
Warning

This endpoint is in preview and may be modified or removed at any time. To use this endpoint, add preview=true to the request query parameters.

Registers a media item that currently resides in a federated media store. Registration will validate the item against the media set's schema and perform initial metadata extraction. This endpoint is only applicable for federated media sets.

Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:mediasets-write.

Path parameters

mediaSetRid
string

The Resource Identifier (RID) of a Media Set in Foundry.

Query parameters

branchName
string
optional

Specifies the specific branch by name to which this media item will be registered.

viewRid
string
optional

Specifies the specific view by rid to which this media item will be registered.

transactionId
string
optional

The id of the transaction associated with this request. Required for transactional media sets.

preview
boolean
optional

A boolean flag that, when set to true, enables the use of beta features in preview mode.

Request body

RegisterMediaItemRequest
object

Request to register a media item from a federated store.

Hide child attributes

Hide child attributes

physicalItemName
string

The relative path within the federated media store where the media item exists.

mediaItemPath
string
optional

A user-specified identifier for a media item within a media set. Paths must be less than 256 characters long. If multiple items are written to the same media set at the same path, then when retrieving by path the media item which was written last is returned.

Response body

RegisterMediaItemResponse
object

Response after successfully registering a media item.

Hide child attributes

Hide child attributes

mediaItemRid
string

The Resource Identifier (RID) of an individual Media Item within a Media Set in Foundry.

mediaType
string

The media type of the file or attachment. Examples: application/json, application/pdf, application/octet-stream, image/jpeg

Examples

Request

Copied!
1 2 3 4 5 curl -X POST \ \t-H "Content-type: application/json" \ \t-H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/v2/mediasets/{mediaSetRid}/items/register?preview=true" \ -d ''