See “Bulk & async processing” for more information.
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}
Authenticate API requests via an OAuth token
Creates the custom_fields synchronously when 100 or less custom fields are requested
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}
See “Bulk & async processing” for more information.
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}
Authenticate API requests via an OAuth token
Creates the custom_fields synchronously when 100 or less custom fields are requested
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.kit.com/v4/bulk/custom_fields \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"custom_fields": [
{
"label": "Test Custom Field 0"
},
{
"label": "Test Custom Field 1"
},
{
"label": "Test Custom Field 2"
},
{
"label": "Test Custom Field 3"
}
],
"callback_url": null
}'
{
"custom_fields": [
{
"id": 1398,
"label": "Existing Custom Field",
"key": "existing_custom_field",
"name": "ck_field_1398_existing_custom_field",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1400,
"label": "Interests",
"key": "interests",
"name": "ck_field_1400_interests",
"created_at": "2023-02-17T11:43:55Z"
},
{
"id": 1399,
"label": "Last name",
"key": "last_name",
"name": "ck_field_1399_last_name",
"created_at": "2023-02-17T11:43:55Z"
}
],
"failures": []
}