List the expressions of a condition

Returns the expressions of a condition of a style rule.

Required role: ORG_VIEWER, and the current user must have the VIEW permission on the project.

Locale (locale)

Without locale, the attribute titles are objects by locale. With locale (en, fr, es), each title is a single string in that locale, or in the project's default language when it has no text in that locale. A code that isn't a known language returns 400.

What an expression is

An expression belongs to a condition of a style rule. It compares an attribute of the layer with a value; a feature matches the condition when all its expressions match. A condition without expressions matches every feature.

FieldContent
attributeThe layer attribute compared (in the responses; attributeName in the requests)
operatorEQUALS, NOT_EQUALS, IS_NULL, IS_NOT_NULL (any type), GREATER_THAN, LOWER_THAN, GREATER_OR_EQUALS_TO, LOWER_OR_EQUALS_TO (numbers, dates and times), EMPTY, NOT_EMPTY (text)
valueThe value compared, converted to the attribute's type. null is allowed only with EQUALS, NOT_EQUALS, IS_NULL and IS_NOT_NULL

The order of the expressions isn't significant. The attributes they use are marked as bound on the layer (bound in its attributes).

A referenced layer uses the style rules of its source layer: style-rule must then be a rule of the source layer. Expressions can be listed on a reference, but can't be created, changed or deleted there (400).

Organization

organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the project

uuid
required

Id of the layer (a layer of the project)

uuid
required

Id of the style rule (a rule of the layer)

uuid
required

Id of the condition (a condition of the style rule)

Query Params
string

Language of the attribute titles, such as en, fr or es. Without it, titles are returned for all locales.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json