Garment.id
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
HomeCore APITenant API
Support CenterChangelog
HomeCore APITenant API
Support CenterChangelog
Github
Instagram
|
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
🇮🇩 Indonesian
  • 🇮🇩 Indonesian
  • 🇺🇸 English
  1. Material
  • 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
        GET
      • Create Material
        POST
      • Material Detail
        GET
      • Update Material
        PUT
      • Delete Material
        DELETE
    • 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
      • Create Document
      • Document Detail
      • Update Document
      • Delete Document
    • Bank Account
      • Bank Accounts
      • Create Bank Account
      • Bank Account Detail
      • Update Bank Account
      • Delete Bank Account
  1. Material

Update Material

PUT
http://localhost/api/v1/tenant/master-data/materials/{materialId}
Master Data/Material
Terakhir diubah:2026-03-12 13:48:40
OperationId:tenant.materials.update
Update material and optionally sync material variants.

Request

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

Body Parameterapplication/jsonWajib

Contoh

Response

🟢200
application/json
Body

🟠401
🟠422
request Contoh Request
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://localhost/api/v1/tenant/master-data/materials/' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "code": "string",
    "name": "string",
    "category_id": "8de4c9fd-61a4-4c0b-bf88-0ed3a0fe3fa2",
    "base_unit_id": "6f587bc1-802b-4a25-9aed-dcb1bcf5aa12",
    "description": "string",
    "metadata": [
        "string"
    ],
    "is_active": true,
    "variants": [
        {
            "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
            "color_id": "3333830f-d3ea-47f8-a24d-3e8d3a1050d5",
            "sku": "string",
            "standard_cost": 0,
            "metadata": [
                "string"
            ],
            "is_active": true
        }
    ]
}'
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
Material Detail
Berikutnya
Delete Material
Built with