Create a auth template(admin)
Auth Templates
POST auth template(admin)
Endpoint
POST /api/v1/auth_templates
Request
Route
POST /api/v1/auth_templates
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMyIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc1MzI2NjE2NiwiZXhwIjoxNzU1ODU4MTY2LCJqdGkiOiJlOGM2YzVkMy1mOWUyLTQ1NWQtOGI0Yi03N2Y4MWExZDQyZjkifQ.URqtXI5qVCFcbHkCaw991hd4X4dhOqfwagoUtrKJQP8
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "et",
"content": "Cumque necessitatibus voluptate. Cum tenetur alias. Sapiente repellat autem.",
"operator_full_name": "Gloria Hahn",
"operator_position": "Principal Assistant",
"usage": [
[
"login",
"create_password"
]
],
"image": "eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--f54e3b8f09d7b9ec73cecc9c5ff6ad70fcf7ef47",
"operator_image": "eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--b583c7a17b54d3dd6a65a59c4269dc7c009cde19"
}
}
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/"74eb1a47553c29b114af8ded36f41644"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9fe884e6-9f25-48fb-8cbd-da7632953f8d
x-runtime: 0.147189
content-length: 853
Body
{
"auth_template": {
"id": 4,
"content": "Cumque necessitatibus voluptate. Cum tenetur alias. Sapiente repellat autem.",
"image": {
"id": 6,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--f54e3b8f09d7b9ec73cecc9c5ff6ad70fcf7ef47",
"byte_size": 596,
"filename": "test",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--f54e3b8f09d7b9ec73cecc9c5ff6ad70fcf7ef47/test"
},
"operator_full_name": "Gloria Hahn",
"operator_image": {
"id": 7,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--b583c7a17b54d3dd6a65a59c4269dc7c009cde19",
"byte_size": 596,
"filename": "test",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--b583c7a17b54d3dd6a65a59c4269dc7c009cde19/test"
},
"operator_position": "Principal Assistant"
}
}