Get dictionary terms by value

POST https://{{host}}/nuxeo/site/automation/Directory.ReadEntries/

Get terms of a dictionary.

Permissions

The user will only be able to get the terms from the dictionaries of their teams.

Mandatory data

This web service requires at least:

  • "params" -> "directoryName"

  • "params" -> "entries"

Params

directoryName

Name of the dictionary of the terms. Property name of the dictionary.

entries

List of values of the terms to be obtained, defined as follows:

[{ "id": "<term_value1>" }, {"id": "<term_value2"}, ...]

Where term_value1 and term_value2 are the values of two differents terms of the dictionary.

Request Body

{"params"=>{"directoryName"=>"dictionary1", "entries"=>[{"id"=>"value1"}, {"id"=>"value2"}]}}

RESPONSES

status: OK

[{&quot;id&quot;:&quot;Term 2&quot;,&quot;label&quot;:&quot;Term 2&quot;},{&quot;id&quot;:&quot;Term 1&quot;,&quot;label&quot;:&quot;Term 1&quot;}]