Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This API is useful for mainly Update the user object.

Mandatory Fields :

  1. First Name
  2. Id
  3. Last Name
  4. Email Address
  5. Domain Name
  6. Login Name
  7. Site Names
  8. CP Titles
  9. Activity Status
  10. Department Name

Unique Field :

  1. Email Address

Non Changeable Fields :

...

Method

...

URL

...

. You can update user through the HTTP PUT URL  http://<host>:<port>/catissuecore/rest/ng/users

 

Below are the attributes which need to be sent in the request body:

Parameter
Details
firstNameFirst name of the user
middleNameMiddle name of the user
domainNameIt is the name of the authentication domain. You cannot able to change domain of the user once user created  
emailAddressEmail Address of the user. This attribute should be unique in catissue application
loginName

Login Name through which user can login to catissue application, should be unique in authentication domains.

You cannot able to change domain of the user once user created

siteNamesName of the sites to which the user belongs
cpTitlesName of the collection protocols to which user belongs.
activityStatus

Activity status of the user, permissible values are

{active, closed, pending, disabled}

deptNameName of department to which user belongs
comments [optional]comments on user given by admin while approval
countryCountry of the user
state [optional]state of the user
city [optional]city of the user
zipCodezipCode of the user
phoneNumber [optional]Phone number of the user
faxNumber [optional]Fax number of the user


API Example :

URLcatissuecore/rest/ng/users/{userId}
MethodPUT
Requestapplication/json
json{
    "lastName":"Piterson",
    "firstName":"Sam",
    "domainName":"catissue",
    "emailAddress":"sam.piterson@live.com",
    "loginName":"samPiterson",
    "siteNames":["My group", "New Site"],
    "cpTitles":["MyCp", "Test Cp"],
    "activityStatus":"Active",
    "deptName":"Department of onchology",
    "comments":"bla bla bla",
    "city":"Jalgaon",
    "state":"Maharashtra",
    "country":"India",
    "zipCode":"425022",
    "faxNumber":"434343AS",
    "phoneNumber":"654323",
}

Response

{

    "id" : "1",
    "lastName":"Piterson",
    "firstName":"Sam",
    "domainName":"catissue",
    "emailAddress":"sam.piterson@live.com",
    "loginName":"samPiterson",
    "siteNames":["My group", "New Site"],
    "cpTitles":["MyCp", "Test Cp"],
    "activityStatus":"Active",
    "deptName":"Department of onchology",
    "comments":"bla bla bla",
    "city":"Jalgaon",
    "state":"Maharashtra",
    "country":"India",
    "zipCode":"425022",
    "faxNumber":"434343AS",
    "phoneNumber":"654323"
}

 

...