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.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTczNzU1MTU0OCwiZXhwIjoxNzQwMTQzNTQ4LCJqdGkiOiIxZjA2OTM5Zi00OTMwLTRhMjQtOGUyOS0wMjA1MGM1NDFkNTcifQ.uT3T01AY2asewE71IxXkEW1sok8qoX-stAFVO6so7Y4
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "New name",
"content": "Ad ut aliquid. Voluptatem maxime aut. Qui ea quas.",
"operator_full_name": "Joya Abernathy",
"operator_position": "International Mining Consultant",
"usage": [
[
"company_details",
"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/"29d9e94f01957d61b44fa1de763abce8"
cache-control: max-age=0, private, must-revalidate
x-request-id: 5dd3e047-36be-4eca-9a34-e2824f65988f
x-runtime: 0.032756
content-length: 348
Body
{
"auth_template": {
"id": 5,
"content": "Ad ut aliquid. Voluptatem maxime aut. Qui ea quas.",
"image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_full_name": "Joya Abernathy",
"operator_image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_position": "International Mining Consultant"
}
}