Use of /Metadata to Request a List of Selection Fields and Attributes
Describes how to request a list of selection fields and attributes for a particular document type supported in the Operational reporting API for procurement.
In this example, we request fields and attributes for the Task document type. Construct a /metadata query following this model for other document types, substituting the appropriate document type for Task.
{{runtime_url}}/metadata?realm=myRealm&documentType=Task&product=buyer
The query response is returned in JSON format, and it includes a list of all selection attributes, a list of all filter attributes, and the specified document type.
For each returned field, the response specifies its name and data type. For string fields, it includes the maximum length of the string in characters. For fields that accept only specific values, permissible values are specified in the AllowedValues section.