Skip to content

Cost Endpoint

POST
/ratchet/cost/endpoint
curl --request POST \
--url http://localhost:8000/ratchet/cost/endpoint \
--header 'Content-Type: application/json' \
--data '"example"'

Record the student endpoint going up or down ({"state": "up" | "down"}, optionally usd_per_hour per GPU, gpus and a note), as python -m ratchet.cost endpoint does. Needs an admin key (open in mock mode without admin keys, like the other management calls). up while up and down while down change nothing (changed false).

x-api-key
Any of:
string
Media typeapplication/json
Body

Example generated

example

Successful Response

Media typeapplication/json
Response Cost Endpoint Ratchet Cost Endpoint Post
object

Example generated

{}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}