The UOM object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: false
Default: true
{
"id": "u-o-m_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"uom_name": "uom_name_example",
"must_be_whole_number": false,
"enabled": true,
"symbol": "symbol_example",
"common_code": "common_code_example",
"description": "description_example"
} /api/setup/u-o-m/{id} Retrieve a uom
Retrieves the details of an existing uom. Supply the unique uom ID that was returned from a previous request.
Path parameters
The identifier of the uom to retrieve.
Returns
Returns the uom object if a valid identifier was provided.
curl https://api.overplane.dev/api/setup/u-o-m/u-o-m_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "u-o-m_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"uom_name": "uom_name_example",
"must_be_whole_number": false,
"enabled": true,
"symbol": "symbol_example",
"common_code": "common_code_example",
"description": "description_example"
} /api/setup/u-o-m List all uoms
Returns a list of uoms. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of uom objects.
curl https://api.overplane.dev/api/setup/u-o-m \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "u-o-m_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"uom_name": "uom_name_example",
"must_be_whole_number": false,
"enabled": true,
"symbol": "symbol_example",
"common_code": "common_code_example",
"description": "description_example"
}
],
"has_more": false,
"total": 1
} /api/setup/u-o-m Create a uom
Creates a new uom object.
Body parameters
Default: false
Default: true
Returns
Returns the newly created uom object if the call succeeded.
curl https://api.overplane.dev/api/setup/u-o-m \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"uom_name":"uom_name_example"}' {
"id": "u-o-m_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"uom_name": "uom_name_example",
"must_be_whole_number": false,
"enabled": true,
"symbol": "symbol_example",
"common_code": "common_code_example",
"description": "description_example"
} /api/setup/u-o-m/{id} Update a uom
Updates the specified uom by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the uom to update.
Body parameters
Default: false
Default: true
Returns
Returns the updated uom object.
curl https://api.overplane.dev/api/setup/u-o-m/u-o-m_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"uom_name":"uom_name_example","must_be_whole_number":false}' {
"id": "u-o-m_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"uom_name": "uom_name_example",
"must_be_whole_number": false,
"enabled": true,
"symbol": "symbol_example",
"common_code": "common_code_example",
"description": "description_example"
} /api/setup/u-o-m/{id} Delete a uom
Permanently deletes a uom. This cannot be undone.
Path parameters
The identifier of the uom to delete.
Returns
Returns a confirmation that the uom has been deleted.
curl https://api.overplane.dev/api/setup/u-o-m/u-o-m_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "u-o-m_abc123",
"deleted": true
}