Creates a site on the Basic account (sub-account).

Request Information

Headers

NameDescriptionTypeAdditional information
Authentication

Authentication token

string

Required

URI Parameters

None.

Body Parameters

Site model

Site
NameDescriptionTypeAdditional information
AccountId

Site account id

globally unique identifier

Required

SiteDomainName

Site partial sub-domain (include only the part before the '.', for example: if the full subdomain is abc.yourdomain.mobi, include 'abc')

string

Required

BusinessCategories

Site business categories

Collection of BusinessCategory

None.

PoweredByUrl

Powered by site site footer link url

string

None.

PoweredByText

Powered by site site footer link text

string

None.

SearchTags

Search tags used for Mobile Directory searches (applicable for Mobile Directory only).

string

None.

Request Formats

application/json

Sample:
{
  "AccountId": "073f4072-9870-438d-818b-c7e56eff2601",
  "SiteDomainName": "somedomain",
  "BusinessCategories": [
    {
      "Name": "Audio"
    }
  ],
  "PoweredByUrl": "http://somedomain.com/url",
  "PoweredByText": "Some domain",
  "SearchTags": "Search tags"
}

Response Information

Resource Description

NameDescriptionTypeAdditional information
Data

Site

None.

Success

boolean

None.

Messages

Collection of ErrorMessage

None.

Response Formats

application/json

Sample:
{
  "Data": {
    "Id": 31385,
    "AccountId": "073f4072-9870-438d-818b-c7e56eff2601",
    "SiteDomainName": "somedomain",
    "SiteFullDomainName": "somedomain.inapp.mobi",
    "ExternalDomainNames": [],
    "Created": "2014-04-01T12:13:19.903",
    "BusinessCategories": [
      {
        "Id": 1,
        "Name": "Audio"
      }
    ],
    "PoweredByUrl": "http://somedomain.com/url",
    "PoweredByText": "Some domain",
    "SearchTags": "Search tags"
  },
  "Success": true,
  "Messages": []
}