PUT
/
users
curl --location --request PUT 'https://api.mixpeek.com/users' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "connections": [
        {
            "engine": "mongodb",
            "host": "db.example.com",
            "port": 27017,
            "database": "example_db",
            "username": "user",
            "password": "pass"
        }
    ]
}'
{
  "connections": [
    {}
  ]
}

Request

connections
array

Database connections associated with the user. This array specifies the databases the user can access, including connection details like the database engine, host, and credentials, enabling data operations within Mixpeek.

Response

connections
array

Confirms the updated database connections for the user, detailing the new or modified access configurations.