Skip to content

ObjectStateId Criterion

The ObjectStateId Search Criterion searches for content based on its Object State ID.

Arguments

  • value - int(s) representing the Object State ID(s)

Example

PHP

1
$query->query = new Criterion\ObjectStateId([4, 5]);

REST API

1
2
3
4
5
<Query>
    <Filter>
        <ObjectStateIdCriterion>1</ObjectStateIdCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "ObjectStateIdCriterion": "1"
    }
}