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.eyJzdWIiOiIzNTciLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NTMyNjYxNzgsImV4cCI6MTc1NTg1ODE3OCwianRpIjoiYTI3M2M2NGYtNjExYy00YjRiLTg4YzYtN2VjZTQzMjY5OTBiIn0.UvY_DpihCKaHzdTTxFNI7UwQfSFd3yjgjTSzsGxNbtU
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: 84c7f6cc-5d37-4612-a5c9-3bdc9a7c4e74
x-runtime: 0.010419
content-length: 60
Body
{
"faq": {
"id": 9,
"content": "New content",
"title": "New title"
}
}