Versions Compared

Key

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

This API available for creating new user.

Mandatory Fields :

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

Unique Fields :

  1. Login Name (Should be unique in same domain)
  2. Email Address

Api :

Method
URL
POSTcatissuecore/rest/ng/users
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"
}

 

 Error Cases :

code
Applies to
Status Message
200All resources User has been created successfully
400All requestsInvalid parameters, this will also includes application specific error messagese.g  duplicate Login Name, duplicate Email Address, blank First Name etc
401All requestsAuthorization failed, User doesn’t have Authority
500All requestsInternal server error, Encountered server error while performing operations