segments
GET
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields Declared custom fields (merge fields) with type, default and display order
Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"key": "string",
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": null,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [],
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredkeystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredhiddenbooleanrequireddefaultValuerequireduniquebooleanrequiredselfServebooleanrequiredprecisionintegerrequiredchoicesstring[]requiredpositionintegerrequiredgroupKeystringrequiredlistIdsstring[]requiredcreatedAtstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields Request body
application/json
keystringrequiredlabelstringrequiredtypestringrequiredbooleanhiddenbooleandefaultValueuniquebooleanselfServebooleanprecisionintegerchoicesstring[]positionintegergroupKeystringlistIdsstring[]{
"key": "string",
"label": "string",
"type": "text",
"required": false,
"hidden": false,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": 0,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"key":"string","label":"string","type":"text","required":false,"hidden":false,"defaultValue":{},"unique":false,"selfServe":false,"precision":0,"choices":["string"],"position":0,"groupKey":"string","listIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"key": "string",
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": null,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [],
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredkeystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredhiddenbooleanrequireddefaultValuerequireduniquebooleanrequiredselfServebooleanrequiredprecisionintegerrequiredchoicesstring[]requiredpositionintegerrequiredgroupKeystringrequiredlistIdsstring[]requiredcreatedAtstringrequiredPOST
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields/batch create | read (by key) | update | archive up to 50 fields in one transaction
Request body
application/json
Example
{
"op": "create",
"items": [
{
"key": "string",
"label": "string",
"type": "text",
"required": false,
"hidden": false,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": 0,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [
"string"
]
}
]
}Option 1
opstringrequireditemsobject[]requiredShow child parameters
keystringrequiredlabelstringrequiredtypestringrequiredbooleanhiddenbooleandefaultValueuniquebooleanselfServebooleanprecisionintegerchoicesstring[]positionintegergroupKeystringlistIdsstring[]{
"op": "create",
"items": [
{
"key": "string",
"label": "string",
"type": "text",
"required": false,
"hidden": false,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": 0,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [
"string"
]
}
]
}Option 2
opstringrequiredkeysstring[]required{
"op": "read",
"keys": [
"string"
]
}Option 3
opstringrequireditemsobject[]requiredShow child parameters
keystringrequiredpatchobjectrequiredShow child parameters
labelstringtypestringrequiredbooleanhiddenbooleandefaultValueuniquebooleanselfServebooleanprecisionintegerchoicesstring[]positionintegergroupKeystringlistIdsstring[]{
"op": "update",
"items": [
{
"key": "string",
"patch": {
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": true,
"selfServe": true,
"precision": 0,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [
"string"
]
}
}
]
}Option 4
opstringrequiredkeysstring[]required{
"op": "archive",
"keys": [
"string"
]
}Code samples
cURL
curl -X POST "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields/batch" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"op":"create","items":[{"key":"string","label":"string","type":"text","required":false,"hidden":false,"defaultValue":{},"unique":false,"selfServe":false,"precision":0,"choices":["string"],"position":0,"groupKey":"string","listIds":["string"]}]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"key": "string",
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": false,
"selfServe": false,
"precision": null,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [],
"createdAt": "2024-01-01T00:00:00Z"
}
],
"archived": 0,
"missing": [
"string"
]
}Schema
itemsobject[]requiredShow child parameters
idstringrequiredkeystringrequiredlabelstringrequiredtypestringrequiredrequiredbooleanrequiredhiddenbooleanrequireddefaultValuerequireduniquebooleanrequiredselfServebooleanrequiredprecisionintegerrequiredchoicesstring[]requiredpositionintegerrequiredgroupKeystringrequiredlistIdsstring[]requiredcreatedAtstringrequiredarchivedintegerrequiredmissingstring[]GET
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields/{key} Parameters
keystringpathrequiredCode samples
cURL
curl -X GET "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields/{key}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields/{key} Parameters
keystringpathrequiredCode samples
cURL
curl -X DELETE "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields/{key}" \
-H "Authorization: Bearer $SSLIP_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermetica.15.204.158.166.sslip.io /v1/attributes/fields/{key} Parameters
keystringpathrequiredRequest body
application/json
labelstringtypestringrequiredbooleanhiddenbooleandefaultValueuniquebooleanselfServebooleanprecisionintegerchoicesstring[]positionintegergroupKeystringlistIdsstring[]{
"label": "string",
"type": "text",
"required": true,
"hidden": true,
"defaultValue": {},
"unique": true,
"selfServe": true,
"precision": 0,
"choices": [
"string"
],
"position": 0,
"groupKey": "string",
"listIds": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermetica.15.204.158.166.sslip.io/v1/attributes/fields/{key}" \
-H "Authorization: Bearer $SSLIP_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"string","type":"text","required":true,"hidden":true,"defaultValue":{},"unique":true,"selfServe":true,"precision":0,"choices":["string"],"position":0,"groupKey":"string","listIds":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated