Update store information (owner only)
curl --request PUT \
--url https://api.example.com/api/v1/stores/{slug}/ \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"about": "<string>"
}
'{
"id": 123,
"url": "<string>",
"brand_name": "<string>",
"about": "<string>",
"products_sold": 123,
"owner": 123,
"followers": [
{}
]
}This endpoint allows store owners to update their store’s brand name and description. Only the store owner can update their own store.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/klvxn/ecommerce-api/llms.txt
Use this file to discover all available pages before exploring further.
Authorization header
Permission: You must be the owner of the store (VendorOnly permission)
curl -X PUT http://localhost:8000/api/v1/stores/tech-gadgets-pro/ \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"about": "Premium electronics, accessories, and smart home devices for tech enthusiasts"
}'
import requests
url = "http://localhost:8000/api/v1/stores/tech-gadgets-pro/"
headers = {
"Authorization": "Bearer YOUR_ACCESS_TOKEN",
"Content-Type": "application/json"
}
data = {
"about": "Premium electronics, accessories, and smart home devices for tech enthusiasts"
}
response = requests.put(url, headers=headers, json=data)
print(response.json())
{
"id": 5,
"url": "http://localhost:8000/api/v1/stores/tech-gadgets-pro/",
"brand_name": "Tech Gadgets Pro",
"about": "Premium electronics, accessories, and smart home devices for tech enthusiasts",
"products_sold": 47,
"owner": 42,
"followers": [15, 23, 108]
}
{
"brand_name": ["store with this brand name already exists."]
}
{
"detail": "Authentication credentials were not provided."
}
{
"detail": "You do not have permission to perform this action."
}
{
"detail": "Not found."
}
~/workspace/source/stores/views.py:68-76curl --request PUT \
--url https://api.example.com/api/v1/stores/{slug}/ \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"about": "<string>"
}
'{
"id": 123,
"url": "<string>",
"brand_name": "<string>",
"about": "<string>",
"products_sold": 123,
"owner": 123,
"followers": [
{}
]
}