Resource loc:item

Overview

The loc:item resource represents a single node the folder tree of a system.

Properties

The loc:item resource has the following properties:

base

Base identifiers of the item. The property is a JSON object with the following sub properties:

  • systemType

  • systemID

  • type

  • id

common

Common attributes:

  • name

  • creator

  • created

  • modifier

  • modified

  • dropframe

  • (optional) editRate

See Common Object Properties for details.

MediaCentral Production Management:

  • dropframe: the value is inferred by analysis of the common attribute "startTC"

  • editRate: the property will not be present, if the asset has no valid editrate

attributes

An array containing the attributes of the loc:item resource. Each item in the array uses the same structure as the attributes property of the aa:attributes resource. Example:

{
  "name": "com.avid.workgroup.Property.User.MyProperty",
  "value": "An example text",
  "type": "string"
}

The attributes property is only returned if there is at least one non-empty attribute to return.

System type

Description

MediaCentral | Asset Management

Does currently not support attributes for loc:item resources.

MediaCentral | Production Management

The attributes property is only returned if asked for by using the URI query parameter attributes. To request all attributes, use attributes=*.

  • The names of user-defined attributes start with the prefix "com.avid.workgroup.Property.User".

  • System attributes start with the prefix "com.avid.workgroup.Property.System" or have no prefix.

Attribute names are case-sensitive.

status

Status information for the item. See Status of an aa:asset or loc:item for details.

Common Link Relations

loc:parent-collection

Get the parent collection at the position of the current item.

loc:parent-folder

Get the loc:item resource of the parent folder.

loc:path-to-root

Get the parent items of this location item.

loc:update-item

Update a location item.

 

Link Relations for Folders

loc:add-item

Add a single location item to the folder item.

loc:add-items

Add multiple location items to the folder item.

loc:collection

Get the child items of this location item.

loc:collection-at-itemid

Get the child items of this location item.

loc:create-folder

Add a new folder to the folder item.

loc:delete-item

Delete an item. This link relation is only available for MC | AM and for folders of MC | PM.

loc:delete-item-by-id

Delete a location item from the folder item. This link relation is only available for MC | AM.

loc:delete-item-in-folder-by-id-bulk-command

Delete a list of location items from the folder.

loc:move-item

Move a single location item to the folder item.

loc:move-items

Move multiple location items to the folder item.

 

Link Relations For Non-Folder Items

loc:referenced-object

Get the asset that is referenced by this location item.

Description

The loc:item resource represents a single node the folder tree of a system.

A location item is an item used in a tree representation of a system. An item can be:

  • a folder.

  • a reference to an asset.

  • both.

A location item is a common object, meaning that it has the common properties of a common object. See Common Object Properties for details.

Additionally, it can have the property attributes, which represents attributes, which can be requested additionally.

Examples

MediaCentral Asset Management: a location item that acts as an asset reference
 
