Create a context field

Endpoint that allows creation of custom context fields

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Request

createContextFieldSchema
namestringRequired
The name of the context field.
descriptionstringOptional
A description of the context field
stickinessbooleanOptional

true if this field should be available for use with custom stickiness, otherwise false

sortOrderintegerOptional
How this context field should be sorted if no other sort order is selected
legalValueslist of objectsOptional
A list of allowed values for this context field
projectstringOptional

The project this context field belongs to (if it is project-specific)

Response headers

locationstring or null
The location of the newly created resource.

Response

The resource was successfully created.
namestring
The name of the context field
descriptionstring or null
The description of the context field.
stickinessboolean or null

Does this context field support being used for stickiness calculations

sortOrderinteger or null
Used when sorting a list of context fields. Is also used as a tiebreaker if a list of context fields is sorted alphabetically.
createdAtstring or nullformat: "date-time"
When this context field was created
usedInFeaturesinteger or null>=0
Number of projects where this context field is used in
usedInProjectsinteger or null>=0
Number of projects where this context field is used in
legalValueslist of objects or null
Allowed values for this context field schema. Can be used to narrow down accepted input
projectstring or null

The project this context field belongs to (if it is project-specific)