Skip to main content
PUT
/
v3
/
users
/
{user}
Edit a user
curl --request PUT \
  --url http://localhost/api/v3/users/{user} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "email": "jsmith@example.com",
  "throttle": 123,
  "password": "<string>",
  "old_password": "<string>",
  "password_confirmation": "<string>",
  "roles": [
    {
      "id": 123
    }
  ]
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "email": "<string>",
    "throttle": 123,
    "roles": [
      {
        "id": 123,
        "handle": "<string>"
      }
    ],
    "permissions": [
      {
        "id": 123,
        "handle": "<string>"
      }
    ],
    "created_at": "<string>",
    "updated_at": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

user
integer
required

The user ID

Body

application/json
name
string
email
string<email>
throttle
integer | null
password
string
Minimum string length: 8
old_password
string
password_confirmation
string
Minimum string length: 8
roles
object[]
Minimum array length: 1

Response

User

data
User · object
required