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.eyJzdWIiOiIxNCIsInNjcCI6InVzZXIiLCJhdWQiOm51bGwsImlhdCI6MTc2MzYyNjM1OSwiZXhwIjoxNzY2MjE4MzU5LCJqdGkiOiI0MGU3YjhjNS1mMjE3LTQxMTctODUzOC00NTU2MmE5MzQ3YmUifQ.yO6FfQ9n9qinYRsz8RQsyEA9x8FxX0pNVdB2JLhbXPE
Host: example.org
Cookie: 

Body

{
  "auth_template": {
    "name": "New name",
    "content": "Explicabo ea similique. Autem quis corrupti. Consequuntur natus nam.",
    "operator_full_name": "Cruz Moen",
    "operator_position": "Lead Farming Consultant",
    "usage": [
      [
        "login",
        "create_password"
      ]
    ]
  }
}

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/"83328fd6c03afa5cf1bebd3b35590202"
cache-control: max-age=0, private, must-revalidate
x-request-id: bbfef7aa-a1cc-462f-968a-5477098f1ed0
x-runtime: 0.008679
content-length: 353

Body

{
  "auth_template": {
    "id": 5,
    "content": "Explicabo ea similique. Autem quis corrupti. Consequuntur natus nam.",
    "image": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "operator_full_name": "Cruz Moen",
    "operator_image": {
      "id": null,
      "signed_id": null,
      "byte_size": null,
      "filename": "",
      "url": null
    },
    "operator_position": "Lead Farming Consultant"
  }
}