Configure Ir Monitor
PUT
/theses/{thesis_id}/ir-monitor
const url = 'http://127.0.0.1:8000/theses/example/ir-monitor';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"enabled":true,"urls":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://127.0.0.1:8000/theses/example/ir-monitor \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "urls": [ "example" ] }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”thesis_id
required
Thesis Id
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
IrMonitorInput
object
enabled
Enabled
boolean
urls
required
Urls
Array<string>
Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}