Legal Docs

Create a legal doc

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.eyJzdWIiOiIxNDc3Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzUzMjY2MjEzLCJleHAiOjE3NTU4NTgyMTMsImp0aSI6ImZiYjlhZWM3LTg5Y2QtNDA2OC1hOWYwLWU0YmZjMjhkMTcxZiJ9.gLqFLpBgVPwNXPGP3pgav0gMv-HEwcLtn6vAV5OMJtk
Host: example.org
Cookie: 

Body

{
  "article": {
    "title": "Consulting Representative",
    "content": {
      "id": null,
      "name": null,
      "body": "At et distinctio. Numquam eveniet corporis. Exercitationem consequatur et.",
      "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/"7415f51dd953c954ff0fdea0f019339f"
cache-control: max-age=0, private, must-revalidate
x-request-id: fdcdfff4-0351-4d51-afc4-0222e5635e20
x-runtime: 0.017635
content-length: 57

Body

{
  "article": {
    "id": 32,
    "title": "Consulting Representative"
  }
}