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.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0MjQ2NDkwMSwiZXhwIjoxNzQ1MDU2OTAxLCJqdGkiOiI2OWE1ZTRmNy1hYjU0LTQyOGUtYmJkYy02ODAxNWNkNjI1ZWYifQ.5Py3reUNZCGTxbVH-3GDG3ULaSrKiB5GzakrXaX9VIo
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "New name",
"content": "Reiciendis animi soluta. Atque ullam quisquam. Earum porro dolor.",
"operator_full_name": "Ahmed Bode",
"operator_position": "Mining Producer",
"usage": [
[
"create_account",
"login"
]
]
}
}
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/"0912668d0334a1b9ece831505166bb59"
cache-control: max-age=0, private, must-revalidate
x-request-id: fd1da280-86e1-424b-8525-e7b12addfffa
x-runtime: 0.045533
content-length: 343
Body
{
"auth_template": {
"id": 5,
"content": "Reiciendis animi soluta. Atque ullam quisquam. Earum porro dolor.",
"image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_full_name": "Ahmed Bode",
"operator_image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_position": "Mining Producer"
}
}