Skip to main content
Version: Early Access

Retrieve metadata for a specific operation

This topic explains how to retrieve metadata for a specific operation.

Query

The following is the general structure of a Meta API query will retrieve metadata for a specific operation:

            <Server Base URI>/meta.v1/{asset type}/{operation}

The following Meta API query will retrieve metadata for the Delete operation of the Story asset type:

            <Server Base URI>/meta.v1/Story/Delete

Results

            <Operation href="/VersionOne/meta.v1/Story/Delete" of="/VersionOne/meta.v1/Story" version="14.2.6.6082" name="Delete">
<Validator href="/VersionOne/meta.v1/Story/IsDeletable" tokenref="Story.IsDeletable"/>
</Operation>

The root element is calledOperation. It contains anofattribute which indicates the URL of the asset type that the attribute belongs to.

The operation may contain a sub element calledValidatorwhich is a reference to an attribute definition. A validator is the name of an attribute that can be asked for on an asset to determine whether the operation is valid for the asset.

So for example, you can query a Story asset with ID 1000 for theIsDeletableattribute to determine whether you can call the Delete operation on the asset.