Update a legal doc
Legal Docs
PUT legal doc
Endpoint
PUT /api/v1/legal_docs/:id
Parameters
| Name | Description |
|---|---|
| article[title] required | Title of the article |
| article[content] required | Content of the article |
Request
Route
PUT /api/v1/legal_docs/33
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNDk4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYzNjI2Mzk5LCJleHAiOjE3NjYyMTgzOTksImp0aSI6ImM2NDAxMzA2LTBiZDAtNDE1ZS1hNmJmLTY1ZGY0MGUyMDhmYiJ9.aOsGw-4FjTaPYXNq_VZEXlzSf1Awfmi2GXUCe23Jk9o
Host: example.org
Cookie:
Body
{
"article": {
"title": "New Title",
"content": {
"id": null,
"name": null,
"body": "Eos aut sint. Fugiat rerum sunt. Porro laborum rerum.",
"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/"533f8decb5ee5d3c23444acf27716c09"
cache-control: max-age=0, private, must-revalidate
x-request-id: caa3057e-5c83-489f-b04a-210ca4bda5e0
x-runtime: 0.016635
content-length: 41
Body
{
"article": {
"id": 33,
"title": "New Title"
}
}