getAvailableEnumOptionsForDocumentType
Retrieve valid enumeration options for a field on a Document type to choose correct values before creating documents. Use for status, severity, or custom enum fields.
Instructions
Returns the enumeration options that may be set on one field for a Document type (e.g. type=req_specification), before any concrete Document exists. fieldId must be an enumeration-typed field (e.g. status, severity, or a custom enum field). Pass type=~ for options that apply regardless of type. Call it before postDocuments to choose valid values; for an existing Document use getAvailableEnumOptionsForDocument.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | The Type of the object. Use '~' without quotes to represent no target Type. | |
| fieldId | Yes | The ID of an enumeration-typed field (e.g. `status`, `severity`, `priority`, or a custom enum field ID), not its display label. Use the matching getFieldsMetadataFor* tool to discover field IDs. | |
| projectId | Yes | The Polarion project ID (its URL segment, e.g. `myproject`), case-sensitive. Required to scope the request to one project; call getProjects to list valid IDs. | |
| page_size_ | No | Maximum number of items to return in this page (e.g. `100`). Use together with `page[number]` to paginate through a large result set. | |
| page_number_ | No | 1-based page number to fetch when the result set is paginated (e.g. `2` for the second page). Combine with `page[size]`; omit to fetch the first page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| meta | No | ||
| links | No |