api_users_update
PUT
/api/users/{username}/
const url = 'https://example.com/api/users/example/';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"username":"example","email":"hello@example.com","name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/users/example/ \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "username": "example", "email": "hello@example.com", "name": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”username
required
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
string
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "username": "example", "email": "hello@example.com", "name": "example"}object
Example generated
username=example&email=hello%40example.com&name=exampleResponses
Section titled “Responses”Media typeapplication/json
object
Example generated
{ "username": "example", "email": "hello@example.com", "name": "example"}