Skip to content

Configure Monitor

PUT
/theses/{thesis_id}/monitor
curl --request PUT \
--url http://127.0.0.1:8000/theses/example/monitor \
--header 'Content-Type: application/json' \
--data '{ "cik": "example", "enabled": true, "forms": [ "example" ] }'
thesis_id
required
Thesis Id
string
Media typeapplication/json
SecMonitorInput
object
cik
required
Cik
string
/^\d{1,10}$/
enabled
Enabled
boolean
default: true
forms
required
Forms
Array<string>
>= 1 items <= 20 items

Successful Response

Media typeapplication/json
SecMonitor
object
cik
required
Cik
string
enabled
required
Enabled
boolean
forms
required
Forms
Array<string>
last_accession
Any of:
string
last_checked_at
Any of:
string
last_error
Any of:
string
last_imported
Last Imported
integer
0
thesis_id
required
Thesis Id
string
Example
{
"last_imported": 0
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
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"
}
]
}