Create Metric Group

Changed on

Create a new Metric Group referencing Metrics in the same Project.

post/projects/{projectId}/metric-groups

Request

  • Base URL
    https://api2.scorecard.io/api/v2
  • Auth
    HTTP bearer

Path parameters

projectIdstring required
Example:314

The ID of the Project to create the Metric Group in.

Request body

namestring required

The name of the Metric Group.

descriptionstring

The description of the Metric Group.

metricIdsstring[] required

The IDs of the Metrics to include in the group. Every Metric must belong to the same Project as the group.

Example request

{
  "metricIds": [
    "321"
  ]
}

Response

Metric Group created successfully.

idstring required

The ID of the Metric Group.

projectIdstring required

The ID of the Project the Metric Group belongs to.

namestring required

The name of the Metric Group.

descriptionstring required

The description of the Metric Group.

metricIdsstring[] required

The IDs of the Metrics in the group.

createdAtstring required

The ISO 8601 timestamp when the Metric Group was created.

updatedAtstring required

The ISO 8601 timestamp when the Metric Group was last updated.

Changes