This page defines common query parameters that can be used when querying loc:item resources.
For all items
attributes
A comma separated list of system-specific attribute names. If comma (',') is part of an attribute name, it must be escaped with a backslash. For example, the attribute "escape,me" must be passed as "escape\,me".
The response may contain a property attributes with the requested attributes. The format is the same as in the aa:attributes resource. Example:
{
"base": { ... },
"common": { ... },
"attributes": [
{
"name": "comment",
"value": "A comment"
}
]
}
For more information on the response, see loc:item.
MediaCentral | Asset Management
-
loc:item resources don’t have custom attributes, but you can use the query parameter to get asset attributes as embedded aa:attributes resources in the loc:referenced-object resources.
-
attributes is transitive: If a list of attributes was applied on a folder request, the links to further folders contained in the response will also have this attribute list in their URLs.
-
Attribute names are handled in a case-insensitive manner.
MediaCentral | Production Management
-
For a folder: the attributes of the folder are returned in the property attributes of the loc:item resource for the folder.
-
For an asset reference: the attributes of the asset are returned as embedded aa:attributes of the embedded loc:referenced-object resource.
-
The special value "*" (?attributes=*) requests all attributes.
-
Attribute names are handled in a case-insensitive manner.
embed
A comma separated list of resources to be embedded into the resulting resource
-
MediaCentral Asset Management:
-
thumb: embeds aa:thumb resources
-
path-to-root: embeds loc:path-to-root resources
-
path: must be used together with path-to-root; embeds the loc:path link rels that reference the folders into the returned loc:path-to-root resources
-
-
MediaCentral Production Management:
-
thumb: embeds aa:thumb resources
-
path: embeds loc:path link rels
-
attributes: embeds aa:attributes resources for assets in the folder (in embedded loc:item resources, then in embedded loc:referenced-object resource).
Deprecated: embed=attributes for a loc:item that represents a folder currently also returns the property attributes with user attributes and some system attributes. This is deprecated and will be removed in a future version.
-
lang
Specifies the language or locale for localizable information, if supported. The value must be a must be a valid IETF BCP 47 language tag.
-
If missing, only "en" labels and tooltips will be in the result.
-
If, for the specified language tag, no labels and tooltips could be found, only "en" labels and tooltips will be in the result. This behavior will be changed
MediaCentral Asset Management: Localisation is applied for legallist and thesaurus attributes.
multivaluemode
Specifies how multi-value attributes are returned:
-
If missing or empty, no multi-value attributes are returned
-
attributes: Return all rows of multi-value attributes in the embedded aa:attributes resource of loc:referenced-object
-
multi-value-attribute: Return all rows of multi-value attributes as embedded aa:multi-value-attribute resources of loc:referenced-object
-
multi-value-attribute-range: Return a limited number of rows for multi-value attributes as embedded aa:multi-value-attribute-range resources of loc:referenced-object, including paging
For folders
offset, limit, sort, filter
The query parameters offset, limit, sort, and filter are used to define which items are returned in the embedded loc:collection resource for the folder. See Query parameters for collection for details.