Skip to content

Archive a rubric

rubrics.archive(strrubric_id) -> RubricArchiveResponse
DELETE/v5/rubrics/{rubric_id}

Archive a rubric (soft delete).

This is a soft delete, not a permanent one: it records an archived timestamp on the rubric while retaining the rubric and its version history, so it can later be brought back via the restore variant of the update endpoint. An archived rubric is hidden from the list endpoint but stays retrievable by id. The rubric’s criteria are left untouched — archiving does not cascade to or delete them. Archiving a rubric that is already archived is rejected.

ParametersExpand Collapse
rubric_id: str
ReturnsExpand Collapse
class RubricArchiveResponse: …
id: str
deleted: bool
object: Optional[Literal["rubric"]]

Archive a rubric

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
)
response = client.rubrics.archive(
    "rubric_id",
)
print(response.id)
{
  "id": "id",
  "deleted": true,
  "object": "rubric"
}
Returns Examples
{
  "id": "id",
  "deleted": true,
  "object": "rubric"
}