For more information on using API

PUT https://webapi.mymarketing.co.il/api/groups/{id}

Update a given group

Request Information

URI Parameters

Name

Description

Type

Additional information

id

Group id. Can be found using the endpoint "Get account's groups" or in the UI (go to Contacts->Groups->click on the group's name -> you'll find the id int the URL)

integer

Required

Body Parameters

UpdateGroupContainer

Name

Description

Type

Additional information

name

Name of the group

string
active_counter

Number of active contacts in the group

integer
counter

Total contacts in the group

integer
created

Date of creation of the group

date
last_generated

Dynamic group only- the last time it generated contacts according to the group conditions

date

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 2",
  "active_counter": 3,
  "counter": 4,
  "created": "2016-12-24T14:12:12",
  "last_generated": "2016-12-24T14:12:12"
}

application/xml, text/xml

Sample:
<UpdateGroupContainer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <active_counter>3</active_counter>
  <counter>4</counter>
  <created>2016-12-24T14:12:12</created>
  <last_generated>2016-12-24T14:12:12</last_generated>
  <name>sample string 2</name>
</UpdateGroupContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.