Create a legal doc
Legal Docs
POST legal doc
Endpoint
POST /api/v1/legal_docs
Parameters
Name | Description |
---|---|
article[title] required | Title of the article |
article[content] required | Content of the article |
Request
Route
POST /api/v1/legal_docs
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDc3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTI5LCJleHAiOjE3NTExMDg1MjksImp0aSI6Ijc1MTllNDllLTllYTEtNDAxZi04ZTQzLTE4NGU0MjYzOTU1OSJ9.KKf8Z_UamaH2KlXTneoRZQuTnh0MFDZxofzzYFv2tSM
Host: example.org
Cookie:
Body
{
"article": {
"title": "Central Education Technician",
"content": {
"id": null,
"name": null,
"body": "Ipsum blanditiis est. Fugit esse deleniti. Tempora nam fugit.",
"record_type": null,
"record_id": null,
"created_at": null,
"updated_at": null
},
"type": "legal_doc"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"c7b2a1df1e376d402f897403d81e6a46"
cache-control: max-age=0, private, must-revalidate
x-request-id: f5298e03-cf4c-4854-9643-12d62ce3ac70
x-runtime: 0.010653
content-length: 60
Body
{
"article": {
"id": 32,
"title": "Central Education Technician"
}
}