For more information on using API

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

Create a new Smart Code site

Request Information

URI Parameters

Body Parameters

ApiSmartCodeSiteCreate

Name

Description

Type

Additional information

name

string
domains

string

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 2",
  "domains": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiSmartCodeSiteCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <domains>sample string 3</domains>
  <name>sample string 2</name>
</ApiSmartCodeSiteCreate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiSmartCodeSiteInfo

Name

Description

Type

Additional information

id

integer
unique_id

globally unique identifier
name

string
domains

string

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "unique_id": "6f185796-f4be-4b78-80f8-e34b02673d71",
  "name": "sample string 2",
  "domains": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiSmartCodeSiteInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ActiveTrail.RESTfulApi.Models">
  <domains>sample string 3</domains>
  <name>sample string 2</name>
</ApiSmartCodeSiteInfo>