POST api/sitecustomerapi/add?siteId={siteId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
siteId

globally unique identifier

None.

Body Parameters

SiteCustomerViewModel
NameDescriptionTypeAdditional information
active

boolean

Required

code

integer

Required

id

globally unique identifier

None.

name

string

Required

String length: inclusive between 0 and 100

remark

string

None.

site_id

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "active": true,
  "code": 2,
  "id": "ff91f6ea-a7ed-4830-9eee-5e474b5f1d62",
  "name": "sample string 4",
  "remark": "sample string 5",
  "site_id": "c3a366d7-1310-4831-833f-0d9c1027ffa9"
}

application/xml, text/xml

Sample:
<sitecustomer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
  <active>true</active>
  <code>2</code>
  <id>ff91f6ea-a7ed-4830-9eee-5e474b5f1d62</id>
  <name>sample string 4</name>
  <remark>sample string 5</remark>
  <site_id>c3a366d7-1310-4831-833f-0d9c1027ffa9</site_id>
</sitecustomer>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SiteCustomerViewModel'.

Response Information

Resource Description

globally unique identifier

Response Formats

application/json, text/json

Sample:
"c5ae468b-3b9f-4126-afd1-bbb706c24bd8"

application/xml, text/xml

Sample:
<guid xmlns="http://schemas.microsoft.com/2003/10/Serialization/">c5ae468b-3b9f-4126-afd1-bbb706c24bd8</guid>