Add a new deal field

POST {{baseUrl}}/dealFields

Adds a new deal field. For more information, see the tutorial for adding a new custom field.

Request Body

{"field_type"=>"<string>", "name"=>"<string>", "options"=>["<object>", "<object>"], "add_visible_flag"=>true}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:2,&quot;key&quot;:&quot;9dc80c50d78a15643bfc4ca79d76156a73a1ca0e&quot;,&quot;name&quot;:&quot;Customer Type&quot;,&quot;order_nr&quot;:1,&quot;field_type&quot;:&quot;enum&quot;,&quot;add_time&quot;:&quot;2019-02-04 13:58:03&quot;,&quot;update_time&quot;:&quot;2019-02-04 13:58:03&quot;,&quot;last_updated_by_user_id&quot;:1,&quot;created_by_user_id&quot;:1,&quot;active_flag&quot;:true,&quot;edit_flag&quot;:true,&quot;index_visible_flag&quot;:true,&quot;details_visible_flag&quot;:true,&quot;add_visible_flag&quot;:false,&quot;important_flag&quot;:false,&quot;bulk_edit_allowed&quot;:true,&quot;searchable_flag&quot;:false,&quot;filtering_allowed&quot;:true,&quot;sortable_flag&quot;:true,&quot;options&quot;:[{&quot;id&quot;:190,&quot;label&quot;:&quot;Private person&quot;},{&quot;id&quot;:191,&quot;label&quot;:&quot;Company&quot;},{&quot;id&quot;:192,&quot;label&quot;:&quot;Government&quot;}],&quot;mandatory_flag&quot;:true}}