ComponentsParam Field
Components

Param Field

Reference for documenting API parameters with location badges, types, and status indicators.

Basic syntax

Use the <ParamField> component to document API parameters with their location, type, and requirements.

<ParamField path="id" param-type="string" required="true">
  Unique identifier for the resource.
</ParamField>
path
idstring
Required

Unique identifier for the resource.

Hide location badge

Use showLocation="false" to hide the location badge:

<ParamField query="token" param-type="string" showLocation="false" required="true">
  Authentication token without location badge.
</ParamField>
tokenstring
Required

Authentication token without location badge.

Attributes

pathstring

Parameter name for URL path parameters.

querystring

Parameter name for query string parameters.

headerstring

Parameter name for HTTP headers.

bodystring

Parameter name for request body fields.

param-typestring

Data type: string, integer, boolean, object, array, etc.

requiredstring

Set to "true" for required parameters (default: "false").

deprecatedstring

Set to "true" to mark as deprecated (default: "false").

showLocationstring

Set to "false" to hide the location badge (default: "true").

Use exactly one location attribute (path, query, header, or body) per ParamField.