Reorder articles
Articles
PATCH reorder articles
Endpoint
PATCH /api/v1/articles/reorder
Request
Route
PATCH /api/v1/articles/reorder
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0MjQ2NDkwMCwiZXhwIjoxNzQ1MDU2OTAwLCJqdGkiOiJiZGU2NTlkMS0xNzhlLTQzZTEtYTVkNi0xYmFjZjE3MjcyNjcifQ.9wdUTzk0g5ANqBK8CssUF4-WdIUi4EecODOBr0E8HUA
Host: example.org
Cookie:
Body
{
"article": {
"article_ids": [
17,
19,
18
]
}
}
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
per-page: 20
total: 3
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"8c6ecbf30b1eb26720a0390293027358"
cache-control: max-age=0, private, must-revalidate
x-request-id: e7682849-4a17-4505-9560-bb0ec65dc98b
x-runtime: 0.027555
content-length: 137
Body
{
"articles": [
{
"id": 17,
"title": "Human Marketing Liaison"
},
{
"id": 19,
"title": "Corporate Engineer"
},
{
"id": 18,
"title": "Consulting Engineer"
}
]
}