Skip to content

ContentId Criterion

The ContentId Search Criterion searches for content by its ID.

Arguments

  • value - int(s) representing the Content ID(s)

Example

PHP

1
$query->query = new Criterion\ContentId([62, 64]);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <ContentIdCriterion>[69, 72]</ContentIdCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "ContentIdCriterion": [69, 72]
    }
}