Skip to content

Patch Evaluation Group

client.evaluationGroups.update(stringgroupID, EvaluationGroupUpdateParams { description, metadata, name, 2 more } body, RequestOptionsoptions?): EvaluationGroup { id, account_id, created_at, 8 more }
PATCH/v5/evaluation-groups/{group_id}

Partially update an evaluation group’s attributes.

Only the fields present in the request are changed; unset fields are left untouched. Unlike the PUT endpoint, metadata is merged into the existing metadata key-by-key rather than replaced wholesale, and group membership (evaluation_ids) cannot be changed here — use PUT to replace members. At least one field must be supplied or the request fails with a 400. Supplying row_identifiers replaces the group’s entire row identifier set (an evaluation_id-to-column-name mapping for cross-dataset joins); passing an empty mapping clears it.

ParametersExpand Collapse
groupID: string
body: EvaluationGroupUpdateParams { description, metadata, name, 2 more }
description?: string

Optional description

metadata?: Record<string, unknown>

Optional metadata key-value pairs

name?: string

Name of the evaluation group

maxLength128
row_identifiers?: Record<string, string>

Optional mapping of evaluation_id to column name for cross-dataset joins

tags?: Array<string>

The tags associated with the entity

ReturnsExpand Collapse
EvaluationGroup { id, account_id, created_at, 8 more }

Response model for evaluation group

id: string

Unique identifier of the evaluation group

account_id: string

Account that owns this evaluation group

created_at: string

When the group was created

formatdate-time
name: string

Name of the evaluation group

tags: Array<string> | null

The tags associated with the entity

deleted_at?: string

When the group was soft-deleted

formatdate-time
description?: string

Optional description

members?: Array<EvaluationGroupMember { id, created_at, evaluation_group_id, 6 more } >

Evaluation members in this group. Returned by default on GET by id; on list endpoints, populated only with the ‘members’ view.

id: string

Unique identifier of the member record

created_at: string

When this member was added to the group

formatdate-time
evaluation_group_id: string

ID of the evaluation group

evaluation_id: string

ID of the evaluation

deleted_at?: string

When this membership was soft-deleted (if applicable)

formatdate-time
evaluation_created_at?: string

When the evaluation was created

formatdate-time
evaluation_name?: string

Name of the evaluation

evaluation_tags?: Array<string>

Tags of the evaluation

object?: "evaluation_group.member"
metadata?: Record<string, unknown>

Optional metadata key-value pairs

object?: "evaluation_group"
row_identifiers?: Array<EvaluationGroupRowIdentifier { column_name, evaluation_id, object } >

Row identifier mappings. Populated with ‘row_identifiers’ view.

column_name: string

Name of the column used as row identifier

evaluation_id: string

ID of the evaluation

object?: "evaluation_group.row_identifier"

Patch Evaluation Group

import SGPClient from 'scale-gp';

const client = new SGPClient({
  accountID: 'My Account ID',
  apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});

const evaluationGroup = await client.evaluationGroups.update('group_id');

console.log(evaluationGroup.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"
    }
  ]
}