Skip to content

UpdateUser

Luis Huertas edited this page Feb 7, 2022 · 1 revision

Update User

Updates one user

Base Url : http://your-app-base-url.com

Endpoint : /auth/user/

Method : PUT

Auth required : Yes

header key header value description
Authorization BEARER jwtToken access_token generated using /token

Permissions required : Access string 'OAUTH2_user:create'

Request

type: params

{
  "subjectId": 1
}

type: body

{
  "name": "New Name"
}

Request Fields Description

key value description
name New Name The new name of the user
subjectId 1 The subject id of the user

Response

{
  "code": 200001,
  "message": "User updated"
}

Response Fields Description

key value description
code 200001 result code
message User added result message

Response codes

  • If response is success, http status will be 201 and code in body will be 200001
code description
500000 Not categorized error
400001 Subject id is invalid
400000 Invalid body
200001 user was updated
Clone this wiki locally