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.eyJzdWIiOiIxNDU2Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDY3LCJleHAiOjE3NjM1NDI0NjcsImp0aSI6ImY0ZWI2YTY5LTNjMmYtNGRlMy1hZWEyLTcwYmUzNjEwYjNmYyJ9._l43_xUt9QxtkkVHGgpElWi1WqGzz_igUNAXUNKtRKU
Host: example.org
Cookie:
Body
{
"article": {
"title": "Product Marketing Architect",
"content": {
"id": null,
"name": null,
"body": "Non voluptas dolores. Sequi ipsum quia. Unde voluptatem dolor.",
"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/"1396517c064270dd43d2721574fa1ab3"
cache-control: max-age=0, private, must-revalidate
x-request-id: c2c4714f-e60c-4b9d-b8e3-4b6f257a837d
x-runtime: 0.010082
content-length: 59
Body
{
"article": {
"id": 32,
"title": "Product Marketing Architect"
}
}