PUT api/v1/locations/{locationId}/updateusercode

Used to update the usercode after login, so sessionid, oldUsercode, NewUserCode, UserId, LocationID is must Equivalent SOAP API : UpdateUserCode

Request Information

URI Parameters

NameDescriptionTypeAdditional information
locationId

loc

integer

Required

Body Parameters

usercodes

UserCodeDetails
NameDescriptionTypeAdditional information
oldUsercode

string

None.

newUsercode

string

None.

userId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "oldUsercode": "sample string 1",
  "newUsercode": "sample string 2",
  "userId": 3
}

application/xml, text/xml

Sample:
<UserCodeDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2WebAPIController.Models.V1">
  <newUsercode>sample string 2</newUsercode>
  <oldUsercode>sample string 1</oldUsercode>
  <userId>3</userId>
</UserCodeDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResults

BaseResults
NameDescriptionTypeAdditional information
ResultCode

integer

None.

ResultData

string

None.

Response Formats

application/json, text/json

Sample:
{
  "ResultCode": 1,
  "ResultData": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TC2Utilities.RestApi">
  <ResultCode>1</ResultCode>
  <ResultData>sample string 2</ResultData>
</BaseResults>