Create Disclosure
POST
/disclosures
const url = 'http://127.0.0.1:8000/disclosures';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"artifact_ids":["example"],"content":"example","document_id":"example","event_id":"example","source_date":"example","source_id":"example","source_url":"","thesis_id":"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://127.0.0.1:8000/disclosures \ --header 'Content-Type: application/json' \ --data '{ "artifact_ids": [ "example" ], "content": "example", "document_id": "example", "event_id": "example", "source_date": "example", "source_id": "example", "source_url": "", "thesis_id": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Create Disclosure Disclosures Post
object
key
additional properties
any
Examplegenerated
{}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" } ]}