list_document_enum_options
Retrieve valid enum options for a document field by project, field ID, and document type. Use before updating documents to prevent invalid or ghost values.
Instructions
List valid enum options for a document field of the given document type.
Call before update_document to resolve a status / type /
custom-enum value — Polarion does NOT validate on write (unknown ids
persist as ghosts). Document fields only. Returns the FULL set;
document_type='~' is type-agnostic, and an unknown type silently falls
back to ~, so verify the type id first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | Polarion project ID. | |
| field_id | Yes | Field id (e.g. 'status', 'type', or a custom field id). | |
| document_type | Yes | Document type id (e.g. 'systemReqSpecification'). Pass '~' for type-agnostic options. | |
| page_size | No | ||
| page_number | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| total_count | Yes | ||
| page | Yes | ||
| page_size | Yes | ||
| has_more | No |