Operations for a Single User.
/cnbs/v1/apu/users/id
GET | POST
cURL:
curl -X GET "https://<<your.server.here>>/cnbs/v1/apu/users/id?sap-client=800&sap-language=EN&apiid=CNBSMV01R&user_id=A959E6704DF21EEAA1CD6258E10BEA56 -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI="
The response consists of a user list table with a single record (data) and a status (status).
JSON:
{
"data": [
{
"user_id": "A959E6704DF21EEA97F78B7E1430CA56",
"login": "sjones",
"first_name": "Steven",
"last_name": "Jones",
"company": "CNBS",
"email": "steven.jones@cnbssoftware.com",
"invite_token": "",
"num_logins": 5,
"status": "active",
"password_reset_token": "",
"salt": "dfhskfdjowejsks",
"hash": "yuerwiiweruiew",
"primary_account_type_id": "Payer",
"user_role": "user",
"confirmation_token": "",
"created_date": "00000000",
"created_time": "000000",
"updated_date": "20200413",
"updated_time": "130830",
"last_login_date": "00000000",
"last_login_time": "000000",
"last_pwd_change_date": "00000000",
"last_pwd_change_time": "000000",
"require_password_change": "",
"third_party_id": ""
}
],
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed ,document selected 1"
}
}
JSON body Payload:
{
"action": "create",
"data": {
"user_id": "",
"login": "PostmanTemp2",
"first_name": "Postman",
"last_name": "TestUser",
"company": "CNBS",
"email": "postmantemp@cnbssoftware.com",
"invite_token": "",
"num_logins": 0,
"status": "active",
"password_reset_token": "",
"salt": "dummyvaluesalt",
"hash": "dummyvaluehash",
"primary_account_type_id": "Payer",
"user_role": "User",
"confirmation_token": "",
"created_date": "",
"created_time": "",
"updated_date": "00000000",
"updated_time": "000000",
"last_login_date": "00000000",
"last_login_time": "000000",
"last_pwd_change_date": "00000000",
"last_pwd_change_time": "000000",
"require_password_change": "",
"third_party_id": ""
}
}
cURL:
curl -X POST "https://<<your.server.here>>/cnbs/v1/apu/users/id?sap-client=800&sap-language=EN&apiid=CNBSMV01R -H "accept: application/json" -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -d "{ \"action\": \"create\", \"data\": { \"user_id\": \"\", \"login\":\"PostmanTemp2\", \"first_name\": \"Postman\", \"last_name\": \"TestUser\", \"company\": \"CNBS\", \"email\": \"postmantemp@cnbssoftware.com\", \"invite_token\": \"\", \"num_logins\": 0, \"status\": \"active\", \"password_reset_token\": \"\", \"salt\": \"dummyvaluesalt\", \"hash\": \"dummyvaluehash\", \"primary_account_type_id\": \"Payer\", \"user_role\": \"User\", \"confirmation_token\": \"\", \"created_date\": \"\", \"created_time\": \"\", \"updated_date\": \"00000000\", \"updated_time\": \"000000\", \"last_login_date\": \"00000000\", \"last_login_time\": \"000000\", \"last_pwd_change_date\": \"00000000\", \"last_pwd_change_time\": \"000000\", \"require_password_change\": \"\", \"third_party_id\": \"\" }}"
Same definition as above GET response. A created user record will include the user_id in the response. Modified records will include changed data in the response. Delete will not return a response detail record.