Auth Templates

Update a auth template(admin)

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.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc1MzI2NjE2NiwiZXhwIjoxNzU1ODU4MTY2LCJqdGkiOiI2MzZiMDkyZS03ZDk4LTRkMzgtYjFjYS01OGVmZjk1MmM0OGYifQ.6xZ5qOoX11d42VkwLargByoOnaARbeyidzbq0juuLKE
Host: example.org
Cookie: 

Body

{
  "auth_template": {
    "name": "New name",
    "content": "Harum omnis officia. Voluptas asperiores ipsa. Reprehenderit qui voluptatem.",
    "operator_full_name": "Jerry Hilpert",
    "operator_position": "Retail Associate",
    "usage": [
      [
        "login",
        "company_details"
      ]
    ]
  }
}

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/"e7a37c09868b2abd02a2cf19b07c4f1c"
cache-control: max-age=0, private, must-revalidate
x-request-id: 4eba8c1f-4934-43f9-bab7-d43d6e537fce
x-runtime: 0.031220
content-length: 358

Body

{
  "auth_template": {
    "id": 5,
    "content": "Harum omnis officia. Voluptas asperiores ipsa. Reprehenderit qui voluptatem.",
    "image": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "operator_full_name": "Jerry Hilpert",
    "operator_image": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "operator_position": "Retail Associate"
  }
}