---
title: "Edit auth key"
method: POST
path: "/auth_keys/edit/{authKeyId}"
tags: ["AuthKeys"]
---

# Edit auth key

`POST /auth_keys/edit/{authKeyId}`

## Path parameters

- `authKeyId` union, required
  - string
  - string, uuid

## Request body

- object
  - `read_only` boolean
  - `comment` string
  - `allowed_ips` string[], nullable

## Response `200`

Auth key response

- object
  - `AuthKey` AuthKey
    - `id` string
    - `uuid` string, uuid
    - `authkey_start` string
    - `authkey_end` string
    - `created` string
    - `expiration` string, date-time, nullable
    - `read_only` boolean
    - `user_id` string
    - `comment` string
    - `allowed_ips` string[], nullable
    - `last_used` string, nullable
  - `User` object
    - `id` string
    - `org_id` string
    - `email` string, email, nullable

## Other responses

- `403` — Authentication failed. Please make sure you pass the API key of an API enabled user along in the Authorization header.
- `404` — The specified resource was not found
- `default` — Unexpected API error

---

[API](https://skmtc.net/misp/apis/misp-automation-api.md) · [All operations](https://skmtc.net/misp/apis/misp-automation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/misp/misp-automation-api/versions/88b34ff032a1/schema)
