Update a faq(admin)
Faqs
PUT faq(admin)
Endpoint
PUT /api/v1/faqs/:id
Request
Route
PUT /api/v1/faqs/9
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIzMzgiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3Mzc1NTE1NTgsImV4cCI6MTc0MDE0MzU1OCwianRpIjoiZjUxMTk3NDAtODQyNy00NGYyLTg0ZTAtNDQ4NTFiN2RjYWMzIn0.GhM1L63yRU_Jau_5g48GQqIZimg97G03jw_PvF9vh_k
Host: example.org
Cookie:
Body
{
"faq": {
"title": "New title",
"content": "New content"
}
}
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/"3f71e65a301dbbeccd6f47d9144746f2"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5f2a3ba1-535a-495b-a79f-5eccb553a8d8
x-runtime: 0.024860
content-length: 60
Body
{
"faq": {
"id": 9,
"content": "New content",
"title": "New title"
}
}