Description:
Update a Unit Of Measure by Id.
The Unit Of Measure that needs to be updated its Id has to exist in the Request body field.
Any Put body Parameters that are excluded in the Request body field will be considered as empty and updated with an empty field
Resource URL:
https://<apphost>.competitionlabs.com/api/<your-space-name>/unitofmeasure
Request headers
Key | Value | Required |
---|---|---|
X-API-KEY | Your unique API key | Yes |
Content-Type | application/json | Yes |
Request URL parameters
Parameter | Type | Required | Description |
---|---|---|---|
space | String | Yes | This is the space name which is linked to the account |
Put body parameters
Parameter | Type | Required | Description |
---|---|---|---|
name | String | Yes | The name of a unit of measure |
key | String | Yes | The reference to the unit of measure in your system |
description | String | Optional | The description of a unit of measure |
isoCode | String | Optional | An alphabetical or numerical code to identify a unit of measure |
symbol | String | Optional | The symbol of a unit of measure |
multiplier | Double | Yes | Is used to multiply the value from the standardised one that is being used |
unitOfMeasureType | String | Yes | A type of unit of measure, eg. Currency, Mass, Time and etc. |
metadata | Array [Object] | Optional | A list of MetaData |
Id | String | Yes | Unique system identifier of a Unit Of Measure |
EXAMPLE
ERROR CODES
Code | HTTP Status | Description | Example |
---|---|---|---|
404 | Inserting the Id in the Request URL parameter | ||
503 | Updating without the Id parameter | ||
1001 | 400 |
| |
1007 | 404 | A record with requested id for unit-of-measures was not found | |
1002 | 404 |
|