Update a auth template(admin)
Auth Templates
PUT auth template(admin)
Endpoint
PUT /api/v1/auth_templates/:id
Request
Route
PUT /api/v1/auth_templates/5
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MDk1MDQyOSwiZXhwIjoxNzYzNTQyNDI5LCJqdGkiOiJiNWZhNWM2ZS1lNzU5LTRhMjctOWZiZC01Y2JkOTJiNjE5YTAifQ.Rk-8ziarGE4ZwdiqvbeD_htM1YrCbVAGbiQX15BDQjk
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "New name",
"content": "Ea ut ab. Eligendi enim aut. Voluptatum ad natus.",
"operator_full_name": "Freddie Kuhlman",
"operator_position": "Consulting Assistant",
"usage": [
[
"login",
"create_password"
]
]
}
}
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/"01d07b7f20f6c5ab1ec9a43d8be2a0d1"
cache-control: max-age=0, private, must-revalidate
x-request-id: b120e841-58d2-40cd-9453-f2df93503659
x-runtime: 0.009073
content-length: 337
Body
{
"auth_template": {
"id": 5,
"content": "Ea ut ab. Eligendi enim aut. Voluptatum ad natus.",
"image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_full_name": "Freddie Kuhlman",
"operator_image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_position": "Consulting Assistant"
}
}