getFieldsMetadataForTestRecord
Retrieve field definitions, labels, and value types for a specific test record to determine valid keys before writing data.
Instructions
Returns the field definitions that apply to one specific Test Record (one test case execution within a Test Run iteration), keyed by field ID: each field's label and type kind (primitive such as string/date/text/html, list, structure, or enumeration with its enum name), including the custom fields configured for its type. Use it before writing to the Test Record (one test case execution within a Test Run iteration) to learn which field keys and value types are valid. For the project-wide definitions of a resource type without a concrete instance, use getProjectFieldsMetadata; for global defaults, getGlobalFieldsMetadata.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iteration | Yes | The iteration number identifying which repeated occurrence of this item is being addressed (e.g. which run of a test parameter). | |
| 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. | |
| testRunId | Yes | The Test Run's ID within its project. | |
| testCaseId | Yes | The Test Case's ID being referenced. | |
| testCaseProjectId | Yes | The project ID that owns the referenced Test Case — may differ from the project in the request path when the test case is shared from another project. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| links | No |