Archive or unarchive a select option

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Archives or unarchives a single-select option on a custom field. This endpoint is idempotent: archiving an already-archived option (or unarchiving an already-active option) succeeds without making any changes and returns the option's current state.

Unarchiving is rejected if another active option for the same field already has the same value. Letter casing is ignored when comparing options.

Path Params
string
required

The unique ID of the custom field the option belongs to.

string
required

The unique ID of the select option to archive or unarchive.

string
enum
required

The action to perform. Must be 'archive' or 'unarchive'.

Allowed:
Headers
string
required

Your Perk API key, using the format 'ApiKey <your_api_key>'

string
required

The API version for this request. Must be '1'.

Responses

401

Returns '401 Unauthorized' when the Authorization header is missing or the API key is invalid. This response has no body.

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json