Create a custom field
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"position": 0,
"permission": "1,2,3",
"is_active": true,
"object": "customer",
"can_customer_view": true,
"field_widget_id": 1,
"settings": {
"field_instance_id": 1,
"allowed_values": [
"value_1",
"value_2"
],
"default_value": "value_1"
}
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields"
payload = {
"name": "some string",
"position": 0,
"permission": "1,2,3",
"is_active": True,
"object": "customer",
"can_customer_view": True,
"field_widget_id": 1,
"settings": {
"field_instance_id": 1,
"allowed_values": ["value_1", "value_2"],
"default_value": "value_1"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
position: 0,
permission: '1,2,3',
is_active: true,
object: 'customer',
can_customer_view: true,
field_widget_id: 1,
settings: {
field_instance_id: 1,
allowed_values: ['value_1', 'value_2'],
default_value: 'value_1'
}
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Custom Fields
Create a custom field
POST
/
custom-fields
Create a custom field
curl --request POST \
--url https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "some string",
"position": 0,
"permission": "1,2,3",
"is_active": true,
"object": "customer",
"can_customer_view": true,
"field_widget_id": 1,
"settings": {
"field_instance_id": 1,
"allowed_values": [
"value_1",
"value_2"
],
"default_value": "value_1"
}
}
'import requests
url = "https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields"
payload = {
"name": "some string",
"position": 0,
"permission": "1,2,3",
"is_active": True,
"object": "customer",
"can_customer_view": True,
"field_widget_id": 1,
"settings": {
"field_instance_id": 1,
"allowed_values": ["value_1", "value_2"],
"default_value": "value_1"
}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'some string',
position: 0,
permission: '1,2,3',
is_active: true,
object: 'customer',
can_customer_view: true,
field_widget_id: 1,
settings: {
field_instance_id: 1,
allowed_values: ['value_1', 'value_2'],
default_value: 'value_1'
}
})
};
fetch('https://ywe3crmpll.execute-api.us-east-2.amazonaws.com/stage/custom-fields', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": true,
"errors": [
"error message",
"error message"
]
}{
"message": "Unauthorized"
}{
"message": "Request URL not found"
}{
"message": "Internal Server Error"
}Authorizations
Body
application/json
The body is of type object.
Response
Successful response
Related topics
Custom Fields on Customer RecordsCustom Fields on Material ListsCustom Fields on Project RecordsCustom Fields on Job RecordsItem Custom FieldsWas this page helpful?
⌘I