- Welcome 👋
- Get Started
- 水合失败
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- 测试
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Orders
- Webhooks - Store Events
- 其他资源-Module
- 其他资源 Copy
Attach Image
Develop Env
https://echo.apifox.com/anything
Develop Env
https://echo.apifox.com/anything
POST
https://echo.apifox.com/anything
Product Images
Last modified:2025-02-20 07:53:20
Maintainer:Not configured
product
as a path parameter.Note
Scopes
products.read_write
- Products Read & WriteRequest
Authorization
Add the parameter
Authorization
to Headers,whose value is to concatenate the Token after the Bearer.Example:
Authorization: Bearer ********************
Path Params
product
integer
required
Body Params multipart/form-data
photo
file
required
Example:
@"Users/Images/profile.png"
default
integer
optional
Example:
1
sort
number
optional
Example:
1
alt
string
optional
Example:
Alt Text
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://echo.apifox.com/anything/products//images' \
--form 'photo=@"@\"Users/Images/profile.png\""'
Responses
🟢201Attached Successfully
application/json
Body
status
number
optional
success
boolean
optional
data
object (ProductImagesVideos)
optional
id
number
required
Example:
1908361139
image
object
required
sort
number
required
Example:
0
default
boolean
required
Default:
false
alt_seo
string | null
required
video_url
string
required
type
string
required
Example:
image
Examples
{
"status": 201,
"success": true,
"data": {
"id": 713368802,
"image": {
"original": {
"url": "https://cdn.salla.sa/bYQEn/9oJoUzXfR8zzXAwAlTRHNIl1xBsuFpgcXdPnkAXd.png",
"width": 0,
"height": 0
},
"standard_resolution": {
"url": "https://cdn.salla.sa/bYQEn/9oJoUzXfR8zzXAwAlTRHNIl1xBsuFpgcXdPnkAXd.png",
"width": 0,
"height": 0
},
"low_resolution": {
"url": "https://cdn.salla.sa/bYQEn/9oJoUzXfR8zzXAwAlTRHNIl1xBsuFpgcXdPnkAXd.png",
"width": 0,
"height": 0
},
"thumbnail": {
"url": "https://cdn.salla.sa/bYQEn/9oJoUzXfR8zzXAwAlTRHNIl1xBsuFpgcXdPnkAXd.png",
"width": 0,
"height": 0
}
},
"sort": 5,
"default": true,
"alt_seo": "image",
"video_url": "",
"type": "image"
}
}
🟠404Not Found
🟠422Error Validation
🟠401Unauthorized

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

