Skip to main content

Updating a Dealer / Sub-Dealer User

  • Endpoint: /vendor/users
  • HTTP Method: PUT
  • Request Content-Type: application/json
  • Response Content-Type: application/json
  • Authorization: Valid AccessToken is required. (See: 2. Authentication – Obtaining AccessToken)

Description

This service is used to update the information of an existing dealer or sub-dealer user. The user to be updated is identified by both DealerCode (dealer/sub-dealer code) and userCode (user code).

Note: This endpoint only updates user information. No changes are made to dealer or sub-dealer records.

Header Information

HeaderRequiredDescription
AuthorizationYesValid token in Bearer {AccessToken} format
Content-TypeYesapplication/json

Request Body

FieldTypeRequiredDescription
dealerCodestringYesDealer or sub-dealer member code to update
userCodestringYesCode of the user to be updated
namestringNoUser first name
surnamestringNoUser last name
emailstringNoUser email address
gsmstringNoMobile phone
isActivebooleanNoActive/inactive status
sendRegisterMailbooleanNoWhether to send notification email after update
tcknstringNoIndividual user TCKN
isAdminbooleanNoWhether the user has admin privileges
isMobileActivebooleanNoIs mobile access active
ruleNamearray(string)NoAuthorization set names (e.g., "ROLE_USER", "ROLE_MANAGER")
{  
"DealerCode": "MD001",
"userCode": "USR1001",
"name": "John",
"surname": "Doe",
"email": "[email protected]",
"gsm": "+905000000000",
"isActive": true,
"sendRegisterMail": false,
"tckn": "00000000000",
"isAdmin": true,
"isMobileActive": true,
"ruleName": [
"ROLE_USER",
"ROLE_MANAGER"
]
}

Notes & Best Practices

  • dealerCode and userCode uniquely identify the user to be updated.
  • It is recommended to send only the fields that need to be changed; otherwise, empty fields may overwrite existing data.
  • The ruleName array defines the user's authorization sets; it must exactly match the role names defined in the system.
  • If sendRegisterMail = true is sent, the system will send a notification email to the user.
  • If the token has expired, the request returns 401 Unauthorized; a new token must be obtained and the request retried.