Retrieve a single rubric with the full detail of its current criteria.
Returns the latest version of the rubric along with all of its current (latest-version) criteria in full — not the slim title/weight summary returned by the list endpoint. Archived rubrics remain retrievable through this endpoint even though they are hidden from the list endpoint.
Get a rubric
package main
import (
"context"
"fmt"
"github.com/scaleapi/sgp-dev-go"
"github.com/scaleapi/sgp-dev-go/option"
)
func main() {
client := sgpdev.NewClient(
option.WithAPIKey("My API Key"),
option.WithAccountID("My Account ID"),
)
rubricResponse, err := client.Rubrics.Get(context.TODO(), "rubric_id")
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", rubricResponse.ID)
}
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"tags": [
"string"
],
"title": "title",
"version": 0,
"archived_at": "2019-12-27T18:11:19.117Z",
"criteria": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"rubric_id": "rubric_id",
"title": "title",
"version": 0,
"annotations": {
"foo": "bar"
},
"object": "rubric_criteria",
"weight": 0
}
],
"object": "rubric",
"updated_at": "2019-12-27T18:11:19.117Z"
}Returns Examples
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"created_by": {
"id": "id",
"type": "user",
"object": "identity"
},
"tags": [
"string"
],
"title": "title",
"version": 0,
"archived_at": "2019-12-27T18:11:19.117Z",
"criteria": [
{
"id": "id",
"created_at": "2019-12-27T18:11:19.117Z",
"rubric_id": "rubric_id",
"title": "title",
"version": 0,
"annotations": {
"foo": "bar"
},
"object": "rubric_criteria",
"weight": 0
}
],
"object": "rubric",
"updated_at": "2019-12-27T18:11:19.117Z"
}