Create Evaluation Group
Create a new evaluation group bundling one or more existing evaluations.
The request must list at least one evaluation ID, and duplicate IDs are rejected. Every listed evaluation is validated for existence and account access before the group is created; an unknown or inaccessible evaluation ID fails the whole request with a 400 rather than creating a partial group. The named evaluations are added as group members in the same transaction, and any supplied row_identifiers (an evaluation_id-to-column-name mapping used for cross-dataset joins) are persisted alongside them, ignoring entries for evaluation IDs not in the group. The returned group includes its members enriched with each evaluation’s name, tags, and creation time. Unlike the PUT and PATCH update endpoints, creation does not trigger any dashboard-widget recomputation.
Create Evaluation Group
import os
from scale_gp_beta import SGPClient
client = SGPClient(
api_key=os.environ.get("SGP_API_KEY"), # This is the default and can be omitted
)
evaluation_group = client.evaluation_groups.create(
evaluation_ids=["string"],
name="name",
)
print(evaluation_group.id){
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"tags": [
"string"
],
"deleted_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"members": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"deleted_at": "2019-12-27T18:11:19.117Z",
"evaluation_created_at": "2019-12-27T18:11:19.117Z",
"evaluation_name": "evaluation_name",
"evaluation_tags": [
"string"
],
"object": "evaluation_group.member"
}
],
"metadata": {
"foo": "bar"
},
"object": "evaluation_group",
"row_identifiers": [
{
"column_name": "column_name",
"evaluation_id": "evaluation_id",
"object": "evaluation_group.row_identifier"
}
]
}Returns Examples
{
"id": "id",
"account_id": "account_id",
"created_at": "2019-12-27T18:11:19.117Z",
"name": "name",
"tags": [
"string"
],
"deleted_at": "2019-12-27T18:11:19.117Z",
"description": "description",
"members": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"evaluation_group_id": "evaluation_group_id",
"evaluation_id": "evaluation_id",
"deleted_at": "2019-12-27T18:11:19.117Z",
"evaluation_created_at": "2019-12-27T18:11:19.117Z",
"evaluation_name": "evaluation_name",
"evaluation_tags": [
"string"
],
"object": "evaluation_group.member"
}
],
"metadata": {
"foo": "bar"
},
"object": "evaluation_group",
"row_identifiers": [
{
"column_name": "column_name",
"evaluation_id": "evaluation_id",
"object": "evaluation_group.row_identifier"
}
]
}