Articles

Update an article

PUT article

Endpoint

PUT /api/v1/articles/:id

Parameters

Name Description
article[title] required Article title
article[content] required Article content
article[image] Article image

Request

Route

PUT /api/v1/articles/15

Headers

Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTAwLCJleHAiOjE3NDUwNTY5MDAsImp0aSI6ImQ4MGM1OTEyLWY1MWUtNDRhMC1iY2RkLTdlZmU5NjE5ZTZhYSJ9.XCSUZ1BXHXPpRQ4Uu2Yd6s_FPUGe2JFdF5HYV7uLOCM
Host: example.org
Cookie: 

Body

{
  "article": {
    "title": "New title",
    "content": {
      "id": null,
      "name": null,
      "body": "In error magnam. Necessitatibus omnis quis. Voluptate eum sint.",
      "record_type": null,
      "record_id": null,
      "created_at": null,
      "updated_at": null
    }
  }
}

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/"450bdb2dea8e8fa57e95fba6094942e9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 296dc4a9-f0a4-41c7-97d9-39557e21fb4f
x-runtime: 0.023636
content-length: 41

Body

{
  "article": {
    "id": 15,
    "title": "New title"
  }
}