Articles

Reorder 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.eyJzdWIiOiIxMCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MDk1MDQyOSwiZXhwIjoxNzYzNTQyNDI5LCJqdGkiOiI5NGQxMTZlZi04YjhjLTQ5MTEtYmY3ZC0xYzEyYTNjNmY2MGYifQ.wLnLlTlPvnRLTqdEigBIlTYJobPQqqFvyxdPHAD0Qqk
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/"ec20c045a66f63b5fb18317f3367405f"
cache-control: max-age=0, private, must-revalidate
x-request-id: e0116af2-946d-4791-ad24-e4bfbceeb99f
x-runtime: 0.009482
content-length: 150

Body

{
  "articles": [
    {
      "id": 17,
      "title": "Regional Marketing Specialist"
    },
    {
      "id": 19,
      "title": "Central Education Manager"
    },
    {
      "id": 18,
      "title": "Technology Engineer"
    }
  ]
}