custom-fields
GET
https://lucida.15-204-158-166.sslip.io /v1/orgs/{org_id}/custom-fields Parameters
org_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/custom-fields"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"data": [
{
"applies_to": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"id": "string",
"key": "string",
"kind": "string",
"label": "string",
"options": [
"string"
],
"position": 0,
"required": true,
"updated_at": "2024-01-01T00:00:00Z"
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
applies_tostring[]requiredObject types the field shows on:
experiment, flag, dashboard.created_atstringrequireddescriptionstringrequiredidstringrequiredkeystringrequiredkindstringrequiredtext | number | boolean | select | multi_select | date | url | user.labelstringrequiredoptionsstring[]requiredselect / multi_select choices.positionintegerrequiredrequiredbooleanrequiredupdated_atstringrequirednext_cursorstring404
POST
https://lucida.15-204-158-166.sslip.io /v1/orgs/{org_id}/custom-fields Parameters
org_idstringpathrequiredRequest body
application/json
applies_tostring[]Subset of
experiment, flag, dashboard (default all three).descriptionstringkeystringrequired1-64 chars of a-z 0-9 _; fixed after creation.
kindstringrequiredtext | number | boolean | select | multi_select | date | url | user; fixed after creation.labelstringrequiredoptionsstring[]Choices of
select / multi_select (1-100 unique strings).positionintegerrequiredboolean{
"applies_to": [
"string"
],
"description": "string",
"key": "string",
"kind": "string",
"label": "string",
"options": [
"string"
],
"position": 0,
"required": true
}Code samples
cURL
curl -X POST "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/custom-fields" \
-H "Content-Type: application/json" \
-d '{"applies_to":["string"],"description":"string","key":"string","kind":"string","label":"string","options":["string"],"position":0,"required":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201
Example
{
"applies_to": [
"string"
],
"created_at": "2024-01-01T00:00:00Z",
"description": "string",
"id": "string",
"key": "string",
"kind": "string",
"label": "string",
"options": [
"string"
],
"position": 0,
"required": true,
"updated_at": "2024-01-01T00:00:00Z"
}Schema
applies_tostring[]requiredObject types the field shows on:
experiment, flag, dashboard.created_atstringrequireddescriptionstringrequiredidstringrequiredkeystringrequiredkindstringrequiredtext | number | boolean | select | multi_select | date | url | user.labelstringrequiredoptionsstring[]requiredselect / multi_select choices.positionintegerrequiredrequiredbooleanrequiredupdated_atstringrequired400
403
404
409
PUT
https://lucida.15-204-158-166.sslip.io /v1/orgs/{org_id}/custom-fields/{id} Parameters
org_idstringpathrequiredidstringpathrequiredRequest body
application/json
applies_tostring[]Subset of
experiment, flag, dashboard (default all three).descriptionstringkeystringrequired1-64 chars of a-z 0-9 _; fixed after creation.
kindstringrequiredtext | number | boolean | select | multi_select | date | url | user; fixed after creation.labelstringrequiredoptionsstring[]Choices of
select / multi_select (1-100 unique strings).positionintegerrequiredboolean{
"applies_to": [
"string"
],
"description": "string",
"key": "string",
"kind": "string",
"label": "string",
"options": [
"string"
],
"position": 0,
"required": true
}Code samples
cURL
curl -X PUT "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/custom-fields/{id}" \
-H "Content-Type: application/json" \
-d '{"applies_to":["string"],"description":"string","key":"string","kind":"string","label":"string","options":["string"],"position":0,"required":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
400 Bad field, or key / kind changed
403
404
DELETE
https://lucida.15-204-158-166.sslip.io /v1/orgs/{org_id}/custom-fields/{id} Parameters
org_idstringpathrequiredidstringpathrequiredCode samples
cURL
curl -X DELETE "https://lucida.15-204-158-166.sslip.io/v1/orgs/{org_id}/custom-fields/{id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
204
403
404
GET
https://lucida.15-204-158-166.sslip.io /v1/projects/{project_id}/custom-fields Parameters
project_idstringpathrequiredobject_typestringqueryexperiment, flag or dashboard
Code samples
cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/custom-fields"TypeScript
Python
Go
PHP
Ruby
Java
Responses
404
GET
https://lucida.15-204-158-166.sslip.io /v1/projects/{project_id}/custom-fields/{object_type} Parameters
project_idstringpathrequiredobject_typestringpathrequiredfieldstringqueryvaluestringqueryCode samples
cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/custom-fields/{object_type}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Values of every object of the type (list columns and filters)
Example
{
"data": [
{
"object_id": "string",
"values": {}
}
],
"next_cursor": "string"
}Schema
dataobject[]requiredShow child parameters
object_idstringrequiredvaluesobjectrequirednext_cursorstring404
GET
https://lucida.15-204-158-166.sslip.io /v1/projects/{project_id}/custom-fields/{object_type}/{object_id} Parameters
project_idstringpathrequiredobject_typestringpathrequiredobject_idstringpathrequiredCode samples
cURL
curl -X GET "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/custom-fields/{object_type}/{object_id}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200
Example
{
"missing_required": [
"string"
],
"values": {}
}Schema
missing_requiredstring[]requiredLabels of required fields still empty.
valuesobjectrequired404
PUT
https://lucida.15-204-158-166.sslip.io /v1/projects/{project_id}/custom-fields/{object_type}/{object_id} Parameters
project_idstringpathrequiredobject_typestringpathrequiredobject_idstringpathrequiredRequest body
application/json
{field key: value}; null clears
{}Code samples
cURL
curl -X PUT "https://lucida.15-204-158-166.sslip.io/v1/projects/{project_id}/custom-fields/{object_type}/{object_id}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
400 Unknown field, wrong type or a required field left empty
403
404
Updated