Ana içeriğe atla
PATCH
/
v1
/
users
/
update
Kullanıcı Güncelleme İşlemi
curl --request PATCH \
  --url https://api.iklim.co/v1/users/update \
  --header 'Content-Type: application/json' \
  --data '{
  "userId": "88a52d74-ebee-49a4-9631-cfe492f4bf53",
  "username": "newuser@domain.com",
  "password": "newStr0ng!P@ssw0rd",
  "firstName": "<string>",
  "midName": "<string>",
  "lastName": "<string>",
  "locale": "tr_TR",
  "timezone": "Europe/Istanbul",
  "roles": "['\''API_USER'\'']",
  "status": "INACTIVE",
  "empty": true
}'
{
"userId": "8e94a551-5b86-40ba-ae55-b019dee5cc25",
"username": "name@domain.com",
"firstName": "John",
"midName": "Bob",
"lastName": "Doe",
"locale": "tr_TR",
"timezone": "Europe/Istanbul",
"roles": "API_USER",
"status": "INACTIVE",
"account": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "INDIVIDUAL",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"mobilePhoneNumber": "<string>",
"location": "<string>",
"company": "<string>",
"industry": "<string>",
"profilePictureUrl": "<string>",
"subscriptionPlan": "NONE",
"emailVerified": true,
"mobilePhoneNumberVerified": true
}
}

Body

application/json
userId
string
required

Güncellenen Kullanıcının Kimlik Belirteci

Example:

"88a52d74-ebee-49a4-9631-cfe492f4bf53"

username
string

Yeni Kullanıcının Adı. Bu Alanı Kullanıcının Kendisi veya POWER_USER Yetkisine Sahip Kullanıcılar Güncelleyebilir!

Example:

"newuser@domain.com"

password
string

Kullanıcının Yeni Şifresi. Bu Alanı Sadece ADMIN Yetkisine Sahip Kullanıcılar Güncelleyebilir!

Example:

"newStr0ng!P@ssw0rd"

firstName
string

Kullanıcının Yeni İlk Adı

midName
string

Kullanıcının Yeni Göbek Adı

lastName
string

Kullanıcının Yeni Soyadı

locale
string

Kullanıcının Yeni Yerel Ayarları

Example:

"tr_TR"

timezone
string

Kullanıcının Yeni Zaman Dilimi

Example:

"Europe/Istanbul"

roles
enum<string>[]

Kullanıcının Yeni Rolleri. Bu Alanı Sadece ADMIN Yetkisine Sahip Kullanıcılar Güncelleyebilir!

Example:

"['API_USER']"

status
enum<string>

Kullanıcının Yeni Durumu. Bu Alanı Sadece ADMIN Yetkisine Sahip Kullanıcılar Güncelleyebilir!

Mevcut seçenekler:
INACTIVE,
ACTIVE,
EXPIRED,
BLOCKED,
DELETED
Example:

"INACTIVE"

empty
boolean

Response

Başarılı Kullanıcı Güncelleme

userId
string
required

Kaydedilen Kullanıcının ID Numarası

Example:

"8e94a551-5b86-40ba-ae55-b019dee5cc25"

username
string
required

Kaydedilen Kullanıcı İsmi

Example:

"name@domain.com"

firstName
string
required

Kaydedilen Kullanıcının İlk Adı

Example:

"John"

lastName
string
required

Kaydedilen Kullanıcının Soy Adı

Example:

"Doe"

locale
string
required

Kaydedilen Kullanıcının Yerel Ayarı

Example:

"tr_TR"

timezone
string
required

Kaydedilen Kullanıcının Zaman Dilimi Id'si

Example:

"Europe/Istanbul"

roles
enum<string>[]
required

Kaydedilen Kullanıcının Rolleri

Example:

"API_USER"

status
enum<string>
required

Kaydedilen Kullanıcının Durumu

Mevcut seçenekler:
INACTIVE,
ACTIVE,
EXPIRED,
BLOCKED,
DELETED
Example:

"INACTIVE"

midName
string

Kaydedilen Kullanıcının Göbek Adı

Example:

"Bob"

account
object