POST api/website

Request Information

URI Parameters

None.

Body Parameters

m_website
NameDescriptionTypeAdditional information
name

string

Required

String length: inclusive between 0 and 100

company

string

String length: inclusive between 0 and 250

number_of_accounts

integer

None.

logo

string

Required

status

string

Required

String length: inclusive between 0 and 20

addresses

Collection of m_website_address

None.

Request Formats

application/json, text/json

Sample:
{
  "name": "sample string 1",
  "company": "sample string 2",
  "number_of_accounts": 3,
  "logo": "sample string 4",
  "status": "sample string 5",
  "addresses": [
    {
      "ip_address": "sample string 1"
    },
    {
      "ip_address": "sample string 1"
    }
  ]
}

application/xml, text/xml

Sample:
<m_website xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Project.Features.Models">
  <addresses>
    <m_website_address>
      <ip_address>sample string 1</ip_address>
    </m_website_address>
    <m_website_address>
      <ip_address>sample string 1</ip_address>
    </m_website_address>
  </addresses>
  <company>sample string 2</company>
  <logo>sample string 4</logo>
  <name>sample string 1</name>
  <number_of_accounts>3</number_of_accounts>
  <status>sample string 5</status>
</m_website>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.