Got feedback or spotted a mistake?

Leave a comment at the end of this page or email contact@krishagni.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

 This API available for patch the user object

Mandatory Fields :

  1. userId

Non Patchable Fields :

  1. Login Name
  2. Domain Name

Api :

Method
URL
PATCHcatissuecore/rest/ng/users/{userId}
Requestapplication/json
json{
    "lastName":"Piterson",
    "firstName":"Sam"
}

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 resourcesUser has been updated successfully
400All requestsInvalid parameters, e.g  duplicate Login Name, duplicate Email Address, blank First Name etc
401All requestsAuthorization failed, User doesn’t have Authority
404All requestsUser not found, User with given details not present in the system
500All requestsInternal server error, Encountered server error while performing operations

 

 

 

 

  • No labels