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"
    }
}