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.eyJzdWIiOiIxNDU3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzYwOTUwNDY3LCJleHAiOjE3NjM1NDI0NjcsImp0aSI6IjkxMDY2YjYwLThmNDQtNDk0ZC04YTFjLTEzNGUwYmI1Mjc4NCJ9.Ar2-Id_O_S8IODVg5pfiSn2HAjY-GoQ53mcnppN2zo8
Host: example.org
Cookie: 

Body

{
  "article": {
    "title": "New Title",
    "content": {
      "id": null,
      "name": null,
      "body": "Repudiandae voluptas sed. Natus quidem dolores. Optio omnis tempore.",
      "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: 9f38a8c9-3179-4153-accb-e4fd46808352
x-runtime: 0.011554
content-length: 41

Body

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