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.eyJzdWIiOiIxNDk3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2Mzk4LCJleHAiOjE3NjYyMTgzOTgsImp0aSI6ImE2MGU5ZjYzLTQ5YWQtNDkxZC1hYzQ2LTk0NWIzNzVlY2UwZiJ9.5EH8uXTcLzd7izVhMLsenbAM1ucAHWrCgU-AszG6r_s
Host: example.org
Cookie:
Body
{
"article": {
"title": "Banking Consultant",
"content": {
"id": null,
"name": null,
"body": "Ipsa eveniet velit. Sunt velit aut. Adipisci aut vel.",
"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/"7b3ad16e1c67be0448700e7dfde8f971"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2339641c-ca2f-4d65-b4a6-7b88545abc4c
x-runtime: 0.031523
content-length: 50
Body
{
"article": {
"id": 32,
"title": "Banking Consultant"
}
}