@trophyso/node
Version:
NodeJS SDK for the Trophy API
15 lines (14 loc) • 594 B
TypeScript
import type * as TrophyApi from "../index";
/**
* A metric update object. `id` is required; `name`, `unitType`, and `units` are optional. `key` cannot be changed through this endpoint.
*/
export interface UpdateMetricRequestItem {
/** The UUID of the metric to update. */
id: string;
/** The updated metric name. */
name?: string;
/** The updated metric unit type. */
unitType?: TrophyApi.UpdateMetricRequestItemUnitType;
/** The updated units value. For `unitType: currency`, this must be a supported `MetricCurrency` code such as `USD`. */
units?: string;
}