TAG LINE
SMALL TITLE

Usage / Bucket / Base Unit

(API Version v4)


System defined unit of counting in a Base Bucket such as Count, Data or Time.


What can you do with UsageBucketBaseUnit?


Properties

Property Details
identity
READ-ONLY
"identity": 12
Type: Number
This is the unique numeric identifier for the UsageBucketBaseUnit
usageBaseUnitId
"usageBaseUnitId": 10
Type: Number
Unique identifier for the associated UsageBaseUnit object.
usageBaseUnitName
"usageBaseUnitName": "Sample Name"
Type: String
The name of the object associated with the usageBaseUnitId property.
name
READ-ONLY
"name": "Count"
Type: String
System defined name for the Base Unit.
description
READ-ONLY
"description": "Counting items"
Type: String
System defined description for the Base Unit.
sortOrder
READ-ONLY
"sortOrder": 26
Type: Number
Unused
visible
READ-ONLY
"visible": true
Type: Boolean
Whether or not this Base Unit is visible in the user interface.


End Points

GETapi/v4/Usage/Bucket/BaseUnit/
Retrieve all of the UsageBucketBaseUnit objects.
Retrieve all of the UsageBucketBaseUnit objects.
GET api/v4/Usage/Bucket/BaseUnit/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "usageBaseUnitId": 7,
            "usageBaseUnitName": "Sample Text Data",
            "name": "Count",
            "description": "Counting items",
            "sortOrder": 0,
            "visible": true
        }
    ]
}
GETapi/v4/Usage/Bucket/BaseUnit/Paged
Retrieve all of the UsageBucketBaseUnit objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints.
Retrieve all of the UsageBucketBaseUnit objects in a paged fashion.
GET api/v4/Usage/Bucket/BaseUnit/Paged
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "pagination": {
        "pageNumber": 1,
        "pageSize": 20,
        "excludeTotalCount": false
    },
    "pagedResults": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "usageBaseUnitId": 23,
                "usageBaseUnitName": "Sample Text Data",
                "name": "Count",
                "description": "Counting items",
                "sortOrder": 2,
                "visible": true
            }
        ]
    }
}
GETapi/v4/Usage/Bucket/BaseUnit/{id}
Retrieve an instance of the UsageBucketBaseUnit object by its ID.
{id}Unique identifier for the UsageBucketBaseUnit object.
Retrieve an instance of the UsageBucketBaseUnit object by its ID.
GET api/v4/Usage/Bucket/BaseUnit/{id}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "usageBaseUnitId": 16,
        "usageBaseUnitName": "Sample Text Data",
        "name": "Count",
        "description": "Counting items",
        "sortOrder": 23,
        "visible": true
    }
}
POSTapi/v4/Usage/Bucket/BaseUnit/Search
Retreive a list of UsageBucketBaseUnit objects based on search criteria. Search end points allow for retrieving results based on search criteria. Search criteria is sent as the payload of the POST.
Retreive a list of UsageBucketBaseUnit objects based on search criteria.
POST api/v4/Usage/Bucket/BaseUnit/Search

{
    "query": {
        "top": 20,
        "search": [
            {
                "name": "MyFieldName",
                "operator": "startsWith",
                "value": "a"
            }
        ]
    }
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "itemCount": 1,
    "items": [
        {
            "identity": 1,
            "usageBaseUnitId": 23,
            "usageBaseUnitName": "Sample Text Data",
            "name": "Count",
            "description": "Counting items",
            "sortOrder": 25,
            "visible": true
        }
    ]
}