Search qualification parameter used to find teams within the system.
-
q=name =* "HR"
Returns all teams in the system have a full name starting with "HR" (ie "HR", "HR::Benefits", "HR::Benefits::Administrators", and "HR-IT")
-
q=name =* "HR::"
Returns all teams in the system that are decendents of the HR team (ie "HR::Benefits" and "HR::Benefits::Administrators")
-
q=parentName = "HR"
Returns all teams in the system with a parent team of HR (ie "HR::Benefits").
-
q=attributes[Assignable] = "True" AND name =* "HR::"
Returns all teams in the system with that are a decendant of HR and how have an "Assignable" attribute value of "True"
-
BETWEEN
left side is between two values - first value is inclusive, second value is exclusive
-
IN
left side is equal to one of provided items
-
=
equal
-
=*
starts with
-
>
greater than
-
>=
greater than or equal
-
<
less than
-
<=
less than or equal
-
AND
Returns boolean true if and only if both expressions are true
-
OR
Returns boolean true if at least one expression is true
-
createdAt (The ISO 8601 time that when the team was created)
Example: q=createdAt BETWEEN ("2018-04-16T18:42:56.000Z","2019-04-16T18:42:56.000Z")
-
localName (Local name of the team)
Example: q=localName="Employees"
-
name (Name of the team)
Example: q=name="HR::Employees"
-
updatedAt (The ISO 8601 time that when the team was last updated)
Example: q=updatedAt >= "2018-04-16T18:42:56.000Z"
-
parentName (The parent name of the team)
Example: q=parentName="HR"
-
attributes[Attribute Name] (Attribute Value of a team)
Example: q=attributes[Icon]="fa-fork"
Properties can be combined to create subexpressions within a query qualification, however some limits are enforced to ensure a stable and performant system.
-
The parentName property can only be combined with other subexpressions using the AND operator.
-
Examples of valid queries using the parentName property
q=parentName="HR" AND ...
-
Examples of invalid queries using the parentName property
q=parentName="HR" OR ...
-
Only one attributes[] property can be used within a search qualification
-
Examples of valid queries using Attributes
q=parentName="HR" AND attributes[FOO] = "Bar"
-
Examples of invalid queries using Attributes
q=parentName="HR" AND attributes[FOO] = "Bar" AND attribute[BAZ] = "Bang"
-
When combining the createdAt, localName, name, or updatedAt properties with the OR operator, the subexpressions must be surrounded with parentheses (). If the subexpressions can not be completed efficiently, an error message will be returned that includes information on how to structure a more efficient query.
-
Examples of valid queries using the =* (starts with), <, <=, >, >=, and BETWEEN operators
q=enabled="true" AND (name =* "employees" OR localName =*employees)
q=attributes[Manager]="mary.manager" AND (name =* "employees" OR localName =*employees)
-
Examples of invalid queries using the =* (starts with), <, <=, >, >=, and BETWEEN operators
q=attributes[Manager]="mary.manager" AND name =* "employees" OR localName =*employees
The system will paginate search results based on the limit parameter. If there are more results than the limit parameter (or more than 1000 results if the limit parameter is not provided), a nextPageToken will be included in the response. The nextPageToken value can be passed as the pageToken parameter in subsequent queries to obtain the next page of results.
DEPRECATION NOTICE: Pagination functionality was introduced in version 2.4. In order to provide backwards compatibility with previous versions, if you provide the limit parameter, results will be paginated. If you don't provide the limit parameter, the full result will be returned. The ability to return the full result set will be deprecated in a later version in favor of a paginated set of results.
Example Response with a next page token:
{
"teams": [{...}, {...}],
"nextPageToken": "YWJib3R0LmRldmFuQHRoaWVsLm9yZw.4wg2me95blthjyzdvkfs56oc3"
}