## Add a criterion to a rubric

`rubrics.criteria.create(strrubric_id, CriterionCreateParams**kwargs)  -> RubricCriteriaResponse`

**post** `/v5/rubrics/{rubric_id}/criteria`

Add a single criterion to an existing rubric.

Creates a new criterion at version 1 under the given rubric. Criteria are
versioned independently of the rubric they belong to. The request is rejected
if the target rubric is archived.

### Parameters

- `rubric_id: str`

- `title: str`

  The Criteria text

- `annotations: Optional[Dict[str, object]]`

  Free-form metadata for the Criteria

- `weight: Optional[float]`

  Weight multiplier for scoring

### Returns

- `class RubricCriteriaResponse: …`

  - `id: str`

  - `created_at: datetime`

  - `rubric_id: str`

  - `title: str`

  - `version: int`

  - `annotations: Optional[Dict[str, object]]`

  - `object: Optional[Literal["rubric_criteria"]]`

    - `"rubric_criteria"`

  - `weight: Optional[float]`

### Example

```python
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
)
rubric_criteria_response = client.rubrics.criteria.create(
    rubric_id="rubric_id",
    title="x",
)
print(rubric_criteria_response.id)
```

#### Response

```json
{
  "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
}
```
