Update product
Body
-
Title of the product
Minimum length is
1
, maximum length is128
. -
shortDescription string | null
Short Description of the product
Maximum length is
128
. -
Description of the product
Minimum length is
1
, maximum length is8096
. -
At least 1 variant is required
-
Path/Slug of the product
Minimum length is
1
. -
Is product unlisted
-
Is product private
-
Is product on hold
-
isInternal boolean | null
PUT /self/{shopId}/v2/products/{productId}
curl \
-X PUT https://dev.sellpass.io/self/{shopId}/v2/products/{productId} \
-H "Authorization: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"string","shortDescription":"string","description":"string","variants":[{"id":42,"title":"string","description":"string","shortDescription":"string","priceDetails":{"amount":42.0,"currency":"string"},"gateways":[{"gateway":0,"rules":{"blockVpn":true},"price":{"amount":42.0,"currency":"string"}}],"productType":0,"asDynamic":{"stock":42,"externalUrl":"string","minAmount":42,"maxAmount":42,"isInternal":true},"asSerials":{"delimiter":"string","serials":"string","minAmount":42,"maxAmount":42,"removeDuplicates":true},"asService":{"stock":42,"text":"string","minAmount":42,"maxAmount":42},"customerNote":"string","redirectUrl":"string","customFields":[{"id":42,"type":1,"name":"string","required":true,"valueString":"string","placeholder":"string","regex":"string","valueInt":42,"valueBool":true}],"warranty":{"text":"string","durationSeconds":42},"discordSocialConnectSettings":{"enabled":true,"required":true,"beforePurchaseRequireRoles":{"guildId":"string","roleIds":["string"]},"beforePurchaseServer":{"guildId":"string","roleIds":["string"]},"afterPurchaseServer":{"guildId":"string","roleIds":["string"]}}}],"path":"string","seo":{"metaTitle":"string","metaDescription":"string"},"unlisted":true,"private":true,"onHold":true,"isInternal":true}'
Request example
{
"title": "string",
"shortDescription": "string",
"description": "string",
"variants": [
{
"id": 42,
"title": "string",
"description": "string",
"shortDescription": "string",
"priceDetails": {
"amount": 42.0,
"currency": "string"
},
"gateways": [
{
"gateway": 0,
"rules": {
"blockVpn": true
},
"price": {
"amount": 42.0,
"currency": "string"
}
}
],
"productType": 0,
"asDynamic": {
"stock": 42,
"externalUrl": "string",
"minAmount": 42,
"maxAmount": 42,
"isInternal": true
},
"asSerials": {
"delimiter": "string",
"serials": "string",
"minAmount": 42,
"maxAmount": 42,
"removeDuplicates": true
},
"asService": {
"stock": 42,
"text": "string",
"minAmount": 42,
"maxAmount": 42
},
"customerNote": "string",
"redirectUrl": "string",
"customFields": [
{
"id": 42,
"type": 1,
"name": "string",
"required": true,
"valueString": "string",
"placeholder": "string",
"regex": "string",
"valueInt": 42,
"valueBool": true
}
],
"warranty": {
"text": "string",
"durationSeconds": 42
},
"discordSocialConnectSettings": {
"enabled": true,
"required": true,
"beforePurchaseRequireRoles": {
"guildId": "string",
"roleIds": [
"string"
]
},
"beforePurchaseServer": {
"guildId": "string",
"roleIds": [
"string"
]
},
"afterPurchaseServer": {
"guildId": "string",
"roleIds": [
"string"
]
}
}
}
],
"path": "string",
"seo": {
"metaTitle": "string",
"metaDescription": "string"
},
"unlisted": true,
"private": true,
"onHold": true,
"isInternal": true
}
Request examples
{
"title": "string",
"shortDescription": "string",
"description": "string",
"variants": [
{
"id": 42,
"title": "string",
"description": "string",
"shortDescription": "string",
"priceDetails": {
"amount": 42.0,
"currency": "string"
},
"gateways": [
{
"gateway": 0,
"rules": {
"blockVpn": true
},
"price": {
"amount": 42.0,
"currency": "string"
}
}
],
"productType": 0,
"asDynamic": {
"stock": 42,
"externalUrl": "string",
"minAmount": 42,
"maxAmount": 42,
"isInternal": true
},
"asSerials": {
"delimiter": "string",
"serials": "string",
"minAmount": 42,
"maxAmount": 42,
"removeDuplicates": true
},
"asService": {
"stock": 42,
"text": "string",
"minAmount": 42,
"maxAmount": 42
},
"customerNote": "string",
"redirectUrl": "string",
"customFields": [
{
"id": 42,
"type": 1,
"name": "string",
"required": true,
"valueString": "string",
"placeholder": "string",
"regex": "string",
"valueInt": 42,
"valueBool": true
}
],
"warranty": {
"text": "string",
"durationSeconds": 42
},
"discordSocialConnectSettings": {
"enabled": true,
"required": true,
"beforePurchaseRequireRoles": {
"guildId": "string",
"roleIds": [
"string"
]
},
"beforePurchaseServer": {
"guildId": "string",
"roleIds": [
"string"
]
},
"afterPurchaseServer": {
"guildId": "string",
"roleIds": [
"string"
]
}
}
}
],
"path": "string",
"seo": {
"metaTitle": "string",
"metaDescription": "string"
},
"unlisted": true,
"private": true,
"onHold": true,
"isInternal": true
}