...
Key | Header Information (value) |
---|---|
Content Type | application/json |
ACCESS_TOKEN | To fetch get the Access Token, refer below table for more details. |
...
Operation | Method | API Endpoint | Example Payload | Example Response | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Fetch Get Access Token | POST | /rest/login/user | { "username":"{User Name}", "password":"{Password}" } |
|
...
Operation | Method | API Endpoint | Example Payload | Example and Notes | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create User | POST | /rest/invitation?resourceIdentifier=users | { "roleInfo":"[{\"partner\":1,\"roles\":[2],\"defaultRole\":2}]", | Example Response:
By default this This endpoint creates an invitation and returns return invitation id in response that can be used which you will use while creating the user. | |||||||
POST | /rest/users/createuser | { | Example Response:
Use the invitation Id from the above Create User response. | ||||||||
Update User | PUT | /rest/users/{userId} | { "company":"Adeptia", | Example Response:
| |||||||
Fetch Get User | GET | /rest/user/{userId} | |||||||||
Fetch Get All Users (Connect Portal) | GET | /rest/user?limit={maximum number of users} | Using this API, you will get only Connect Portal users. By default the value of limit is 1. Moreover, the limit stands for maximum number of users can be fetched from the database. | ||||||||
Activate User | PUT | /rest/users/activate/{userId}{} | EMPTY | ||||||||
Deactivate User | PUT | /rest/users/deactivate/{userId}{} | EMPTY | ||||||||
Delete User | PUT | /rest/users/updateowner?oldUserId={userId}&deleteUser=true{} | EMPTY | By default this endpoint will delete the user who has no dependency else an exception message to move objects will be generated. |
...