POST
/ratchet/admin/tasks/{name}/pin
const url = 'http://localhost:8000/ratchet/admin/tasks/example/pin';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '"example"'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8000/ratchet/admin/tasks/example/pin \ --header 'Content-Type: application/json' \ --data '"example"'Pin a registered task to the teacher at runtime (body {reason}): nothing of it is stored or trained on.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”name
required
Name
string
Header Parameters
Section titled “Header Parameters”Request Body
Section titled “Request Body”Media typeapplication/json
Body
Example generated
exampleResponses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Admin Pin Ratchet Admin Tasks Name Pin Post
object
Example generated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}