{
  "base": {
        "id": "101",
        "type": "folder",
		"systemType": "interplay-mam",
        "systemID": "ea836abc-105a-11ea-8d71-362b9e155667"
  },
  "common": {
        "name": "Test folder",
		"creator": "admin",
        "created": "2017-02-14T14:44:45.61+01:00",
		"modifier": "admin",
        "modified": "2017-02-14T14:44:45.633+01:00"
  },
  "_links": {
    "curies": [
      {
        "href": "https://developer.avid.com/ctms/api/ma/linkrels/{rel}.html",
        "name": "ma",
        "templated": true
      },
      {
        "href": "https://developer.avid.com/ctms/api/aa/linkrels/{rel}.html",
        "name": "aa",
        "templated": true
      },
      {
        "href": "https://developer.avid.com/ctms/api/loc/linkrels/{rel}.html",
        "name": "loc",
        "templated": true
      }
        ], "self": {
            "href": "https://host/…​"
        },
        "loc:collection": {
            "href": "https://host/…​"
        },
        "profile": {
            "href": "https://host/…​"
        },
        "loc:update-item": {
            "href": "https://host/…​"
        },
        "loc:path": {
            "href": "https://host/…​"
        },
        "loc:add-item": {
            "href": "https://host/…​"
        },
        "loc:add-items": {
            "href": "https://host/…​"
        },
        "loc:move-item": {
            "href": "https://host/…​"
        },
        "loc:move-items": {
            "href": "https://host/…​"
        },
        "loc:delete-item-by-id": {
            "href": "https://host/…​",
            "templated": true
        }
    },
    "_embedded": {
        "loc:collection": {
            "paging": {
                "elements": 2,
                "totalElements": 2,
                "limit": 100,
                "offset": 0
            },
            "_links": {
                "self": {
                    "href": "https://host/…​"
                },
                "loc:collection": {
                    "href": "https://host/…​",
                    "templated": true
                },
                "first": {
                    "href": "https://host/…​"
                },
                "range": {
                    "href": "https://host/…​",
                    "templated": true
                },
                "loc:item": [
                    {
                        "href": "https://host/…​"
                    },
                    {
                        "href": "https://host/…​"
                    }
                ]
            },
            "_embedded": {
                "loc:item": [
                    {
                        "base": {
                            "id": "100.102",
                            "type": "folder-item",
                            "systemType": "interplay-mam",
                            "systemID": "ea836abc-105a-11ea-8d71-362b9e155667"
                        },
                        "common": {
                            "name": "Bear MPG",
                            "creator": "admin",
                            "created": "2017-02-14T15:27:49.56+01:00",
                            "modifier": "admin",
                            "modified": "2017-02-14T15:27:49.56+01:00",
                            "typeIcon": "https://host/…​",
                            "typeIconSmall": "https://host/…​"
                        },
                        "attributes": [],
                        "_links": {
                            "self": {
                                "href": "https://host/…​"
                            },
                            "profile": {
                                "href": "https://host/…​"
                            },
                            "aa:thumb": {
                                "href": "https://host/…​"
                            },
                            "aa:icon": {
                                "href": "https://host/…​"
                            },
                            "loc:referenced-object": {
                                "href": "https://host/…​"
                            },
                            "loc:update-item": {
                                "href": "https://host/…​"
                            },
                            "loc:path-to-root": {
                                "href": "https://host/…​"
                            }
                        },
                        "_embedded": {
                            "loc:referenced-object": {
                                "base": {
                                    "id": "Bear MPG",
                                    "type": "asset.VIDEO",
                                    "systemType": "interplay-mam",
                                    "systemID": "ea836abc-105a-11ea-8d71-362b9e155667"
                                },
                                "common": {
                                    "name": "Bear MPG",
                                    "creator": "Service-WatchService",
                                    "created": "2017-02-14T14:06:18+01:00",
                                    "modifier": "Administrator",
                                    "modified": "2017-07-18T15:55:19+02:00",
                                    "startTC": "06:05:17:19",
                                    "endTC": "06:05:47:15",
                                    "durationTC": "00:00:29:21",
                                    "description": "Bear at the river"
                                },
                                "_links": {
                                    "self": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-asset": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-attributes": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:attributes": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:thumb": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:icon": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:time-based": {
                                        "href": "https://host/…​"
                                    },
                                    "loc:referencing-items": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:keyframes": {
                                        "href": "https://host/…​"
                                    }
                                }
                            }
                        }
                    },
                    {
                        "base": {
                            "id": "100.103",
                            "type": "folder-item",
                            "systemType": "interplay-mam",
                            "systemID": "ea836abc-105a-11ea-8d71-362b9e155667"
                        },
                        "common": {
                            "name": "MA - IE_galleryview",
                            "creator": "admin",
                            "created": "2017-02-15T13:18:41.897+01:00",
                            "modifier": "admin",
                            "modified": "2017-02-15T13:18:41.897+01:00",
                            "typeIcon": "https://host/…​",
                            "typeIconSmall": "https://host/…​"
                        },
                        "attributes": [],
                        "_links": {
                            "self": {
                                "href": "https://host/…​"
                            },
                            "profile": {
                                "href": "https://host/…​"
                            },
                            "aa:thumb": {
                                "href": "https://host/…​"
                            },
                            "aa:icon": {
                                "href": "https://host/…​"
                            },
                            "loc:referenced-object": {
                                "href": "https://host/…​"
                            },
                            "loc:update-item": {
                                "href": "https://host/…​"
                            },
                            "loc:path": {
                                "href": "https://host/…​"
                            }
                        },
                        "_embedded": {
                            "loc:referenced-object": {
                                "base": {
                                    "id": "MA - IE_galleryview",
                                    "type": "asset.IMAGE",
                                    "systemType": "interplay-mam",
                                    "systemID": "ea836abc-105a-11ea-8d71-362b9e155667"
                                },
                                "common": {
                                    "name": "MA - IE_galleryview",
                                    "creator": "Service-WatchService",
                                    "created": "2017-02-14T14:06:07+01:00",
                                    "modifier": "Service-WatchService",
                                    "modified": "2017-02-14T14:06:07+01:00",
                                    "startTC": "00:00:00.000"
                                },
                                "_links": {
                                    "self": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-asset": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-attributes": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:attributes": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:thumb": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:icon": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:time-based": {
                                        "href": "https://host/…​"
                                    },
                                    "loc:referencing-items": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:keyframes": {
                                        "href": "https://host/…​"
                                    }
                                }
                            }
                        }
                    }
                ]
            }
        }
    }
}
 

