update billable metric
PATCH/org/:orgId/billableMetric/:billableMetricId
Update the name, description and status of the billable metric for the given organization.
Request
Path Parameters
Organization ID
Billable Metric ID
- application/json
Body
required
RequestBody
Possible values: [ACTIVE
, DELETED
]
Responses
- 200
- 400
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
Possible values: [COUNT
, UNIQUE_COUNT
, SUM
, MAX
, LAST
]
Possible values: <= 300 characters
Possible values: <= 36 characters
info
object
filterGroups
object[]
FilterGroups is a list of filter groups. The filterGroups are connected by AND.
filters
object[]
Possible values: [IS
, NOT_IS
, CONTAINS
, NOT_CONTAINS
, GT
, GTE
, LT
, LTE
, EQ
, NOT_EQ
, EXISTS
, NOT_EXISTS
]
The value of the filter. The type of the value depends on the valueType.
Possible values: [STRING
, FLOAT
]
GroupBys is a list of fields to group by.
The target property for unique count aggregate.
Possible values: >= 4 characters
and <= 50 characters
Possible values: [ACTIVE
, DELETED
]
{
"aggregationType": "COUNT",
"creationTime": "2024-08-12T01:02:12.729Z",
"description": "string",
"id": "string",
"info": {
"filterGroups": [
{
"filters": [
{
"name": "string",
"operation": "IS",
"valueType": "STRING"
}
]
}
],
"groupBys": [
"string"
],
"propertyUniqueOn": "string"
},
"lastUpdateTime": "2024-08-12T01:02:12.729Z",
"name": "string",
"organizationId": "string",
"status": "ACTIVE"
}
Bad request error
- application/json
- Schema
Schema
string
billable metric not found
- application/json
- Schema
Schema
string
Internal server error
- application/json
- Schema
Schema
string