PUT api/v1/measure-units/{id}

Edits a measurement unit by ID or creates one if it doesn't exist

Request Information

URI Parameters

Name Description Type Additional information
id ID of the unit you want to edit integer Required

Body Parameters

Unit details you want to edit or set

Name Description Type Additional information
Name Full name o the unit measurement string Required Max length: 20
Abbreviation Abbreviation of the unit measurement string Required Max length: 5
IsActive Set to true if you want the current unit to be active or disabled boolean No additional information available.

Request Formats

application/json, text/json

Sample:
                    
{
  "name": "sample string 1",
  "abbreviation": "sample string 2",
  "isActive": true
}
                        
            

Response Information

Resource Description

No information available

Response Formats

application/json, text/json

Sample:
                    
1