- Getting Started
- Version
- Auth
- User
- Kereta
- Pelanggan
- Gerbong
- Kursi
- Jadwal
- Pembelian Tiket
Update Pelanggan
Developing
PATCH
/pelanggan/{id}
Maintainer:Muhammad Fadhil Kholaf
Request
Path Params
id
string
required
Cookie Params
token
string
required
Body Params application/json
nik
string
optional
namaPenumpang
string
optional
alamat
string
optional
telp
string
optional
userId
string
optional
Example
{
"nik": "string",
"namaPenumpang": "string",
"alamat": "string",
"telp": "string",
"userId": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://kereta.api.fadhilkholaf.my.id/pelanggan/' \
--header 'Cookie: token=' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
message
string
required
data
object (Pelanggan)
required
id
string
required
nik
string
required
namaPenumpang
string
required
alamat
string
required
telp
string
required
userId
string
required
createdAt
string
required
updatedAt
string
required
Example
{
"message": "string",
"data": {
"id": "string",
"nik": "string",
"namaPenumpang": "string",
"alamat": "string",
"telp": "string",
"userId": "string",
"createdAt": "string",
"updatedAt": "string"
}
}
🔴500Server Error
🟠401Unauthorized
🟠404Not Found
🟠400Bad Request
🟠409Conflict
Modified at 2025-03-17 01:36:15