PUT api/admin/v1/customers/{customerId}

Update an existing customer

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

ID of the customer

integer

Required

Body Parameters

New customer informations

CustomerEditDto
NameDescriptionTypeAdditional information
BusinessUnitId

Business Unit of the customer

integer

None

Address

Address of the Customer

string

None

Cap

Cap of the Customer

string

None

City

City of the Customer

string

None

Country

Country of the Customer

string

None

TelephoneNumber

Telephone Number of the Customer

string

None

Fax

Fax of the Customer

string

None

WebSite

Web Site of the Customer

string

None

Email

E-mail of the Customer

string

None

Code

The short code of the element

string

None

Description

The description of the element

string

None

IsActive

True if the element is active, false otherwise

boolean

None

Id

Unique ID

integer

None

Request Formats

application/json, text/json

Sample:
{
  "BusinessUnitId": 1,
  "Address": "sample string 2",
  "Cap": "sample string 3",
  "City": "sample string 4",
  "Country": "sample string 5",
  "TelephoneNumber": "sample string 6",
  "Fax": "sample string 7",
  "WebSite": "sample string 8",
  "Email": "sample string 9",
  "Code": "sample string 10",
  "Description": "sample string 11",
  "IsActive": true,
  "Id": 13
}

application/xml, text/xml

Sample:
<CustomerEditDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Oryx.Web.Api.Models">
  <Id>13</Id>
  <Code>sample string 10</Code>
  <Description>sample string 11</Description>
  <IsActive>true</IsActive>
  <Address>sample string 2</Address>
  <BusinessUnitId>1</BusinessUnitId>
  <Cap>sample string 3</Cap>
  <City>sample string 4</City>
  <Country>sample string 5</Country>
  <Email>sample string 9</Email>
  <Fax>sample string 7</Fax>
  <TelephoneNumber>sample string 6</TelephoneNumber>
  <WebSite>sample string 8</WebSite>
</CustomerEditDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

200

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None

Content

HttpContent

None

StatusCode

HttpStatusCode

None

ReasonPhrase

string

None

Headers

Collection of Object

None

RequestMessage

HttpRequestMessage

None

IsSuccessStatusCode

boolean

None