MediaCentral Production Management: location item that acts as an asset reference
 
{
    "base": {
        "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
        "systemType": "interplay-pam",
        "id": "/Projects/ka/test/",
        "type": "folder"
    },
    "common": {
        "creator": "ka",
        "created": "2018-06-27T12:51:21.195Z",
        "modifier": "ka",
        "name": "test",
        "modified": "2018-06-27T12:51:21.195Z"
    },
    "_links": {
        "self": {
            "href": "https://host/…​"
        },
        "loc:collection": {
            "href": "https://host/…​"
        },
        "loc:locations": {
            "href": "https://host/…​"
        },
        "loc:create-folder": {
            "href": "https://host/…​"
        },
        "loc:update-item": {
            "href": "https://host/…​"
        },
        "loc:add-item": {
            "href": "https://host/…​"
        },
        "loc:move-item": {
            "href": "https://host/…​"
        },
        "loc:add-items": {
            "href": "https://host/…​"
        },
        "loc:move-items": {
            "href": "https://host/…​"
        },
        "loc:path-to-root": {
            "href": "https://host/…​"
        },
        "curies": [
            {
                "name": "loc",
                "href": "https://developer.avid.com/ctms/api/loc/linkrels/{rel}.html",
                "templated": true
            },
            {
                "name": "aa",
                "href": "https://developer.avid.com/ctms/api/aa/linkrels/{rel}.html",
                "templated": true
            },
            {
                "name": "pa",
                "href": "https://developer.avid.com/ctms/api/pa/linkrels/{rel}.html",
                "templated": true
            }
        ]
    },
    "_embedded": {
        "loc:collection": {
            "paging": {
                "limit": 25,
                "offset": 0,
                "elements": 2,
                "totalElements": 2
            },
            "_links": {
                "self": {
                    "href": "https://host/…​"
                },
                "first": {
                    "href": "https://host/…​"
                },
                "loc:locations": {
                    "href": "https://host/…​"
                },
                "loc:item": [
                    {
                        "href": "https://host/…​"
                    },
                    {
                        "href": "https://host/…​"
                    }
                ]
            },
            "_embedded": {
                "loc:item": [
                    {
                        "base": {
                            "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
                            "systemType": "interplay-pam",
                            "id": "/Projects/ka/test/060a2b340101010101010f0013-000000-0e293900b3860011-060e2b347f7f-d080",
                            "type": "folder-item"
                        },
                        "common": {
                            "creator": "Administrator",
                            "durationTC": "00:00:20:00",
                            "editRate": "25/1",
                            "created": "2018-05-30T12:41:59.033Z",
                            "modifier": "Administrator",
                            "name": "2",
                            "endTC": "18:54:47:02",
                            "dropframe": false,
                            "modified": "2013-04-10T16:54:49Z",
                            "startTC": "18:54:27:02"
                        },
                        "_links": {
                            "self": {
                                "href": "https://host/…​"
                            },
                            "loc:referenced-object": {
                                "href": "https://host/…​"
                            },
                            "loc:path-to-root": {
                                "href": "https://host/…​"
                            },
                            "loc:thumb": {
                                "href": "https://host/…​"
                            },
                            "loc:update-item": {
                                "href": "https://host/…​"
                            },
                            "loc:locations": {
                                "href": "https://host/…​"
                            }
                        },
                        "_embedded": {
                            "loc:referenced-object": {
                                "base": {
                                    "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
                                    "systemType": "interplay-pam",
                                    "id": "060a2b340101010101010f0013-000000-0e293900b3860011-060e2b347f7f-d080",
                                    "type": "masterclip"
                                },
                                "common": {
                                    "creator": "Administrator",
                                    "durationTC": "00:00:20:00",
                                    "editRate": "25/1",
                                    "created": "2018-05-30T12:41:59.033Z",
                                    "modifier": "Administrator",
                                    "name": "2",
                                    "endTC": "18:54:47:02",
                                    "dropframe": false,
                                    "modified": "2013-04-10T16:54:49Z",
                                    "startTC": "18:54:27:02"
                                },
                                "_links": {
                                    "self": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:asset-by-id": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:assets": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:thumb": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:attributes": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:time-based": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-time-based": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:delete-time-based": {
                                        "href": "https://host/…​"
                                    },
                                    "aa:update-asset": {
                                        "href": "https://host/…​",
                                        "type": "application/hal+json"
                                    },
                                    "loc:referencing-items": {
                                        "href": "https://host/…​"
                                    },
                                    "datamodel:asset-model": {
                                        "href": "https://host/…​"
                                    }
                                }
                            }
                        }
                    },
                    {
                        "base": {
                            "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
                            "systemType": "interplay-pam",
                            "id": "/Projects/ka/test/1/",
                            "type": "folder"
                        },
                        "common": {
                            "creator": "ka",
                            "created": "2018-06-27T12:51:45.382Z",
                            "modifier": "ka",
                            "name": "1",
                            "modified": "2018-06-27T12:51:45.382Z"
                        },
                        "_links": {
                            "self": {
                                "href": "https://host/…​"
                            },
                            "loc:collection": {
                                "href": "https://host/…​"
                            },
                            "loc:locations": {
                                "href": "https://host/…​"
                            },
                            "loc:create-folder": {
                                "href": "https://host/…​"
                            },
                            "loc:update-item": {
                                "href": "https://host/…​"
                            },
                            "loc:add-item": {
                                "href": "https://host/…​"
                            },
                            "loc:move-item": {
                                "href": "https://host/…​"
                            },
                            "loc:add-items": {
                                "href": "https://host/…​"
                            },
                            "loc:move-items": {
                                "href": "https://host/…​"
                            },
                            "loc:path-to-root": {
                                "href": "https://host/…​"
                            }
                        }
                    }
                ]
            }
        }
    }
}
 

