API Autogate KEK
  1. Company
API Autogate KEK
  • API
    • V1
      • Company
        • Create Company
          POST
        • Update Company
          PATCH
        • Delete Company
          DELETE
        • Detail Company
          GET
        • Paginate Company
          GET
        • Dropdown List Company
          GET
      • Roles
        • Get Roles With Pagination
        • Detail Role
        • Create Role
        • Update Role
        • Delete Role
        • Get Detail Role Permissions
        • Dropdown List Role
        • Dropdown List Role Level
      • Permissions
        • Get Grouped Permissions With Pagination
      • User
        • Operational
          • As Super Admin
            • Bulk Create User Operational as Super Admin
            • Update User Operational as Super Admin
          • As Admin
            • Bulk Create User Operational as Admin
            • Update User Operational as Admin
          • Detail User Operational
        • Admin
          • Bulk Create User Admin
          • Update User Admin
          • Detail User Admin
        • Get List User
        • Get Admin Dropdown List
        • Delete User
        • Quota
      • Auth
        • Login
        • [Mobile] Login User Operational
        • Send Url Forgot Password
        • Validate Url From Forgot Password
        • Change password
        • Validate Token and Verify Email
        • Send Url Email Verification
        • Refresh Token
        • Logout
      • Product
        • Create Product
        • Paginate Products
        • Update Product
        • Delete Product
        • Detail Product
      • FAQs
        • Get Detail Group FAQs
        • Create FAQs
        • Get Grouped FAQs
        • Update FAQs
        • Delete FAQs
        • Detail FAQs
      • FAQs Public
        • Get List FAQ
      • Company Employee
        • Create Company Employee
        • Get Company Employee With Pagination
        • Update Company Employee
        • Delete Company Employee
        • Detail Company Employee
      • Lokasi Tujuan
        • Create Lokasi Tujuan
        • Update Lokasi Tujuan
        • Delete Lokasi Tujuan
        • Detail Lokasi Tujuan
        • List Lokasi Tujuan
        • List Lokasi
        • Get Dropdown Lokasi Tujuan Pelabuhan BMS
      • Jenis Lokasi
        • Get All Area
        • Get detail area
      • Contact
        • Get List of Contact
        • Detail Contact
        • Update Contact
      • Common
        • File Upload
          • Upload PDF
          • Upload File
          • Upload PDF or Image
          • Upload File Multiple
          • Upload File Multiple For Transaction Hardware
          • Upload File For Transaction Hardware
        • Photo Upload
          • Upload Photo
        • Base64
          • Upload Photo Base64
        • Stream File
        • Get File Url
      • Ticket
        • Tenant
          • Without Pabeanan
            • Download Ticket
            • Create Ticket Tenant Without Pabeanan
            • Get Detail Ticket Tenant Without Pabeanan
            • Cancel Ticket Tenant Without Pabeanan
            • Update Ticket Tenant Without Pabeanan
            • Approve Lokasi Tujuan
            • Reject Lokasi Tujuan
          • With Pabeanan
            • Create Ticket Tenant WIth Pabean
            • Download Ticket
            • Get Detail Ticket Tenant With Pabeanan
            • Cancel Ticket Tenant Without Pabeanan
            • Update Ticket Tenant With Pabeanan
          • Sarana Niaga
            • Download Detail Ticket
            • Create Ticket Sarana Niaga
            • Get Detail Ticket Sarana Niaga
            • Update Ticket Sarana Niaga
            • Reject Ticket Sarana Niaga
        • Guest
          • Create Guest Ticket
          • Update Guest Ticket
          • Detail Guest Ticket
          • Download Guest Ticket PDF
          • Get Guest Ticket By Access Number
          • Cancel Guest Ticket
          • Approve Guest Ticket
          • Reject Guest Ticket
        • Invitation
          • Get Ticket By Invitation Token
          • Confirm Passcode
          • Create Vehicle Ticket By Invitation
          • Download PDF
          • Update By Invitation Token
        • Vehicle Tickets
          • Get Vehicle Tickets With Pagination
        • Dual Container
          • Create Vehicle Ticket for Dual Container
          • Get List Tickets
          • Update Ticket Type
        • Get Ticket With Pagination
        • Get Ticket By Access Number
        • Link with SPMK
        • Unlink with SPMK
        • Get Ticket By Access Number Copy
      • External
        • Oauth
          • Get Access Token
        • Ticket Tenant
          • Create Tenant/Company Ticket
      • Live Activity
        • Get Latest Activity By Gate and Lane
      • Management Gate
        • Lane
          • Update Interven Status
          • Update Bypass Barier Status
        • Device
          • Get List Device by Line ID
          • Add Device
        • Create Gate
        • Update Gate
        • Delete Gate
        • Get Grouped Gates
        • Get Gates By Area
        • Get Detail Gate
        • Get List All Gates
        • Get Lane By Gate
        • Get Detail lane
        • Get Gate With Lanes Latest Activity
        • Get All Gates Grouped By Area
      • Gate Activities
        • Failure Message
          • Get Pagination Gate Activity Failure Messages
          • Get Detail Gate Activity Failure Messages
          • Update Gate Activity Failure Messages
        • Get With Pagination
        • Gate Check-in (Hardware)
        • Close Portal (Hardware)
        • Open Portal (Hardware)
        • Gate Check-in (Virtual Gate)
        • Gate Check-in From Autogate Officer
      • Gate In/Out
        • Buffer Zone
          • Get pagination bufferzone
          • Get bufferzone detail by gate activity id
          • Buffer Zone Checkup
          • Close Activity
          • Add Vehicle To Activity
      • CEISA
        • Grouping
          • Grouping CEISA
          • List Grouping CEISA
        • Find Ceisa By Id Header
        • Get Pagination
        • Find Ceisa By Id Header And Company
        • Get Bulk From CEISA
        • Find By No Aju
        • Find Ceisa By Id Header From DB
        • Update By Id
        • Complete customs pass
      • PTOSM
        • Generate JobSlip
        • Gate Out JobSlip
        • Find By SPMK Number
        • Get SPMK List
        • Find By ID SPMK From DB
      • Dashboard
        • Data Lalu Lintas Kendaraan
        • Data Rata-Rata Waktu Ritase
        • Jumlah Kendaraan Berdasarkan Jenis Lampu & Kendaraan
        • Jumlah Kendaraan Berdasarkan Jenis Dokumen
        • Data Buffer zone
        • Data Lalu Lintas JIIPE
      • Log Activity
        • Get Log Activity
        • Get Log Activity Detail
      • Report
        • Report Bongkar Muat Bufferzone
          • Report Bongkar Muat di Bufferzone
          • Detail Report Bongkar Muat Bufferzone
          • Download pdf Report Bongkar Muat Bufferzone
          • Excel Report Bongkar Muat di Bufferzone
          • CSV Report Bongkar Muat di Bufferzone
        • Report Tenant
          • Report Tenant
          • Report Tenant Detail
          • PDF List Report Tenant
          • Download pdf Report Tenant Detail
          • Excel Report Tenant
          • CSV Report Tenant
        • Report Bongkar Muat Main
          • Report Bongkar Muat (Main Gate)
          • Detail Report Bongkar Muat (Main Gate)
          • Download pdf Report Bongkar Muat (Main Gate)
          • Excel Report Bongkar Muat (Main Gate)
          • CSV Report Bongkar Muat (Main Gate)
        • Report Vehicle Activity
          • Report Vehicle Activity
          • Detail Report Vehicle Activity
          • Download pdf Report Vehicle Activity
          • Excel Report Vehicle Activity
          • CSV Report Vehicle Activity Copy
      • Profile
        • Get profile
        • Update profile
        • Update Email
        • Request URL Change Password
        • Change Password
        • Validate Token From URL
      • Load Unload
        • Draft Verification
          • [Mobile] Create or Update Verification Draft
          • [Mobile] Get Verification Draft
          • [Mobile] Get Verification Draft Pabean
        • [Mobile] Validate Scan QR
        • [Mobile] Accept Verification Bongkar Muat
        • [Mobile] Reject Verification Bongkar Muat
        • [Mobile] Finalize Bongkar Muat
        • [Mobile] Data Status Bongkar Muat
        • [Mobile] Get List Bongkar Muat QR Only (Exclude Out Activity)
        • [Mobile] Get Document List Bongkar Muat (Exclude Out Activity)
        • [Mobile] Get Ticket List Bongkar Muat (Exclude Out Activity)
        • [Mobile] Get Detail Scan Ceisa Documents
        • [Mobile] Get Detail Scan Ticket Documents
        • [Mobile] Get Detail Scan Spmk Documents
        • [Mobile] Done Ticket
        • [Mobile] Re entry
        • [Mobile] Update Verification Bongkar Muat
        • [Mobile] Check In Tenant
      • Notification
        • List Notification
        • 3 Latest Notification
        • Mark As Read
        • Mark read all
      • TPS Online
        • List TPS Online
        • Detail TPS Online
      • EMKL
        • List Kapal
        • List SPMK By Kapal
        • List SPPB
        • Assign EMKL SPPB
        • List Monitoring SPMK with SPPB
      • Vehicle
        • Create Bulk Vehicles
        • Update Bulk Vehicles
        • List Vehicles
        • Detail Vehicle
        • Delete Vehicle
        • Delete Bulk Vehicles
      • Configs
        • Get All Configs
        • Create Config
        • Bulk Delete Configs
        • Get Config by ID
        • Delete Config by ID
        • Get Config by Key
        • Update Config
      • Autogate Officer
        • Dual Container
          • Create Vehicle Ticket with Reference
        • Get List Need Review
        • Get log activity (gate action)
        • Get Detail list
        • Get history autogate officer
        • Solve Activity
        • Reject Activity
      • Buffer zone bea cukai
        • Get List Need Review
        • Get log activity (gate action)
        • Get Detail list
        • Get history autogate officer
        • Solve Activity
        • Reject Activity
      • Monitoring
        • Health Check
      • Get detail data verifikasi gate in
        GET
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
  1. Company

