Create Product
Authorization
x-api-key X-API-Key<token>
API Key required for authentication.
In: header
Request Body
application/json
name*string
Length
2 <= length <= 100slug*string
Length
2 <= length <= 100description*string
Length
10 <= length <= 1000price*number
compare_at?number
stock?number
sku?string
images*array<|||>
Items
1 <= items <= 6is_published?boolean
Default
falseResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://www.s5arc.store/api/v1/products/" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "slug": "string", "description": "stringstri", "price": 0, "images": [ "string" ] }'{
"message": "string",
"id": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}{
"error": "string"
}