All pages
Powered by GitBook
1 of 1

Loading...

Create Variant

Create a variant for terms.

post
Path parameters
termsAndConditionsIdstringRequired
productIdstringRequired
Body
filestring · binaryOptional
Responses
201

Created

application/json
400

Bad Request

application/json
403

Forbidden

application/json
500

Internal Server Error

post
/public/v1/catalog/products/{productId}/terms/{termsAndConditionsId}/variants
{
  "id": "text",
  "audit": {
    "created": {
      "at": "2025-12-14T08:33:54.798Z",
      "by": {}
    },
    "updated": {
      "at": "2025-12-14T08:33:54.798Z",
      "by": {}
    }
  },
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "type": "text",
  "assetUrl": "text",
  "languageCode": "text",
  "name": "text",
  "description": "text",
  "status": "text",
  "filename": "text",
  "size": 1,
  "contentType": "text",
  "termsAndConditions": {
    "id": "text",
    "name": "text"
  },
  "fileId": "text"
}
POST /public/v1/catalog/products/{productId}/terms/{termsAndConditionsId}/variants HTTP/1.1
Host: api.platform.softwareone.com
Content-Type: multipart/form-data
Accept: */*
Content-Length: 120

{
  "variant": {
    "Type": "Online",
    "AssetUrl": "text",
    "LanguageCode": "text",
    "Name": "text",
    "Description": "text"
  },
  "file": "binary"
}