Rupa Rawi - Revou Group Project
  1. category
Rupa Rawi - Revou Group Project
  • auth
    • register user
      POST
    • login
      POST
    • refresh token
      POST
  • user
    • address
      • create address
      • get all address
      • update address
      • delete address
    • payment method
      • get all payment methods
      • delete payment method
      • update payment method
      • create payment method
    • update own profile
      PUT
    • get own profile
      GET
    • get public profile
      GET
  • product
    • category
      • get categories tree
      • get categories detail
    • wishlist
      • add item to wishlist
      • remove item to wishlist
      • get wishlist
    • promotions
      • get promotion detail (public)
      • get active promotions (public)
    • get product details (public)
      GET
    • get product list (public)
      GET
    • get public vendor products
      GET
  • admin
    • category
      • create category
        POST
      • update category
        PUT
      • soft delete category
        DELETE
      • create subcategory
        POST
    • vendor management
      • get all vendors
      • vendor application review
    • promotions
      • get all promotions
      • create promotion
      • update promotion
    • get admin logs
      GET
  • vendor
    • product
      • soft delete product
      • create product
      • update product
      • get vendor products
    • vendor apply
      POST
    • get vendor profile
      GET
    • update vendor profile
      PUT
    • vendor stats
      GET
    • Vendor recent orders
      GET
  • order
    • cart
      • add item to cart
      • update item in cart
      • delete item in cart
      • get cart
    • update order status
    • get order
    • get all orders
    • pre-checkout calculation
    • order checkout
  • article
    • delete article
    • create article
    • get article
    • get article detail
    • update article
  • product review
    • create review product
    • get product reviews by product id
    • get product review detail
    • update product review detail
    • delete product review
  • testimony
    • create testimonial
    • update testimonial
    • get testimonial
    • delete testimonial
  1. category

create subcategory

Developing
POST
admin/category
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'admin/category' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NTU3MDkyMywianRpIjoiN2JmNWYzYWEtNjBiYS00MDcyLWIyY2MtYjcyMTdiOTEyNTExIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjMiLCJuYmYiOjE3NDU1NzA5MjMsImNzcmYiOiJlNjliZTVmNC03ODRmLTRmN2YtOWUzZC02NWZmYzE3YWM1YWMiLCJ1c2VybmFtZSI6InNlbGYiLCJlbWFpbCI6InNlbGZAZXhhbXBsZS5jb20iLCJpc192ZW5kb3IiOmZhbHNlfQ.OWOHjdvS-Epyv6Dimp_n53eiO1r2h3RoY8tDTa7yS9c' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Hammer",
    "parent_category_id": 9
  }'
Response Response Example
{
  "category": {
    "description": null,
    "id": null,
    "name": "Hammer",
    "parent_category_id": 9,
    "subcategories": []
  },
  "message": "Category created successfully",
  "success": true
}

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NTU3MDkyMywianRpIjoiN2JmNWYzYWEtNjBiYS00MDcyLWIyY2MtYjcyMTdiOTEyNTExIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjMiLCJuYmYiOjE3NDU1NzA5MjMsImNzcmYiOiJlNjliZTVmNC03ODRmLTRmN2YtOWUzZC02NWZmYzE3YWM1YWMiLCJ1c2VybmFtZSI6InNlbGYiLCJlbWFpbCI6InNlbGZAZXhhbXBsZS5jb20iLCJpc192ZW5kb3IiOmZhbHNlfQ.OWOHjdvS-Epyv6Dimp_n53eiO1r2h3RoY8tDTa7yS9c
Body Params application/json
name
string 
required
parent_category_id
integer 
required
Examples

Responses

🟢201Success
application/json
Body
category
object 
required
description
null 
required
id
null 
required
name
string 
required
parent_category_id
integer 
required
subcategories
array
required
message
string 
required
success
boolean 
required
Modified at 2025-05-04 14:55:32
Previous
soft delete category
Next
get all vendors
Built with