Garment.id
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
HomeCore APITenant API
Support CenterChangelog
HomeCore APITenant API
Support CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Document
  • Authentication
    • Google OAuth Redirect
      GET
    • Google OAuth Callback
      GET
    • Register
      POST
    • Login
      POST
    • Refresh Token
      POST
    • Login with Google
      POST
    • Two Factor Challenge
      POST
    • Request Password Reset
      POST
    • Reset Password
      POST
    • Verify Email
      GET
    • Resend Verification Email
      POST
    • Select Tenant
      POST
    • Tenant Onboarding
      POST
    • Logout
      POST
    • Logout All
      POST
    • Me
      GET
  • Auth Activity
    • Auth Activities
    • Suspicious Activities
    • Tenant Auth Activities
    • User Security Activities
  • Billing
    • Subscription
    • Subscription Entitlements
    • Change Subscription Plan
    • Cancel Subscription
    • Invoices
    • Invoice Detail
    • Billing Timeline
    • Subscription Addons
    • Create Subscription Addon
    • Deactivate Subscription Addon
    • Pause Subscription Addon
    • Resume Subscription Addon
    • Schedule Subscription Addon Cancel
  • Tenant Authz
    • Tenant Permissions
    • Tenant Roles
    • Create Tenant Role
    • Update Tenant Role
    • Delete Tenant Role
  • Integrations
    • Integration Health Check
    • Integration Create Order
    • Integration Invite User
  • Tenant User
    • Tenant Users
    • Create Tenant User
    • Update Tenant User
  • Master Data
    • Customer
      • Customers
      • Create Customer
      • Customer Detail
      • Update Customer
      • Delete Customer
    • Taxonomy
      • Taxonomies
      • Create Taxonomy
      • Taxonomy Detail
      • Update Taxonomy
      • Delete Taxonomy
      • Bulk Update Taxonomy Status
      • Bulk Delete Taxonomy
    • Material
      • Materials
      • Create Material
      • Material Detail
      • Update Material
      • Delete Material
    • Supplier
      • Suppliers
      • Create Supplier
      • Supplier Detail
      • Update Supplier
      • Delete Supplier
    • Warehouse
      • Warehouses
      • Create Warehouse
      • Warehouse Detail
      • Update Warehouse
      • Delete Warehouse
    • Product
      • Products
      • Create Product
      • Product Detail
      • Update Product
      • Delete Product
      • Product Routing
      • Update Product Routing
    • Address
      • Addresses
      • Create Address
      • Address Detail
      • Update Address
      • Delete Address
    • Contact
      • Contacts
      • Create Contact
      • Contact Detail
      • Update Contact
      • Delete Contact
    • Document
      • Documents
        GET
      • Create Document
        POST
      • Document Detail
        GET
      • Update Document
        POST
      • Delete Document
        DELETE
    • Bank Account
      • Bank Accounts
      • Create Bank Account
      • Bank Account Detail
      • Update Bank Account
      • Delete Bank Account
  1. Document

Update Document

POST
http://localhost/api/v1/tenant/master-data/documents/{documentId}
Master Data/Document
Terakhir diubah:2026-03-12 13:48:40
OperationId:tenant.documents.update
Update metadata document atau ganti file. Mendukung multipart file upload untuk penggantian file.

Request

Otorisasi
Berikan token Bearer anda pada header
Authorization
ketika melakukan request ke resource yang dilindungi.
Contoh:
Authorization: Bearer ********************
Path Parameter

Body Parametermultipart/form-data

Response

🟢200
application/json
Body

🟠401
🟠422
request Contoh Request
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://localhost/api/v1/tenant/master-data/documents/' \
--header 'Authorization: Bearer <token>' \
--form 'document_type=""' \
--form 'document_number=""' \
--form 'file=@""' \
--form 'file_path=""' \
--form 'issued_at=""' \
--form 'expired_at=""' \
--form 'is_primary=""' \
--form 'metadata=""'
response Contoh Response
200 - Contoh 1
{
    "success": true,
    "code": "string",
    "message": "string",
    "request_id": "string",
    "timestamp": "2019-08-24T14:15:22.123Z",
    "api_version": "string",
    "data": {}
}
Diubah pada 2026-03-12 13:48:40
Sebelumnya
Document Detail
Berikutnya
Delete Document
Built with