MediaCentral Production Management: a folder item
 
{
    "base": {
        "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
        "systemType": "interplay-pam",
        "id": "/Projects/ka/test/060a2b340101010101010f0013-000000-0e293900b3860011-060e2b347f7f-d080",
        "type": "folder-item"
    },
    "common": {
        "creator": "Administrator",
        "durationTC": "00:00:20:00",
        "editRate": "25/1",
        "created": "2018-05-30T12:41:59.033Z",
        "modifier": "Administrator",
        "name": "2",
        "endTC": "18:54:47:02",
        "dropframe": false,
        "modified": "2013-04-10T16:54:49Z",
        "startTC": "18:54:27:02"
    },
    "_links": {
        "self": {
            "href": "https://host/…​"
        },
        "loc:referenced-object": {
            "href": "https://host/…​"
        },
        "loc:path-to-root": {
            "href": "https://host/…​"
        },
        "loc:thumb": {
            "href": "https://host/…​"
        },
        "loc:update-item": {
            "href": "https://host/…​"
        },
        "loc:locations": {
            "href": "https://host/…​"
        },
        "curies": [
            {
                "name": "loc",
                "href": "https://developer.avid.com/ctms/api/loc/linkrels/{rel}.html",
                "templated": true
            },
            {
                "name": "aa",
                "href": "https://developer.avid.com/ctms/api/aa/linkrels/{rel}.html",
                "templated": true
            },
            {
                "name": "pa",
                "href": "https://developer.avid.com/ctms/api/pa/linkrels/{rel}.html",
                "templated": true
            }
        ]
    },
    "_embedded": {
        "loc:referenced-object": {
            "base": {
                "systemID": "ea836abc-105a-11ea-8d71-362b9e155667",
                "systemType": "interplay-pam",
                "id": "060a2b340101010101010f0013-000000-0e293900b3860011-060e2b347f7f-d080",
                "type": "masterclip"
            },
            "common": {
                "creator": "Administrator",
                "durationTC": "00:00:20:00",
                "editRate": "25/1",
                "created": "2018-05-30T12:41:59.033Z",
                "modifier": "Administrator",
                "name": "2",
                "endTC": "18:54:47:02",
                "dropframe": false,
                "modified": "2013-04-10T16:54:49Z",
                "startTC": "18:54:27:02"
            },
            "_links": {
                "self": {
                    "href": "https://host/…​"
                },
                "aa:asset-by-id": {
                    "href": "https://host/…​"
                },
                "aa:assets": {
                    "href": "https://host/…​"
                },
                "aa:thumb": {
                    "href": "https://host/…​"
                },
                "aa:attributes": {
                    "href": "https://host/…​"
                },
                "aa:time-based": {
                    "href": "https://host/…​"
                },
                "aa:update-time-based": {
                    "href": "https://host/…​"
                },
                "aa:delete-time-based": {
                    "href": "https://host/…​"
                },
                "aa:update-asset": {
                    "href": "https://host/…​",
                    "type": "application/hal+json"
                },
                "loc:referencing-items": {
                    "href": "https://host/…​"
                },
                "datamodel:asset-model": {
                    "href": "https://host/…​"
                }
            }
        }
    }
}