PUT api/v7/UOM

Add or Update an existing UOM

Tables Impacted

UOM, UOMDesc

Request Information

URI Parameters

None.

Body Parameters

The UOM information to be updated

Unit of Measure
NameDescriptionTypeRequired?Additional information
UOMCode *

UOM Code

string

Yes

String length: between 1 and 24, inclusive

Name *

UOM Name

string

Yes

String length: between 1 and 24, inclusive

customerAuditDate

Audit information

date

No

None.

culture *

Culture Code. For example: en-US, fr, fr-CA, es, ja-JP etc.

string

Conditional

Conditionally required: Required if you wish to associate description with culture. If not provided, in most cases 'Organizational Culture' is taken

String length: between 1 and 10, inclusive

description *

Description Text (Culture specific)

string

Yes

String length: between 1 and 30, inclusive

Request Formats

application/json, text/json

Sample:
{
  "UOMCode": "2",
  "Name": "Metre",
  "customerAuditDate": "2018-01-01T00:00:00",
  "culture": "en-US",
  "description": "Metric System"
}

application/xml, text/xml

Sample:
<UOM xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <culture>en-US</culture>
  <description>Metric System</description>
  <customerAuditDate>2018-01-01T00:00:00</customerAuditDate>
  <UOMCode>2</UOMCode>
  <Name>Metre</Name>
</UOM>

Response Information

Resource Description

Returns a HTTPResponse Message stating the success/failure of API Action

HttpResponseMessage
NameDescriptionType
Version

Version
Content

HttpContent
StatusCode

HttpStatusCode
ReasonPhrase

string
Headers

Collection of Object
RequestMessage

HttpRequestMessage
IsSuccessStatusCode

boolean

Response Formats

application/json, text/json

Sample:
{
  "message": "Record successfully saved.",
  "propertyName": "Success"
}

application/xml, text/xml

Sample:
<ApiValidationMessage xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <message>Record successfully saved.</message>
  <propertyName>Success</propertyName>
</ApiValidationMessage>