Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 695 Bytes

File metadata and controls

41 lines (29 loc) · 695 Bytes
description ContentId Search Criterion

ContentId Criterion

The ContentId Search Criterion searches for content by its ID.

Arguments

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

Example

PHP

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

REST API

=== "XML"

```xml
<Query>
    <Filter>
        <ContentIdCriterion>1,52</ContentIdCriterion>
    </Filter>
</Query>
```

=== "JSON"

```json
"Query": {
    "Filter": {
        "ContentIdCriterion": "1,52"
    }
}
```