Create Variant

post
Path parameters
programTermsAndConditionsIdstringRequired
programIdstringRequired
Body
filestring · binaryOptional
Responses
201
Created
application/json
post
POST /public/v1/program/programs/{programId}/terms/{programTermsAndConditionsId}/variants HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 120

{
  "variant": {
    "Type": "Online",
    "AssetUrl": "text",
    "LanguageCode": "text",
    "Name": "text",
    "Description": "text"
  },
  "file": "binary"
}
{
  "id": "text",
  "audit": {
    "created": {
      "at": "2025-06-22T17:02:40.906Z",
      "by": {
        "0": "[",
        "1": "C",
        "2": "i",
        "3": "r",
        "4": "c",
        "5": "u",
        "6": "l",
        "7": "a",
        "8": "r",
        "9": " ",
        "10": "R",
        "11": "e",
        "12": "f",
        "13": "e",
        "14": "r",
        "15": "e",
        "16": "n",
        "17": "c",
        "18": "e",
        "19": "]"
      }
    },
    "updated": {
      "at": "2025-06-22T17:02:40.906Z",
      "by": {
        "0": "[",
        "1": "C",
        "2": "i",
        "3": "r",
        "4": "c",
        "5": "u",
        "6": "l",
        "7": "a",
        "8": "r",
        "9": " ",
        "10": "R",
        "11": "e",
        "12": "f",
        "13": "e",
        "14": "r",
        "15": "e",
        "16": "n",
        "17": "c",
        "18": "e",
        "19": "]"
      }
    }
  },
  "$meta": {
    "omitted": [
      "text"
    ]
  },
  "type": "text",
  "assetUrl": "text",
  "languageCode": "text",
  "name": "text",
  "description": "text",
  "status": "text",
  "filename": "text",
  "size": 1,
  "contentType": "text",
  "programTermsAndConditions": {
    "id": "text",
    "name": "text"
  },
  "fileId": "text"
}

Last updated

Was this helpful?