Creating a Group

Using the POST method with the Groups endpoint will create a new Group

POST https://edgeapi.marchex.io/marketingedge/v5/api/groups

The following sample request can be used to create a Group

curl -H "x-organization-token: {authorization_token}" \
      -H "subscription-key: {subscription_key}" \
      -X POST \
      "https://edgeapi.marchex.io/marketingedge/v5/api/groups" \
      -d '{
    		"name": "ABC Company",
    		"time_zone_id": "Central",
    		"group_owner_id": 1235,
    		"billing_group_id": 4455,
    		"rich_data_type": "Basic",
    		"dni_type": "None"
    	}'

If the request is handled successfully, the following response will be returned:

{
    "id": 11623277,
    "name": "ABC Company",
    "time_zone_id": "Central",
    "group_owner_id": 1235,
    "rich_data_type": "Basic",
    "dni_type": "None",
    "group_type_id": 1935,
    "billing_group_id": 4455,
    "tracking_javascript": "<script type=\"text/javascript\" src=\"#{dni-api-url}/sdk?identifier=24efb488-2675-41dd-8ad3-95233754290b\" async></script>",
    "status": "active",
    "created_datetime": "2018-04-11T17:03:06.3506886Z",
    "modified_datetime": "2018-04-11T17:03:06.3506886Z"
}