Ecommerce
  1. Category
Ecommerce
  • Start your Apidog journey
  • Sample APIs
    • Find pet by ID
    • Add a new pet to the store
    • Update an existing pet
    • Deletes a pet
    • Finds Pets by status
  • Users
    • profile
      • me
    • auth
      • login
      • login google by using firebase auth
      • login google
      • callback google
      • forgotPasswordByCode
      • verify Code
      • profile
      • forgotPassword
      • register
      • send-otp
      • verify otp
      • guard
    • Roles
      • get all roles
      • get roles
    • Capabilities
      • get all capabilities
  • Ecommerce
    • Profile
      • Web Create guest profile
      • Web Update my Profile
      • Web Get my Profile
    • Features Group
      • Get all feature groups
      • Get feature groups with pagination
      • Get feature group by id
      • Add feature group
      • Delete feature group
      • Update feature group
    • Features
      • Get all features
      • Get features with pagination
      • Get feature by id
      • Add feature
      • Delete feature
      • Update feature
    • Order
      • Get orders with pagination
      • Get upcoming shipping
      • Get recent activity
      • Get buyer recent activity
      • Get order by id
      • Add order
      • Update order
      • Update order status
      • Refend order
      • Cancel order
      • Delete order
      • Export orders
    • Order web
      • Get my orders
      • Pay order
    • Appointment
      • Request Translation
      • Reschedule Appointment
      • Create Appointment
      • Update Partial
      • Get Appointments With Pagination
      • Get appointment by id
    • Quotation
      • Summary
        • Get quick summary
        • Get recent activity
        • Get most requested products
        • Get expiring quotations
        • Get buyer quotations reply insights
      • Shipping
        • Submit To Agent
        • Upsert Cost By From Agent
        • Upsert Cost By To Agent
        • Submit To Vendor
      • Create general quotation
      • Create quotation response
      • Create quotation request
      • Update quotation status
      • Add comment to quotation
      • Get quotation by id
      • Get open request quotations
      • Get my replies quotations
      • Get my requests
      • Get replies of a request quotation
      • Get general quotations
    • Plan
      • Get plans with pagination
      • Get Web All
      • Get All plans
      • Get plan by id
      • Add plan
      • Delete plan
      • Update plan
    • Addresses
      • Get Web Address All
      • Get Web addresses
      • Get Web address by id
      • Add Web Address
      • Delete Web Address
      • Bulk Web Delete Addresses
      • Update Web Address
    • Watch list Web
      • Get watch lists
      • Add to watch list
      • Delete from watch list
    • Dashboard Carts
      • Get Cart
      • Get cart by id
      • Create Cart
      • Delete cart
      • Update cart
    • Capabilities
      • Create Capabilities
    • Product
      • Production Line
        • Create Production Line
        • Get Production Line By Id
        • Get Production Line By Criteria
        • Update Production Line By Id
        • Delete Production Line By Id
        • Bulk Delete Production Lines
      • Attribute
        • Create Attribute
        • Get Attribute By Id
        • Get Attribute All
        • Get Attribute By Criteria
        • Update Attribute By Id
        • Delete Attribute By Id
        • Bulk Delete Attributes
      • Group
        • Create Group
        • Get Group By Id
        • Get Group All
        • Get Group By Criteria
        • Update Group By Id
        • Delete Group By Id
        • Bulk Delete Group
      • Review
        • Create Review
        • Get Review By Criteria
        • Update Review By product Id
        • Delete Review By Product Id
      • Branch
        • Create Branch
        • Update Branch By Id
        • Get Branch By Id
        • Get Branch All
        • Get Branchs with pagination
        • Delete Branch By Id
        • Bulk Delete Branches
        • Get Web Branch By Coordinates
        • Get All Web Branch With Pagination
        • Get All Web Branch
        • Import Branch Zones
        • Get Import Branch Zones Example
        • Get Branch Zones File
        • Import Branch Products
        • Get Import Branch Products Example
        • Get Branch Products File
      • Link To Branches
        • Get Link By Branch Id and Product Id
      • Addons
        • Get addons
        • Get addon by id
        • Add Addons
        • Delete addon
        • Bulk Delete addons
        • Update addon
        • Get Web addons
        • Get Web addons all
      • Get Web Product By Id
      • Get Web Product By Criteria
      • Create Product
      • Get Product By Id
      • Get Product By Criteria
      • Link Product By Id to Branches
      • Update Product By Id
      • Link Product By Id to Production Line
      • Delete Product By Id
      • Delete Duplicated Products
    • Category
      • Get Web Category All
        GET
      • Create Category
        POST
      • Get Category By Id
        GET
      • Get Category All
        GET
      • Get Category By Criteria
        GET
      • Update Category By Id
        PUT
      • Delete Category By Id
        DELETE
      • Bulk Delete Category
        DELETE
    • Unit
      • Create Unit
      • Get Unit By Id
      • Get Unit All
      • Get Unit By Criteria
      • Update Unit By Id
      • Delete Unit By Id
      • Bulk Unit Category
    • Contact
      • Shipping
        • Create Shipping
        • Get Shipping By Id
        • Get Shipping By Criteria
        • Update Shipping By Id
        • Delete Shipping By Id
        • Bulk Delete Shippings
      • Broker
        • Create Broker
        • Get Broker By Id
        • Get Broker By Criteria
        • Update Broker By Id
        • Delete Broker By Id
        • Bulk Delete Brokers
      • Agent
        • Create Agent
        • Get Agent By Id
        • Get Agent By Criteria
        • Update Agent By Id
        • Delete Agent By Id
        • Bulk Delete Agent
      • Customer
        • Create Customer
        • Get Customer By Id
        • Get Customer By Criteria
        • Update Customer By Id
        • Delete Customer By Id
        • Bulk Delete Customer
    • Payment
      • Invoice
        • Create Invoice
        • Get Invoice By Id
        • Get Invoice By Criteria
        • Update Invoice By Id
        • Delete Invoice By Id
        • Bulk Delete Invoice
      • Payout
        • Create Payout
        • Get Payout By Id
        • Get Payout By Criteria
        • Update Payout By Id
        • Delete Payout By Id
        • Bulk Delete Payout
      • Transaction
        • Create Transaction
        • Get Transaction By Id
        • Get Transaction By Criteria
        • Update Transaction By Id
        • Delete Transaction By Id
        • Bulk Delete Transaction
      • Create Payment
      • Get Payment By Id
      • Get Payment By Criteria
      • Update Payment By Id
      • Delete Payment By Id
      • Bulk Delete Payment
    • Setup
      • Create Capabilities
      • Upsert Seed
      • Upsert System Seed
      • Truncate Seed
    • Config
      • Currency
        • Get All currencies
        • Get currencies with pagination
        • Get currency by id
      • Location
        • Country
          • Get All Seed Countries
          • Get All Countries
          • Get All locations
          • Get Countries with pagination
          • Get Country by id
          • Create country
          • Update country
          • Delete country
        • City
          • Get All Seed Cities
          • Get All Cities
          • Get Cities with pagination
          • Get City by id
          • Create city
          • Update city
          • Delete cityId
        • Area
          • Get All Seed Areas
          • Get All Areas
          • Get Areas with pagination
          • Get Area by id
          • Create Area
          • Update Area
          • Delete Area
        • Zone
          • Get All Zones
          • Get Zones with pagination
          • Get Zone by id
          • Create Zone
          • Update zone
          • Delete Zone
          • Find Zones Containing Location
          • Find Zones Containing Point
        • Location Web
          • Get All Web Countries
          • Get All Web Cities
          • Get All Web Areas
      • Ticket type
        • Get All Ticket Types
        • Get Ticket Types with pagination
        • Get Ticket Type by id
        • Create Ticket Type
        • Update Ticket Type
        • Delete Ticket Type
    • Settings
      • Sales Inventory
        • Get inventory settings
        • Update inventory settings
      • Sales Settings
        • Get sales settings
        • Update sales settings
      • General Settings
        • Get general settings
        • Update general settings
    • Cart
      • Clear Web Cart Item
      • Upsert Web Cart Item
      • Get Web Cart Item Mine
    • Ticket
      • Get My Tickets
      • Get Ticket by Id
      • Get Ticket Summary
      • Create Ticket
      • Add comment
      • Update ticket
    • Coupon
      • Create Coupon
      • Get Coupons with Pagination
      • Get Coupon by Id
      • Update Coupon
      • Delete Coupon
      • Bulk Delete Coupon
      • Get Web Coupon Mine
      • Check Web Coupon Redeemption
    • Checkout
      • Try Checkout
      • Checkout
    • Survey
      • Question
        • Create Question
        • Update Question
        • Get Questions with Pagination
        • Get Question by Id
        • Delete Question
        • Get Web Questions with Pagination
        • Get Web Questions All
      • Waiters
        • Get Web Waiters with Pagination
        • Get Web Waiters All
        • Create Waiter
        • Update Waiter
        • Get Waiters with Pagination
        • Delete Waiter
        • Get Waiter by Id
      • FeedBack
        • Create Web FeedBack
        • Get Feedbacks with Pagination
        • Delete Feedback
        • Get Feedback by Id
        • Export Feedback
    • Truncate Collection List
      DELETE
    • Fix Product Attributes
      PUT
  • Files
    • Upload File
  1. Category

