Validate a context field
POST <your-unleash-url>/api/admin/context/validate
Authorization
name: Authorizationtype: apiKeyin: header
Check whether the provided data can be used to create a context field. If the data is not valid, ...?
Request
- application/json
Body
required
nameSchema
- name string required
The name of the represented object.
Responses
- 200
This response has no body.
Authorization
name: Authorizationtype: apiKeyin: header
Request
Request
curl / cURL
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
python / requests
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
go / native
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
nodejs / axios
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
ruby / Net::HTTP
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
csharp / RestSharp
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
php / cURL
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
java / OkHttp
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'
powershell / RestMethod
curl -L -X POST '<your-unleash-url>/api/admin/context/validate' \
-H 'Content-Type: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
--data-raw '{
"name": "betaUser"
}'