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.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0ODUxNjQ5MiwiZXhwIjoxNzUxMTA4NDkyLCJqdGkiOiJjMGY4Nzg3ZC1iNDhhLTQwNDEtYmYwNC1mMTU4MjZiY2MyOTMifQ.Y18jZAr0mV7d48Ptu0SMbTomXc3m5b0G4RBTnCnnqyQ
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "New name",
"content": "Aspernatur nemo repellat. In ut dolor. Voluptate quia et.",
"operator_full_name": "Dana Reilly",
"operator_position": "Lead Consulting Facilitator",
"usage": [
[
"login",
"create_account"
]
]
}
}
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/"2ab394b3e9ffca7b634663806e755ec9"
cache-control: max-age=0, private, must-revalidate
x-request-id: 7fe38d35-1b9f-48b4-ba15-da361227a925
x-runtime: 0.020756
content-length: 348
Body
{
"auth_template": {
"id": 5,
"content": "Aspernatur nemo repellat. In ut dolor. Voluptate quia et.",
"image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_full_name": "Dana Reilly",
"operator_image": {
"id": null,
"signed_id": null,
"byte_size": null,
"filename": "",
"url": null
},
"operator_position": "Lead Consulting Facilitator"
}
}