For more information on using API

POST http://webapi.mymarketing.co.il/api/groups

Create and return a new Group.

Request Information

URI Parameters

Body Parameters

PostGroupContainer

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:
<PostGroupContainer xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Name>sample string 2</Name>
  <ActiveCounter>3</ActiveCounter>
  <Counter>4</Counter>
  <Created>2016-12-24T14:12:12</Created>
  <LastGenerated>2016-12-24T14:12:12</LastGenerated>
</PostGroupContainer>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GroupContainerinfo

Name

Description

Type

Additional information

id

id

integer
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

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "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:
<GroupContainerinfo xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Name>sample string 2</Name>
  <ActiveCounter>3</ActiveCounter>
  <Counter>4</Counter>
  <Created>2016-12-24T14:12:12</Created>
  <LastGenerated>2016-12-24T14:12:12</LastGenerated>
</GroupContainerinfo>