- Getting Started
- Version
- Auth
- User
- Kereta
- Pelanggan
- Gerbong
- Kursi
- Jadwal
- Pembelian Tiket
Update Jadwal
Developing
PATCH
/jadwal/{id}
Maintainer:Muhammad Fadhil Kholaf
Request
Path Params
id
string
required
Cookie Params
token
string
required
Body Params application/json
asalKeberangkatan
string
required
tujuanKeberangkatan
string
required
tanggalKeberangkatan
string
required
tanggalKedatangan
string
required
harga
number
required
keretaId
string
required
Example
{
"asalKeberangkatan": "string",
"tujuanKeberangkatan": "string",
"tanggalKeberangkatan": "string",
"tanggalKedatangan": "string",
"harga": 0,
"keretaId": "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/jadwal/' \
--header 'Cookie: token=' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200Success
application/json
Body
message
string
required
data
object (Jadwal)
required
id
string
required
asalKeberangkatan
string
required
tujuanKeberangkatan
string
required
tanggalKeberangkatan
string
required
tanggalKedatangan
string
required
harga
number
required
keretaId
string
required
createdAt
string
required
updatedAt
string
required
Example
{
"message": "string",
"data": {
"id": "string",
"asalKeberangkatan": "string",
"tujuanKeberangkatan": "string",
"tanggalKeberangkatan": "string",
"tanggalKedatangan": "string",
"harga": 0,
"keretaId": "string",
"createdAt": "string",
"updatedAt": "string"
}
}
🔴500Server Error
🟠401Unauthorized
🟠400Bad Request
🟠404Not Found
Modified at 2025-03-17 13:07:30