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.eyJzdWIiOiIxMyIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc0ODUxNjQ5MiwiZXhwIjoxNzUxMTA4NDkyLCJqdGkiOiIxMDQ1NTE3NS1iMTU3LTQ2NDEtOTBhMS1mZjAyY2ZhOTYyN2YifQ.GexxZZihWPqNpotocO_pE0tQKyW6VcpZ7BbXRC3DYA4
Host: example.org
Cookie:
Body
{
"auth_template": {
"name": "ut",
"content": "Sed officiis nulla. Enim in repellendus. Voluptatibus sit mollitia.",
"operator_full_name": "Carmen Bosco",
"operator_position": "Internal Advertising Analyst",
"usage": [
[
"company_details",
"create_account"
]
],
"image": "eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--332cec50a102f254912a5acdfc48715235512b78",
"operator_image": "eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--5bdb04ad582dec5cf5ad1afd24fb73c24cbe2982"
}
}
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/"73e82284e5b067b7791b0e3ca1a350f6"
cache-control: max-age=0, private, must-revalidate
x-request-id: 91595121-0a62-4006-b885-d8284043f8ee
x-runtime: 0.105019
content-length: 854
Body
{
"auth_template": {
"id": 4,
"content": "Sed officiis nulla. Enim in repellendus. Voluptatibus sit mollitia.",
"image": {
"id": 6,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--332cec50a102f254912a5acdfc48715235512b78",
"byte_size": 596,
"filename": "test",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NiwicHVyIjoiYmxvYl9pZCJ9fQ==--332cec50a102f254912a5acdfc48715235512b78/test"
},
"operator_full_name": "Carmen Bosco",
"operator_image": {
"id": 7,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--5bdb04ad582dec5cf5ad1afd24fb73c24cbe2982",
"byte_size": 596,
"filename": "test",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6NywicHVyIjoiYmxvYl9pZCJ9fQ==--5bdb04ad582dec5cf5ad1afd24fb73c24cbe2982/test"
},
"operator_position": "Internal Advertising Analyst"
}
}