---
title: "Edit server"
method: PUT
path: "/servers/edit/{serverId}"
tags: ["Servers"]
---

# Edit server

`PUT /servers/edit/{serverId}`

## Path parameters

- `serverId` union, required
  - string
  - string, uuid

## Request body

- Server
  - `id` string
  - `name` string
  - `url` string
  - `authkey` string
  - `org_id` string
  - `push` boolean
  - `pull` boolean
  - `push_sightings` boolean
  - `push_galaxy_clusters` boolean
  - `pull_galaxy_clusters` boolean
  - `lastpulledid` string, nullable
  - `lastpushedid` string, nullable
  - `organization` string, nullable
  - `remote_org_id` string
  - `publish_without_email` boolean
  - `unpublish_event` boolean
  - `self_signed` boolean
  - `pull_rules` string — Stringified JSON rules for pulling events from this server.
  - `push_rules` string — Stringified JSON rules for pushing events from this server.
  - `cert_file` string, byte, nullable — Base64 encoded certificate
  - `client_cert_file` string, byte, nullable — Base64 encoded client certificate
  - `internal` boolean
  - `skip_proxy` boolean
  - `caching_enabled` boolean
  - `priority` string, nullable
  - `cache_timestamp` boolean

## Response `200`

Server response

- object
  - `Server` Server
    - `id` string
    - `name` string
    - `url` string
    - `authkey` string
    - `org_id` string
    - `push` boolean
    - `pull` boolean
    - `push_sightings` boolean
    - `push_galaxy_clusters` boolean
    - `pull_galaxy_clusters` boolean
    - `lastpulledid` string, nullable
    - `lastpushedid` string, nullable
    - `organization` string, nullable
    - `remote_org_id` string
    - `publish_without_email` boolean
    - `unpublish_event` boolean
    - `self_signed` boolean
    - `pull_rules` string — Stringified JSON rules for pulling events from this server.
    - `push_rules` string — Stringified JSON rules for pushing events from this server.
    - `cert_file` string, byte, nullable — Base64 encoded certificate
    - `client_cert_file` string, byte, nullable — Base64 encoded client certificate
    - `internal` boolean
    - `skip_proxy` boolean
    - `caching_enabled` boolean
    - `priority` string, nullable
    - `cache_timestamp` boolean

## 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/revisions/88b34ff032a1/schema)
