Archive Evaluation Group
evaluation_groups.archive(strgroup_id) -> EvaluationGroup
DELETE/v5/evaluation-groups/{group_id}
Archive (soft-delete) an evaluation group and its dependent records.
This is a soft delete: the group is marked deleted rather than removed, so it no longer appears in default list/get results but can still be fetched with the include-deleted flags. The same delete timestamp cascades as a soft delete to the group’s members, row identifiers, and its dashboard charts and their chart columns; the member evaluations themselves are not affected. The archived group is returned in the response.
Archive 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.archive(
"group_id",
)
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"
}
]
}