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.eyJzdWIiOiIzNTgiLCJzY3AiOiJ1c2VyIiwiYXVkIjpudWxsLCJpYXQiOjE3NDI0NjQ5MTMsImV4cCI6MTc0NTA1NjkxMywianRpIjoiZWJmMGVlODItYTQ5Zi00NDFmLTlmOGEtNDAwOTYxNjEzZWZhIn0.DAmdanCKxe2reKMz5m8xnzG6gqZ2RvJI4qZbsIbUUBc
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: 7e4941af-8367-4fb9-8cb0-779f1808d3ff
x-runtime: 0.006854
content-length: 60
Body
{
"faq": {
"id": 9,
"content": "New content",
"title": "New title"
}
}