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.eyJzdWIiOiIxNDQ3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTgzLCJleHAiOjE3NDAxNDM1ODMsImp0aSI6IjUxYmM2ZDBmLTJlZjAtNDM4YS04N2YxLTU3OTdjYTc3OWFlZSJ9.MR96KJkge3pSwf-s2o6J7rGcBitT3GKE4QCuRdWJ1Uo
Host: example.org
Cookie:
Body
{
"article": {
"title": "Real-Estate Designer",
"content": {
"id": null,
"name": null,
"body": "Occaecati voluptatem laborum. Ipsa culpa reiciendis. Aperiam est nesciunt.",
"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/"275dde24b6e1e075a2b0439d0b4369ab"
cache-control: max-age=0, private, must-revalidate
x-request-id: 6482c6ec-f935-46ba-9727-ada469c3fcbd
x-runtime: 0.009892
content-length: 52
Body
{
"article": {
"id": 32,
"title": "Real-Estate Designer"
}
}