{
"data": {
"id": "FID001",
"type": "Product",
"attributes": {
"title": "string",
"isActive": true,
"productIdentifier": "string",
"description": "string",
"shortDescription": "string",
"purchaseMethod": "product",
"requirements": [
{
"type": "promoCode",
"promoCode": {
"prefix": "string",
"redemptions": 0
},
"storeOffer": {
"id": "string"
}
}
],
"unlockActions": [
{
"type": "userGroup",
"targetId": "string",
"accessLevel": "full",
"config": {},
"fullAccessProductIdentifier": "string"
}
],
"allowPromoCodes": true
},
"relationships": {
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
}
}
}
}
curl --location --request PATCH 'https://api.synap.ac/v3/products/' \
--header 'Content-Type: application/vnd.api+json' \
--data-raw '{
"data": {
"id": "FID001",
"type": "Product",
"attributes": {
"title": "string",
"isActive": true,
"productIdentifier": "string",
"description": "string",
"shortDescription": "string",
"purchaseMethod": "product",
"requirements": [
{
"type": "promoCode",
"promoCode": {
"prefix": "string",
"redemptions": 0
},
"storeOffer": {
"id": "string"
}
}
],
"unlockActions": [
{
"type": "userGroup",
"targetId": "string",
"accessLevel": "full",
"config": {},
"fullAccessProductIdentifier": "string"
}
],
"allowPromoCodes": true
},
"relationships": {
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
}
}
}
}'
{
"data": {
"id": "FID001",
"type": "Product",
"attributes": {
"title": "string",
"isActive": true,
"productIdentifier": "string",
"description": "string",
"shortDescription": "string",
"purchaseMethod": "product",
"requirements": [
{
"type": "promoCode",
"promoCode": {
"prefix": "string",
"redemptions": 0
},
"storeOffer": {
"id": "string"
},
"message": "string"
}
],
"unlockActions": [
{
"type": "userGroup",
"targetId": "string",
"accessLevel": "full",
"config": {},
"fullAccessProductIdentifier": "string"
}
],
"allowPromoCodes": true,
"amount": 0,
"priceTag": "string",
"currency": "string",
"skuId": "string",
"checkoutConfig": {
"type": "chargebee",
"appId": "string",
"publicKey": "string"
},
"accessDetails": {
"accessUntilDate": "2019-08-24T14:15:22Z",
"accessLengthInMonths": 1
}
},
"relationships": {
"coverImage": {
"data": {
"id": "FID001",
"type": "File"
}
}
}
}
}