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.eyJzdWIiOiIxNDc4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjEzLCJleHAiOjE3NTU4NTgyMTMsImp0aSI6IjY5ZmM4ZDFiLTZjNTAtNDU3Yy04YmI4LWUxZGJkNzQxNzc3ZSJ9.MfoYsgnSYx-yKLlrSvjgkkK1imMLzO22vorXxWRGwgo
Host: example.org
Cookie: 

Body

{
  "article": {
    "title": "New Title",
    "content": {
      "id": null,
      "name": null,
      "body": "Facilis non et. Earum ut iusto. Qui tempore fugit.",
      "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: 16ce26fc-0ea9-443e-8c05-44a7bc89b758
x-runtime: 0.014123
content-length: 41

Body

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