Legal Docs

Update a legal doc

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.eyJzdWIiOiIxNDYwIiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQxLCJleHAiOjE3NDUwNTY5NDEsImp0aSI6IjJjNzFiZWEwLWEzNWYtNDRmYy1hZDVhLWVmNjE0MzI1ZjJjNCJ9.4Gp-0ALQE7vLgoTsU5xmXygrsctpnC4cMw2Iz2ZMwc4
Host: example.org
Cookie: 

Body

{
  "article": {
    "title": "New Title",
    "content": {
      "id": null,
      "name": null,
      "body": "Vel provident labore. Totam vel odio. Suscipit vero accusantium.",
      "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: df761e8c-345e-42d9-9dc0-155112a6bc60
x-runtime: 0.010340
content-length: 41

Body

{
  "article": {
    "id": 33,
    "title": "New Title"
  }
}