---
title: "POST /sudoers/{entryname}/edit_sudoer/"
method: POST
path: "/v1/sudoers/{entryname}/edit_sudoer/"
---

# POST /sudoers/{entryname}/edit_sudoer/

`POST /v1/sudoers/{entryname}/edit_sudoer/`

Modify a specific SUDOer entry

## Path parameters

- `entryname` string, required

## Request body

- object
  - `users` object — add/remove users
    - `to_add` string[]
    - `to_remove` string[]
  - `groupname` object — add/remove groups
    - `to_add` string[] — give the name of the group to be added
    - `to_remove` string[] — give the name of the group to be removed
  - `hosts` object — add/remove hosts
    - `to_add` string[] — add hostnames
    - `to_remove` string[] — remove hostnames
  - `commands` object — add/remove commands
    - `to_add` string[] — add commands
    - `to_remove` string[] — remove commands
  - `options` object — add/remove options
    - `to_add` string[] — add options
    - `to_remove` string[] — remove options
    - `enabled` boolean
  - `runas_users` object — add/remove runas_users
    - `to_add` string[] — add runas_users
    - `to_remove` string[] — remove runas_users
  - `runas_groups` object — add/remove runas_groups
    - `to_add` string[] — add runas_groups
    - `to_remove` string[] — remove runas_groups
  - `not_before` string, date — enter the not_before date
  - `not_after` string, date — enter the not_after date
  - `order` integer — enter order in which entry is applied

## Response `200`

200

- object

## Other responses

- `400` — 400

---

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