POST api/PostCustomer

Request Information

URI Parameters

None.

Body Parameters

InsertCustomerAdmin
NameDescriptionTypeAdditional information
Id

integer

None.

Username

string

None.

Email

string

None.

Password

string

None.

CustomerFirstName

string

None.

CustomerLastName

string

None.

BirthDay

date

None.

Mobile

string

None.

Address

string

None.

Sex

string

None.

Active

boolean

None.

IsStaff

boolean

None.

RoleIds

Collection of integer

None.

Deleted

boolean

None.

CustomerRoles

Collection of string

None.

CreatedOnUtc

date

None.

LastActivityDateUtc

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Username": "sample string 2",
  "Email": "sample string 3",
  "Password": "sample string 4",
  "CustomerFirstName": "sample string 5",
  "CustomerLastName": "sample string 6",
  "BirthDay": "2025-05-19T09:06:09.4531899+07:00",
  "Mobile": "sample string 8",
  "Address": "sample string 9",
  "Sex": "sample string 10",
  "Active": true,
  "IsStaff": true,
  "RoleIds": [
    1,
    2
  ],
  "Deleted": true,
  "CustomerRoles": [
    "sample string 1",
    "sample string 2"
  ],
  "CreatedOnUtc": "2025-05-19T09:06:09.4531899+07:00",
  "LastActivityDateUtc": "2025-05-19T09:06:09.4531899+07:00"
}

application/xml, text/xml

Sample:
<InsertCustomerAdmin xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RCPQG_API.Models">
  <Active>true</Active>
  <Address>sample string 9</Address>
  <BirthDay>2025-05-19T09:06:09.4531899+07:00</BirthDay>
  <CreatedOnUtc>2025-05-19T09:06:09.4531899+07:00</CreatedOnUtc>
  <CustomerFirstName>sample string 5</CustomerFirstName>
  <CustomerLastName>sample string 6</CustomerLastName>
  <CustomerRoles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </CustomerRoles>
  <Deleted>true</Deleted>
  <Email>sample string 3</Email>
  <Id>1</Id>
  <IsStaff>true</IsStaff>
  <LastActivityDateUtc>2025-05-19T09:06:09.4531899+07:00</LastActivityDateUtc>
  <Mobile>sample string 8</Mobile>
  <Password>sample string 4</Password>
  <RoleIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </RoleIds>
  <Sex>sample string 10</Sex>
  <Username>sample string 2</Username>
</InsertCustomerAdmin>

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 'InsertCustomerAdmin'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.