| Required role: | super-admin |
| POST | /users/update-deparment |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports tvpl.api.ServiceModel
Namespace Global
Namespace tvpl.api.ServiceModel
Public Partial Class UpdateUserResponse
Implements IResponseRequest
Public Overridable Property UpdatedId As Integer
Public Overridable Property Code As Integer
Public Overridable Property Message As String
End Class
Public Partial Class UserDeparmentRequest
Public Overridable Property UserId As Integer
Public Overridable Property DepartmentId As Integer
End Class
End Namespace
End Namespace
VB.NET UserDeparmentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /users/update-deparment HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
userId: 0,
departmentId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
updatedId: 0,
code: 0,
message: String
}