Create Variant
Last updated
Was this helpful?
Last updated
Was this helpful?
Create a variant for terms.
Json representation of the variant
curl -L \
--request POST \
--url 'https://api.platform.softwareone.com/public/v1/catalog/products/{productId}/terms/{termsAndConditionsId}/variants' \
--header 'Content-Type: multipart/form-data' \
--form 'variant=[object Object]' \
--form 'file=binary'
{
"id": "text",
"audit": {
"created": {
"at": "2025-04-01T21:52:01.567Z",
"by": "[Circular Reference]"
},
"updated": {
"at": "2025-04-01T21:52:01.567Z",
"by": "[Circular Reference]"
}
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"type": "text",
"assetUrl": "text",
"languageCode": "text",
"name": "text",
"description": "text",
"status": "text",
"filename": "text",
"size": 1,
"contentType": "text",
"termsAndConditions": {
"id": "text",
"audit": {
"created": "[Circular Reference]",
"updated": "[Circular Reference]",
"published": "[Circular Reference]",
"pending": "[Circular Reference]",
"unpublished": "[Circular Reference]"
},
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"description": "text",
"displayOrder": 1,
"status": "text",
"product": {
"id": "text",
"audit": "[Circular Reference]",
"$meta": {
"omitted": [
"text"
]
},
"href": "text",
"name": "text",
"shortDescription": "text",
"longDescription": "text",
"externalIds": {
"operations": "text"
},
"website": "text",
"icon": "text",
"status": "text",
"vendor": "[Circular Reference]",
"settings": {
"productOrdering": true,
"productRequests": {
"enabled": true,
"name": "text",
"label": "text"
},
"itemSelection": true,
"orderQueueChanges": true,
"preValidation": {
"purchaseOrderDraft": true,
"purchaseOrderQuerying": true,
"changeOrderDraft": true,
"terminationOrder": true,
"productRequest": true
},
"splitBilling": {
"enabled": true,
"type": "text"
}
},
"statistics": {
"itemCount": 1,
"ordersPlacedCount": 1,
"agreementCount": 1,
"subscriptionCount": 1,
"requestCount": 1
}
}
},
"fileId": "text"
}
Created