Skip to content
Search
Search the documentation
UpdateProjectMetricsBodySchema
GitHub GitHub

UpdateProjectMetricsBodySchema

Variable: UpdateProjectMetricsBodySchema

const UpdateProjectMetricsBodySchema: ZodMiniUnion<readonly [ZodMiniObject<{ server_count: ZodMiniOptional<ZodMiniNumber<number>>; shard_count: ZodMiniOptional<ZodMiniNumber<number>>; }, $strip>, ZodMiniObject<{ member_count: ZodMiniOptional<ZodMiniNumber<number>>; online_count: ZodMiniOptional<ZodMiniNumber<number>>; }, $strip>, ZodMiniObject<{ player_count: ZodMiniNumber<number>; }, $strip>]>

Defined in: v1/schemas/projects.ts:330

Request body for updating the authenticated project’s current metrics. The shape used must match the project’s own platform/type combination - the API does not accept a discriminant field to disambiguate.

  • PATCH /v1/projects/@me/metrics

See

https://docs.top.gg/api/v1/projects#patch-projectsmemetrics