Set Company Metric Value
Set or update a metric value for a specific company.
POST /external/v1/external/v1/customers/companies/{company_id}/metrics
Request ⚙️
Parameters
Name
Type
Description
Location
Required
company_id
string
Company ID (UUID) for which the metric is being set.
Path
Yes
Request Body (application/json)
Field
Type
Description
Example
Required
metric_id
string
The unique ID of the metric being updated (e.g., 'revenue', 'ARR').
"ARR_METRIC_ID"
Yes
company_id
string
The ID of the company (redundant, but often required in the body).
"COMP-F7E6D5"
Yes
value
string
The value to set for the metric.
"125000.50"
Yes
Example Request Body:
{
"metric_id": "monthly_users",
"company_id": "COMP-F7E6D5",
"value": "9500"
}Responses
Successful Response (201) (application/json)
Returns the created or updated metric record.
Field
Type
Description
id
integer
The internal database ID of the metric entry.
company_id
integer
The ID of the company (as an integer).
metric_id
integer
The internal ID of the metric type.
metric_name
string
The human-readable name of the metric.
data_type
string
The data type of the stored value (e.g., STRING, NUMBER, DATE).
value
string
The value that was set.
time_created
string (datetime)
Creation timestamp.
time_updated
string (datetime)
Last update timestamp.
Example Response Body (201):
JSON
Validation Error (422)
JSON
Last updated