Zatomic API

Update Scoring Criteria

This endpoint allows you to update scoring criteria.

Endpoint
PATCH https://api.zatomic.ai/v1/prompts/scoring/criteria/{criteriaId}

// Example
PATCH https://api.zatomic.ai/v1/prompts/scoring/criteria/sca_2rjp9HFpIsiYQrAiSbZlz85r3GC

Endpoint Request

Request Properties
name
string
Name of the scoring criteria.
use_case
string, optional
Use case of the scoring criteria.
Request Body
{
   "name": "Criteria name",
   "use_case": "The criteria use case."
}

Endpoint Response

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

HTTP Status Codes
200 OK The scoring criteria was updated.
400 Bad Request The criteria name was not provided in the request.
404 Not Found The scoring criteria didn't exist.
500 Internal Server Error Something went wrong on Zatomic's end.