Mailrelay API Reference

Add a new custom field

POST /custom_fields

Add a new custom field

Parameters

NameTypeDescription
label string Label
tag_name string Tag name
field_type string Field type
required boolean Required
default_value string Default value
custom_field_options_attributes array An array of custom field options. This is required if the field type is select, select_multiple or radio_buttons.

Responses

StatusDescription
201 Success
400 The request is invalid. Check if the field names in the request and the request data is valid.
422 A validation error occurred. Check the response body for more information.
401 The API key wasn't sent or is invalid
500 An internal error happened. Try again later.