Updating a Group

Using the PUT method, you can update the settings for an existing Group.

PUT https://edgeapi.marchex.io/marketingedge/v5/api/groups/{group_id}

The following sample request can be used to create a Group:

curl -H "x-organization-token: {authorization_token}" \
      -H "subscription-key: {subscription_key}" \
	    -X PUT \
     	"https://edgeapi.marchex.io/marketingedge/v5/api/groups/11623258" \
     	-d '{
    		"name": "123 Company",
    		"time_zone_id": "Hawaii",
    		"rich_data_type": "Rich",
    		"dni_type": "None",
    		"billing_group_id": 4062,
    			"status": "active",
    	}'

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

{
    "id": 11623258,
    "name": "123 Company",
    "time_zone_id": "Hawaii",
    "rich_data_type": "Rich",
    "dni_type": "None",
    "group_type_id": 1935,
    "billing_group_id": 4062,
    "tracking_javascript": "<script type=\"text/javascript\" src=\"#{dni-api-url}/sdk?identifier=5eb049ef-7d0d-49d2-a8f5-5eaaa8da1625\" async></script>",
    "status": "active",
    "created_datetime": "2018-04-06T16:03:01.947",
    "modified_datetime": "2018-04-11T17:56:56.3363005Z"
}