Update Company

Developing
PATCH
/v1/companies/{id}
1.
Vehicles WITH ID (update)
Jika vehicle memiliki id: update data (mis. police_number jika disediakan) dan tandai sebagai keep (tidak dihapus).
2.
Vehicles WITHOUT ID, police number exists in current company (keep)
Jika police_number ada dan cocok dengan kendaraan yang sudah dimiliki perusahaan:
Tidak buat baru, tidak assign, cukup tandai sebagai keep (hindari hapus).
3.
Vehicles WITHOUT ID, police number exists di DB tetapi company_id = null (assign)
Jika police_number ada di DB tapi kendaraan belum ter-assign (companyId == null):
Update kendaraan tersebut dengan companyId perusahaan saat ini (assign) dan update field sesuai request.
Tidak perlu menandai sebagai keep karena kendaraan tersebut bukan bagian dari currentCompanyVehicles.
4.
Vehicles WITHOUT ID, police number tidak ada di DB (create)
Buat kendaraan baru

Cleanup (delete)#

Setelah memproses semua request, kendaraan yang sebelumnya milik perusahaan tetapi TIDAK ditandai sebagai keep akan di-soft-delete.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PATCH '/v1/companies/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "email": "test5@company.com",
    "npwp": "9384858375393336",
    "nitku": "1231231231412345123232",
    "name": "Name AB5",
    "business_field": "Business Field",
    "operation_status": "operation",
    "type": "tenant",
    "status_pu": "registered",
    "no_pu": "string",
    "pic_name": "string",
    "pic_phone": "8812313123",
    "address": "Jl. jalan",
    "vehicles": [
        {
            // Create new vehicle if id is not specified
            "police_number": "B7478DD"
        },
        {
            // Update existing vehicle if id (vehicle) is provided
            "id": "d0f5a7fa-70ec-4dbb-b973-a1e6fc3fceec",
            "police_number": "B4567PG"
        }
        // Delete vehicles is empty or not provided
    ]
}'
Response Response Example
{
    "data": null,
    "message": "Sukses mengubah perusahaan"
}
Modified at 2025-09-03 19:15:28
Previous
Create Company
Next
Delete Company
Built with