Update Category By Id

PUT
{{ecommercev2_url}}/categories/{id}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request PUT '{{ecommercev2_url}}/categories/680de3bee05e9548d5893a8a' \
--header 'x-client: {{client}}' \
--header 'accept-language: {{acceptLanguage}}' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
    "name": {
        "ar": "إكسسوارات رجالية",
        "en": "Men'\''s Accessories"
    },
    "description": {
        "ar": "\u003cp\u003eإكسسوارات رجالية\u003c/p\u003e",
        "en": "\u003cp\u003eMen'\''s Accessories\u003c/p\u003e"
    },
    "codes": [
        {
            "ar": "اكسسوارات-رجال",
            "defaultTranslation": "MENS-ACC",
            "en": "MENS-ACC"
        },
        {
            "ar": "ار-001",
            "defaultTranslation": "MA-001",
            "en": "MA-001"
        }
    ],
    "parentId": "67ed5962efd08135366c5923",
    "position": 1,
    "visibilities": [
        "categories_carousel"
    ],
    "image": {
        "ar": {
            "_id": "680881ae4bcc0d34b79ff6ad",
            "path": "https://servicesprod.larsa.io/files/file/ctlasuc5drjs73c4p7v0/2025/4/7bb85a7f-1d5a-4eba-852c-ef0ad573ee5c.png",
            "variants": [],
            "originalName": "b5a17df7-36b2-4da6-8a9f-cb0ac641f785.png",
            "service": ""
        },
        "en": {
            "_id": "6807f8f44bcc0d34b79ff6ab",
            "path": "https://servicesprod.larsa.io/files/file/ctlasuc5drjs73c4p7v0/2025/4/b5a17df7-36b2-4da6-8a9f-cb0ac641f785.png",
            "variants": [],
            "originalName": "91cc4dea-0090-4505-be54-bbe135b06245.png",
            "service": ""
        }
    },
    "icon": {
        "ar": {
            "_id": "507f1f77bcf86cd799439012",
            "path": "https://example.com/images/mens-accessories-2.jpg",
            "service": "thumbnail"
        },
        "defaultTranslation": {
            "_id": "507f1f77bcf86cd799439012",
            "path": "https://example.com/images/mens-accessories-2.jpg",
            "service": "thumbnail"
        },
        "en": {
            "_id": "6807f90d4bcc0d34b79ff6ac",
            "path": "https://servicesprod.larsa.io/files/file/ctlasuc5drjs73c4p7v0/2025/4/91fed3a4-3819-45fa-8313-29a5b4530062.png",
            "variants": [],
            "originalName": "91cc4dea-0090-4505-be54-bbe135b06245.png",
            "service": ""
        }
    },
    "seo": {
        "metaTitle": {
            "ar": "مجموعة إكسسوارات رجالية",
            "defaultTranslation": "Men'\''s Accessories Collection",
            "en": "Men'\''s Accessories Collection"
        },
        "metaDescription": {
            "ar": "\u003cp\u003eاكتشف مجموعتنا المميزة من الإكسسوارات الرجالية\u003c/p\u003e",
            "defaultTranslation": "Discover our premium collection of men'\''s accessories",
            "en": "\u003cp\u003eDiscover our premium collection of men'\''s accessories\u003c/p\u003e"
        },
        "metaKeywords": [
            {
                "ar": "إكسسوارات رجالية",
                "defaultTranslation": "men accessories",
                "en": "men accessories"
            },
            {
                "ar": "محافظ",
                "defaultTranslation": "wallets",
                "en": "wallets"
            },
            {
                "ar": "منتجات جلدية",
                "defaultTranslation": "leather goods",
                "en": "leather goods"
            }
        ],
        "ogTitle": {
            "ar": "إكسسوارات رجالية فاخرة | علامتك التجارية",
            "defaultTranslation": "Premium Men'\''s Accessories | Your Brand",
            "en": "Premium Men'\''s Accessories | Your Brand"
        },
        "ogDescription": {
            "ar": "\u003cp\u003eتسوق مجموعتنا الحصرية من الإكسسوارات الرجالية\u003c/p\u003e",
            "defaultTranslation": "Shop our exclusive collection of men'\''s accessories",
            "en": "\u003cp\u003eShop our exclusive collection of men'\''s accessories\u003c/p\u003e"
        }
    },
    "status": {
        "name": "approved",
        "triggeredBy": "67ff50d3bcd3194396bbb56e",
        "timestamp": "2025-04-23T05:59:15.554Z"
    }
}'
Response Response Example
{}

Request

Authorization
API Key
Add parameter in header
x-access-token
Example:
x-access-token: ********************
or
Path Params
id
string 
required
Example:
680de3bee05e9548d5893a8a
Header Params
x-access-token
string 
required
Example:
{{admin-token}}
x-client
string 
required
Example:
{{client}}
accept-language
string 
required
Example:
{{acceptLanguage}}
Body Params application/json
name
object 
required
ar
string 
required
en
string 
required
tr
string 
required
parentId
string 
required
image
object 
required
_id
string 
required
path
string 
required
expire
string 
required
icon
object 
required
_id
string 
required
path
string 
required
expire
string 
required
Examples

Responses

🟢200Success
application/json
Body
object {0}
Modified at 2025-04-27 07:59:06
Previous
Get Category By Criteria
Next
Delete Category By Id
Built with