Zatomic API

Updating a scoring criterion

This endpoint allows you to update an inidividual scoring criterion. All fields are required.

A successful call returns a response that contains the updated scoring criterion object.

Endpoint
PUT https://api.zatomic.ai/v1/prompts/scoring/criteria/{criteriaId}/criterionset/{criterionId}

// Example
PUT https://api.zatomic.ai/v1/prompts/scoring/criteria/sca_2rjp9HFpIsiYQrAiSbZlz85r3GC/criterionset/scn_2tVwnAnheHa6NKuYvKcXrqDB21z

Request Properties
slug
string
The slug for the criterion. Can only contain lowercase letters and underscores.
label
string
The criterion label.
description
string
The criterion description.
questions
string
The question or questions the criterion is trying to answer.
weight
integer
The weight assigned to the criterion. Must be a whole number between 1 and 999.
Request Body
{
   "slug": "criterion_slug",
   "label": "The label of the criterion.",
   "description": "The criterion description.",
   "questions": "The question or questions the criterion is trying to answer.",
   "weight": 0
}