Complete Update Units by Id
PUT
/api/v2/units/e3275b89-a2e2-4a38-9293-cbcdcd27d02f
Use this method to update a units. See our HTTP PUT documentation for complete queries method.
The following are elements for update a units :
Body Request
Element | Description |
---|---|
reason | The reason why changes were made. String 170 characters . |
code | Unit code. String maximum 255 characters . |
name | Unit name String maximum 255 characters . |
description | Unit description String maximum 255 characters . |
is_base | Is base Boolean. |
is_active | Is Active Boolean. |
conversions* | conversions |
conversions.id | Conversions id String. |
target* | target conversions |
target.id | Target id String. |
target.code | Target code String. |
target.name | Target name String. |
value | Value of conversion String. |
other_fields | other_fields. |
created* | Created. |
created.user* | Created User. |
created.user.id | User id String Automaticaly. |
created.user.name | User name String. |
created.user.email | User email String. |
created.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |
update* | Update. |
update.user* | Update user. |
update.user.id | User id String Automaticaly. |
update.user.name | User name String. |
update.user.email | User email String. |
update.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |
Body Response
Element | Description |
---|---|
id | unit id. String. |
code | Unit code. String maximum 255 characters . |
name | Unit name String maximum 255 characters . |
description | Unit description String maximum 255 characters . |
is_base | Is base Boolean. |
is_active | Is Active Boolean. |
conversions* | conversions |
conversions.id | Conversions id String. |
target* | target conversions |
target.id | Target id String. |
target.code | Target code String. |
target.name | Target name String. |
value | Value of conversion String. |
other_fields | other_fields. |
created* | Created. |
created.user* | Created User. |
created.user.id | User id String Automaticaly. |
created.user.name | User name String. |
created.user.email | User email String. |
created.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |
update* | Update. |
update.user* | Update user. |
update.user.id | User id String Automaticaly. |
update.user.name | User name String. |
update.user.email | User email String. |
update.time | Date Time format YYYY-MM-DDThh:mm:ss.fffZ (RFC 3339, ISO 8601 date format) . Automaticaly. |