Update an article
Articles
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.eyJzdWIiOiI4Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTQ4LCJleHAiOjE3NDAxNDM1NDgsImp0aSI6ImRjZGY1NThlLTRjNDgtNDk5Zi1iM2I1LTY0NjM1NWNkNzRkOSJ9.hoX6xY_eZH9Bx1L_z4yqmcPeMxughwS0Olu3iigLWtQ
Host: example.org
Cookie:
Body
{
"article": {
"title": "New title",
"content": {
"id": null,
"name": null,
"body": "Et provident necessitatibus. Ullam animi numquam. Minus minima dolor.",
"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: 332a1f9f-9ccf-4df4-9fde-46ece69d7522
x-runtime: 0.015599
content-length: 41
Body
{
"article": {
"id": 15,
"title": "New title"
}
}