Rupa Rawi - Revou Group Project
  1. article
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
      • update category
      • soft delete category
      • create subcategory
    • 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
      DELETE
    • create article
      POST
    • get article
      GET
    • get article detail
      GET
    • update article
      PUT
  • 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. article

update article

Developing
PUT
/admin/article/5
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/admin/article/5' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NTU3MDkyMywianRpIjoiN2JmNWYzYWEtNjBiYS00MDcyLWIyY2MtYjcyMTdiOTEyNTExIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjMiLCJuYmYiOjE3NDU1NzA5MjMsImNzcmYiOiJlNjliZTVmNC03ODRmLTRmN2YtOWUzZC02NWZmYzE3YWM1YWMiLCJ1c2VybmFtZSI6InNlbGYiLCJlbWFpbCI6InNlbGZAZXhhbXBsZS5jb20iLCJpc192ZW5kb3IiOmZhbHNlfQ.OWOHjdvS-Epyv6Dimp_n53eiO1r2h3RoY8tDTa7yS9c' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "article 1",
    "content": "test content aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "img_url": "https://example.com/update.png"
}'
Response Response Example
{
  "article": {
    "author_id": 3,
    "author_name": "self",
    "content": "test content aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "created_at": "2025-05-05T18:08:37.087430",
    "id": 5,
    "image_url": "https://example.com/default-image.png",
    "title": "article 1",
    "updated_at": "2025-05-05T18:11:55.836884"
  },
  "message": "Article updated successfully",
  "success": true
}

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc0NTU3MDkyMywianRpIjoiN2JmNWYzYWEtNjBiYS00MDcyLWIyY2MtYjcyMTdiOTEyNTExIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6IjMiLCJuYmYiOjE3NDU1NzA5MjMsImNzcmYiOiJlNjliZTVmNC03ODRmLTRmN2YtOWUzZC02NWZmYzE3YWM1YWMiLCJ1c2VybmFtZSI6InNlbGYiLCJlbWFpbCI6InNlbGZAZXhhbXBsZS5jb20iLCJpc192ZW5kb3IiOmZhbHNlfQ.OWOHjdvS-Epyv6Dimp_n53eiO1r2h3RoY8tDTa7yS9c
Body Params application/json
title
string 
required
content
string 
required
img_url
string 
required
Examples

Responses

🟢200Success
application/json
Body
article
object 
required
author_id
integer 
required
author_name
string 
required
content
string 
required
created_at
string 
required
id
integer 
required
image_url
string 
required
title
string 
required
updated_at
string 
required
message
string 
required
success
boolean 
required
Modified at 2025-05-05 18:12:15
Previous
get article detail
Next
create review product
Built with