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.eyJzdWIiOiIxNDU5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQxLCJleHAiOjE3NDUwNTY5NDEsImp0aSI6IjIwYjBmNzA0LWRiOGQtNDYwMy05MzA3LTk3NDAxOTRmNmJkOCJ9.xubpfi_DRvOyuq28WdgH1VnCePy6o-c2Isnu9RnviZU
Host: example.org
Cookie:
Body
{
"article": {
"title": "Legacy Community-Services Analyst",
"content": {
"id": null,
"name": null,
"body": "Et voluptas et. Libero iure veniam. Rerum reprehenderit odit.",
"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/"5d81e8407d3833dcf101cc91dfe9c791"
cache-control: max-age=0, private, must-revalidate
x-request-id: e0df8542-531e-426d-84aa-f55e2c88254f
x-runtime: 0.011712
content-length: 65
Body
{
"article": {
"id": 32,
"title": "Legacy Community-Services Analyst"
}
}