POST method to create contacts custom fields.
Name | Description |
---|---|
account_id required | Your account unique identifier to access API. |
name required | Name for the field. |
label required | Human friendly label for the field. |
description | Description for the custom field. |
category | Category for the custom field. |
type | Custom field type [ boolean, date, number, string, selectable_options]. By default is: string |
selectable_options | Array with strings, only if the type is selectable_options |
POST
/v2/account/:account_id/custom_fields
Accept: application/json
Authorization: Token token={account.secret}
Content-Type: json
{
"name": "facebook_id",
"label": "ID on Facebook",
"category": "Social",
"description": "This field save the contact facebook id",
"type": "string"
}
201
{
"_id": "5853d8c2edb7aacab9000045",
"category": "Social",
"name": "facebook_id",
"label": "ID on Facebook",
"description": "This field save the contact facebook id",
"type": "string"
}