Skip to main content
POST
/
v0
/
products
/
create
Create a new product
curl --request POST \
  --url https://api.fungies.io/v0/products/create \
  --header 'Content-Type: application/json' \
  --header 'x-fngs-public-key: <api-key>' \
  --header 'x-fngs-secret-key: <api-key>' \
  --data '
{
  "name": "<string>",
  "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "description": "",
  "cover": "<string>",
  "coverBlurHash": "<string>",
  "coverVideo": "<string>",
  "gallery": [
    {
      "value": "<string>",
      "blurHash": "<string>"
    }
  ],
  "trailer": "<string>",
  "featureCoverVideo": true,
  "genres": [],
  "features": [
    {
      "value": "<string>"
    }
  ],
  "status": "ACTIVE",
  "externalId": "<string>",
  "systems": [],
  "offers": [
    {
      "price": 8.988465674311579e+307,
      "limit": 4503599627370495,
      "name": "<string>",
      "description": "",
      "cover": "<string>",
      "coverBlurHash": "<string>",
      "originalPrice": 8.988465674311579e+307,
      "freeProduct": false,
      "platform": "Global",
      "recurringIntervalCount": 4503599627370496,
      "trialIntervalCount": 4503599627370496,
      "gtin": "<string>",
      "externalId": "<string>",
      "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "variantIdx": 0,
      "fileName": "<string>",
      "downloadFile": "<string>",
      "downloadFileName": "<string>",
      "downloadFileSize": 0,
      "downloadDescription": "<string>",
      "productKeys": [
        "<string>"
      ],
      "hasDiscount": true,
      "warningMessage": "<string>",
      "mutableQuantity": true,
      "tags": [
        {
          "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
          "name": "<string>"
        }
      ],
      "downloadFileData": {
        "chunks": [
          {
            "chunk": "<string>",
            "metadata": {
              "number": 0,
              "start": 0,
              "end": 0,
              "size": 0
            }
          }
        ],
        "totalChunks": 0,
        "totalSize": 0
      },
      "downloadFileType": "<string>"
    }
  ],
  "variants": [
    {
      "name": "<string>",
      "description": "",
      "features": [
        {
          "value": "<string>"
        }
      ],
      "cover": "<string>",
      "coverBlurHash": "<string>",
      "coverVideo": "<string>",
      "externalId": "<string>"
    }
  ],
  "customFields": [
    {
      "id": "<string>",
      "type": "<string>",
      "label": "<string>",
      "placeholder": "<string>",
      "regex": "<string>",
      "validationUrl": "<string>",
      "validationUrlSecret": "<string>",
      "values": "<unknown>"
    }
  ],
  "productRedeemMessage": "<string>",
  "tags": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ],
  "requirements": "<unknown>",
  "developer": "<unknown>",
  "publisher": "<unknown>",
  "pegiRating": "<unknown>",
  "releaseDate": "<unknown>"
}
'
import requests

url = "https://api.fungies.io/v0/products/create"

payload = {
    "name": "<string>",
    "projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "type": "<string>",
    "description": "",
    "cover": "<string>",
    "coverBlurHash": "<string>",
    "coverVideo": "<string>",
    "gallery": [
        {
            "value": "<string>",
            "blurHash": "<string>"
        }
    ],
    "trailer": "<string>",
    "featureCoverVideo": True,
    "genres": [],
    "features": [{ "value": "<string>" }],
    "status": "ACTIVE",
    "externalId": "<string>",
    "systems": [],
    "offers": [
        {
            "price": 8.988465674311579e+307,
            "limit": 4503599627370495,
            "name": "<string>",
            "description": "",
            "cover": "<string>",
            "coverBlurHash": "<string>",
            "originalPrice": 8.988465674311579e+307,
            "freeProduct": False,
            "platform": "Global",
            "recurringIntervalCount": 4503599627370496,
            "trialIntervalCount": 4503599627370496,
            "gtin": "<string>",
            "externalId": "<string>",
            "variantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "variantIdx": 0,
            "fileName": "<string>",
            "downloadFile": "<string>",
            "downloadFileName": "<string>",
            "downloadFileSize": 0,
            "downloadDescription": "<string>",
            "productKeys": ["<string>"],
            "hasDiscount": True,
            "warningMessage": "<string>",
            "mutableQuantity": True,
            "tags": [
                {
                    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
                    "name": "<string>"
                }
            ],
            "downloadFileData": {
                "chunks": [
                    {
                        "chunk": "<string>",
                        "metadata": {
                            "number": 0,
                            "start": 0,
                            "end": 0,
                            "size": 0
                        }
                    }
                ],
                "totalChunks": 0,
                "totalSize": 0
            },
            "downloadFileType": "<string>"
        }
    ],
    "variants": [
        {
            "name": "<string>",
            "description": "",
            "features": [{ "value": "<string>" }],
            "cover": "<string>",
            "coverBlurHash": "<string>",
            "coverVideo": "<string>",
            "externalId": "<string>"
        }
    ],
    "customFields": [
        {
            "id": "<string>",
            "type": "<string>",
            "label": "<string>",
            "placeholder": "<string>",
            "regex": "<string>",
            "validationUrl": "<string>",
            "validationUrlSecret": "<string>",
            "values": "<unknown>"
        }
    ],
    "productRedeemMessage": "<string>",
    "tags": [
        {
            "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
            "name": "<string>"
        }
    ],
    "requirements": "<unknown>",
    "developer": "<unknown>",
    "publisher": "<unknown>",
    "pegiRating": "<unknown>",
    "releaseDate": "<unknown>"
}
headers = {
    "x-fngs-public-key": "<api-key>",
    "x-fngs-secret-key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {
    'x-fngs-public-key': '<api-key>',
    'x-fngs-secret-key': '<api-key>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: '<string>',
    projectId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    type: '<string>',
    description: '',
    cover: '<string>',
    coverBlurHash: '<string>',
    coverVideo: '<string>',
    gallery: [{value: '<string>', blurHash: '<string>'}],
    trailer: '<string>',
    featureCoverVideo: true,
    genres: [],
    features: [{value: '<string>'}],
    status: 'ACTIVE',
    externalId: '<string>',
    systems: [],
    offers: [
      {
        price: 8.988465674311579e+307,
        limit: 4503599627370495,
        name: '<string>',
        description: '',
        cover: '<string>',
        coverBlurHash: '<string>',
        originalPrice: 8.988465674311579e+307,
        freeProduct: false,
        platform: 'Global',
        recurringIntervalCount: 4503599627370496,
        trialIntervalCount: 4503599627370496,
        gtin: '<string>',
        externalId: '<string>',
        variantId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
        variantIdx: 0,
        fileName: '<string>',
        downloadFile: '<string>',
        downloadFileName: '<string>',
        downloadFileSize: 0,
        downloadDescription: '<string>',
        productKeys: ['<string>'],
        hasDiscount: true,
        warningMessage: '<string>',
        mutableQuantity: true,
        tags: [{id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', name: '<string>'}],
        downloadFileData: {
          chunks: [{chunk: '<string>', metadata: {number: 0, start: 0, end: 0, size: 0}}],
          totalChunks: 0,
          totalSize: 0
        },
        downloadFileType: '<string>'
      }
    ],
    variants: [
      {
        name: '<string>',
        description: '',
        features: [{value: '<string>'}],
        cover: '<string>',
        coverBlurHash: '<string>',
        coverVideo: '<string>',
        externalId: '<string>'
      }
    ],
    customFields: [
      {
        id: '<string>',
        type: '<string>',
        label: '<string>',
        placeholder: '<string>',
        regex: '<string>',
        validationUrl: '<string>',
        validationUrlSecret: '<string>',
        values: '<unknown>'
      }
    ],
    productRedeemMessage: '<string>',
    tags: [{id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', name: '<string>'}],
    requirements: '<unknown>',
    developer: '<unknown>',
    publisher: '<unknown>',
    pegiRating: '<unknown>',
    releaseDate: '<unknown>'
  })
};

fetch('https://api.fungies.io/v0/products/create', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.fungies.io/v0/products/create",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    'name' => '<string>',
    'projectId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
    'type' => '<string>',
    'description' => '',
    'cover' => '<string>',
    'coverBlurHash' => '<string>',
    'coverVideo' => '<string>',
    'gallery' => [
        [
                'value' => '<string>',
                'blurHash' => '<string>'
        ]
    ],
    'trailer' => '<string>',
    'featureCoverVideo' => true,
    'genres' => [
        
    ],
    'features' => [
        [
                'value' => '<string>'
        ]
    ],
    'status' => 'ACTIVE',
    'externalId' => '<string>',
    'systems' => [
        
    ],
    'offers' => [
        [
                'price' => 8.988465674311579e+307,
                'limit' => 4503599627370495,
                'name' => '<string>',
                'description' => '',
                'cover' => '<string>',
                'coverBlurHash' => '<string>',
                'originalPrice' => 8.988465674311579e+307,
                'freeProduct' => false,
                'platform' => 'Global',
                'recurringIntervalCount' => 4503599627370496,
                'trialIntervalCount' => 4503599627370496,
                'gtin' => '<string>',
                'externalId' => '<string>',
                'variantId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
                'variantIdx' => 0,
                'fileName' => '<string>',
                'downloadFile' => '<string>',
                'downloadFileName' => '<string>',
                'downloadFileSize' => 0,
                'downloadDescription' => '<string>',
                'productKeys' => [
                                '<string>'
                ],
                'hasDiscount' => true,
                'warningMessage' => '<string>',
                'mutableQuantity' => true,
                'tags' => [
                                [
                                                                'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
                                                                'name' => '<string>'
                                ]
                ],
                'downloadFileData' => [
                                'chunks' => [
                                                                [
                                                                                                                                'chunk' => '<string>',
                                                                                                                                'metadata' => [
                                                                                                                                                                                                                                                                'number' => 0,
                                                                                                                                                                                                                                                                'start' => 0,
                                                                                                                                                                                                                                                                'end' => 0,
                                                                                                                                                                                                                                                                'size' => 0
                                                                                                                                ]
                                                                ]
                                ],
                                'totalChunks' => 0,
                                'totalSize' => 0
                ],
                'downloadFileType' => '<string>'
        ]
    ],
    'variants' => [
        [
                'name' => '<string>',
                'description' => '',
                'features' => [
                                [
                                                                'value' => '<string>'
                                ]
                ],
                'cover' => '<string>',
                'coverBlurHash' => '<string>',
                'coverVideo' => '<string>',
                'externalId' => '<string>'
        ]
    ],
    'customFields' => [
        [
                'id' => '<string>',
                'type' => '<string>',
                'label' => '<string>',
                'placeholder' => '<string>',
                'regex' => '<string>',
                'validationUrl' => '<string>',
                'validationUrlSecret' => '<string>',
                'values' => '<unknown>'
        ]
    ],
    'productRedeemMessage' => '<string>',
    'tags' => [
        [
                'id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
                'name' => '<string>'
        ]
    ],
    'requirements' => '<unknown>',
    'developer' => '<unknown>',
    'publisher' => '<unknown>',
    'pegiRating' => '<unknown>',
    'releaseDate' => '<unknown>'
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "x-fngs-public-key: <api-key>",
    "x-fngs-secret-key: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.fungies.io/v0/products/create"

	payload := strings.NewReader("{\n  \"name\": \"<string>\",\n  \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"type\": \"<string>\",\n  \"description\": \"\",\n  \"cover\": \"<string>\",\n  \"coverBlurHash\": \"<string>\",\n  \"coverVideo\": \"<string>\",\n  \"gallery\": [\n    {\n      \"value\": \"<string>\",\n      \"blurHash\": \"<string>\"\n    }\n  ],\n  \"trailer\": \"<string>\",\n  \"featureCoverVideo\": true,\n  \"genres\": [],\n  \"features\": [\n    {\n      \"value\": \"<string>\"\n    }\n  ],\n  \"status\": \"ACTIVE\",\n  \"externalId\": \"<string>\",\n  \"systems\": [],\n  \"offers\": [\n    {\n      \"price\": 8.988465674311579e+307,\n      \"limit\": 4503599627370495,\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"originalPrice\": 8.988465674311579e+307,\n      \"freeProduct\": false,\n      \"platform\": \"Global\",\n      \"recurringIntervalCount\": 4503599627370496,\n      \"trialIntervalCount\": 4503599627370496,\n      \"gtin\": \"<string>\",\n      \"externalId\": \"<string>\",\n      \"variantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"variantIdx\": 0,\n      \"fileName\": \"<string>\",\n      \"downloadFile\": \"<string>\",\n      \"downloadFileName\": \"<string>\",\n      \"downloadFileSize\": 0,\n      \"downloadDescription\": \"<string>\",\n      \"productKeys\": [\n        \"<string>\"\n      ],\n      \"hasDiscount\": true,\n      \"warningMessage\": \"<string>\",\n      \"mutableQuantity\": true,\n      \"tags\": [\n        {\n          \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"downloadFileData\": {\n        \"chunks\": [\n          {\n            \"chunk\": \"<string>\",\n            \"metadata\": {\n              \"number\": 0,\n              \"start\": 0,\n              \"end\": 0,\n              \"size\": 0\n            }\n          }\n        ],\n        \"totalChunks\": 0,\n        \"totalSize\": 0\n      },\n      \"downloadFileType\": \"<string>\"\n    }\n  ],\n  \"variants\": [\n    {\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"features\": [\n        {\n          \"value\": \"<string>\"\n        }\n      ],\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"coverVideo\": \"<string>\",\n      \"externalId\": \"<string>\"\n    }\n  ],\n  \"customFields\": [\n    {\n      \"id\": \"<string>\",\n      \"type\": \"<string>\",\n      \"label\": \"<string>\",\n      \"placeholder\": \"<string>\",\n      \"regex\": \"<string>\",\n      \"validationUrl\": \"<string>\",\n      \"validationUrlSecret\": \"<string>\",\n      \"values\": \"<unknown>\"\n    }\n  ],\n  \"productRedeemMessage\": \"<string>\",\n  \"tags\": [\n    {\n      \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"requirements\": \"<unknown>\",\n  \"developer\": \"<unknown>\",\n  \"publisher\": \"<unknown>\",\n  \"pegiRating\": \"<unknown>\",\n  \"releaseDate\": \"<unknown>\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-fngs-public-key", "<api-key>")
	req.Header.Add("x-fngs-secret-key", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.fungies.io/v0/products/create")
  .header("x-fngs-public-key", "<api-key>")
  .header("x-fngs-secret-key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"<string>\",\n  \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"type\": \"<string>\",\n  \"description\": \"\",\n  \"cover\": \"<string>\",\n  \"coverBlurHash\": \"<string>\",\n  \"coverVideo\": \"<string>\",\n  \"gallery\": [\n    {\n      \"value\": \"<string>\",\n      \"blurHash\": \"<string>\"\n    }\n  ],\n  \"trailer\": \"<string>\",\n  \"featureCoverVideo\": true,\n  \"genres\": [],\n  \"features\": [\n    {\n      \"value\": \"<string>\"\n    }\n  ],\n  \"status\": \"ACTIVE\",\n  \"externalId\": \"<string>\",\n  \"systems\": [],\n  \"offers\": [\n    {\n      \"price\": 8.988465674311579e+307,\n      \"limit\": 4503599627370495,\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"originalPrice\": 8.988465674311579e+307,\n      \"freeProduct\": false,\n      \"platform\": \"Global\",\n      \"recurringIntervalCount\": 4503599627370496,\n      \"trialIntervalCount\": 4503599627370496,\n      \"gtin\": \"<string>\",\n      \"externalId\": \"<string>\",\n      \"variantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"variantIdx\": 0,\n      \"fileName\": \"<string>\",\n      \"downloadFile\": \"<string>\",\n      \"downloadFileName\": \"<string>\",\n      \"downloadFileSize\": 0,\n      \"downloadDescription\": \"<string>\",\n      \"productKeys\": [\n        \"<string>\"\n      ],\n      \"hasDiscount\": true,\n      \"warningMessage\": \"<string>\",\n      \"mutableQuantity\": true,\n      \"tags\": [\n        {\n          \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"downloadFileData\": {\n        \"chunks\": [\n          {\n            \"chunk\": \"<string>\",\n            \"metadata\": {\n              \"number\": 0,\n              \"start\": 0,\n              \"end\": 0,\n              \"size\": 0\n            }\n          }\n        ],\n        \"totalChunks\": 0,\n        \"totalSize\": 0\n      },\n      \"downloadFileType\": \"<string>\"\n    }\n  ],\n  \"variants\": [\n    {\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"features\": [\n        {\n          \"value\": \"<string>\"\n        }\n      ],\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"coverVideo\": \"<string>\",\n      \"externalId\": \"<string>\"\n    }\n  ],\n  \"customFields\": [\n    {\n      \"id\": \"<string>\",\n      \"type\": \"<string>\",\n      \"label\": \"<string>\",\n      \"placeholder\": \"<string>\",\n      \"regex\": \"<string>\",\n      \"validationUrl\": \"<string>\",\n      \"validationUrlSecret\": \"<string>\",\n      \"values\": \"<unknown>\"\n    }\n  ],\n  \"productRedeemMessage\": \"<string>\",\n  \"tags\": [\n    {\n      \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"requirements\": \"<unknown>\",\n  \"developer\": \"<unknown>\",\n  \"publisher\": \"<unknown>\",\n  \"pegiRating\": \"<unknown>\",\n  \"releaseDate\": \"<unknown>\"\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.fungies.io/v0/products/create")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-fngs-public-key"] = '<api-key>'
request["x-fngs-secret-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"<string>\",\n  \"projectId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n  \"type\": \"<string>\",\n  \"description\": \"\",\n  \"cover\": \"<string>\",\n  \"coverBlurHash\": \"<string>\",\n  \"coverVideo\": \"<string>\",\n  \"gallery\": [\n    {\n      \"value\": \"<string>\",\n      \"blurHash\": \"<string>\"\n    }\n  ],\n  \"trailer\": \"<string>\",\n  \"featureCoverVideo\": true,\n  \"genres\": [],\n  \"features\": [\n    {\n      \"value\": \"<string>\"\n    }\n  ],\n  \"status\": \"ACTIVE\",\n  \"externalId\": \"<string>\",\n  \"systems\": [],\n  \"offers\": [\n    {\n      \"price\": 8.988465674311579e+307,\n      \"limit\": 4503599627370495,\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"originalPrice\": 8.988465674311579e+307,\n      \"freeProduct\": false,\n      \"platform\": \"Global\",\n      \"recurringIntervalCount\": 4503599627370496,\n      \"trialIntervalCount\": 4503599627370496,\n      \"gtin\": \"<string>\",\n      \"externalId\": \"<string>\",\n      \"variantId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"variantIdx\": 0,\n      \"fileName\": \"<string>\",\n      \"downloadFile\": \"<string>\",\n      \"downloadFileName\": \"<string>\",\n      \"downloadFileSize\": 0,\n      \"downloadDescription\": \"<string>\",\n      \"productKeys\": [\n        \"<string>\"\n      ],\n      \"hasDiscount\": true,\n      \"warningMessage\": \"<string>\",\n      \"mutableQuantity\": true,\n      \"tags\": [\n        {\n          \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n          \"name\": \"<string>\"\n        }\n      ],\n      \"downloadFileData\": {\n        \"chunks\": [\n          {\n            \"chunk\": \"<string>\",\n            \"metadata\": {\n              \"number\": 0,\n              \"start\": 0,\n              \"end\": 0,\n              \"size\": 0\n            }\n          }\n        ],\n        \"totalChunks\": 0,\n        \"totalSize\": 0\n      },\n      \"downloadFileType\": \"<string>\"\n    }\n  ],\n  \"variants\": [\n    {\n      \"name\": \"<string>\",\n      \"description\": \"\",\n      \"features\": [\n        {\n          \"value\": \"<string>\"\n        }\n      ],\n      \"cover\": \"<string>\",\n      \"coverBlurHash\": \"<string>\",\n      \"coverVideo\": \"<string>\",\n      \"externalId\": \"<string>\"\n    }\n  ],\n  \"customFields\": [\n    {\n      \"id\": \"<string>\",\n      \"type\": \"<string>\",\n      \"label\": \"<string>\",\n      \"placeholder\": \"<string>\",\n      \"regex\": \"<string>\",\n      \"validationUrl\": \"<string>\",\n      \"validationUrlSecret\": \"<string>\",\n      \"values\": \"<unknown>\"\n    }\n  ],\n  \"productRedeemMessage\": \"<string>\",\n  \"tags\": [\n    {\n      \"id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n      \"name\": \"<string>\"\n    }\n  ],\n  \"requirements\": \"<unknown>\",\n  \"developer\": \"<unknown>\",\n  \"publisher\": \"<unknown>\",\n  \"pegiRating\": \"<unknown>\",\n  \"releaseDate\": \"<unknown>\"\n}"

response = http.request(request)
puts response.read_body
{
  "status": "<string>",
  "data": {
    "product": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "object": "product",
      "internalId": null,
      "name": "",
      "description": "",
      "developer": null,
      "publisher": null,
      "pegiRating": null,
      "releaseDate": null,
      "systems": null,
      "genres": null,
      "customFields": null
    }
  }
}
{
  "status": "error",
  "error": {
    "message": "Sample error message"
  }
}

Authorizations

x-fngs-public-key
string
header
required
x-fngs-secret-key
string
header
required

Body

application/json

POST /v0/products/create Request body

name
string
required
Required string length: 1 - 150
projectId
string<uuid>
required
type
string
required
Allowed value: "VirtualItem"
description
string
default:""
cover
string
coverBlurHash
string
coverVideo
Maximum array length: 10
trailer
featureCoverVideo
boolean
genres
enum<string>[]
Available options:
Action,
Action RPG,
Adventure,
Arcade,
Arcade Racing,
Battle Royale,
Beat 'em up,
Board Game,
Card Game,
Casual,
Co-op,
Educational,
Fighting,
FPS,
Horror,
Indie,
Interactive Story,
Japanese RPG,
Logic Game,
MMO,
Management,
Metroidvania,
Mini-games,
Multiplayer,
Open World,
Party,
Platformer,
Puzzle,
RPG,
Racing,
Real-Time Strategy,
Roguelike,
Rhythm,
Sandbox,
Shooter,
Simulation,
Simulation Racing,
Sports,
Strategy,
Survival,
Tactical RPG,
TPS,
Turn-Based Strategy,
Visual Novel,
Point & Click,
Interactive Fiction,
Hidden Object
features
object[]
status
enum<string>
default:ACTIVE
Available options:
DRAFT,
ACTIVE,
HIDDEN
externalId
string
systems
enum<string>[]
Available options:
Windows,
MacOs,
Linux,
PlayStation 4,
PlayStation 5,
Xbox One,
Xbox Series X|S,
iOS,
Android,
Nintendo Switch,
Nintendo 3DS
offers
object[]
variants
object[]
customFields
object[]
productRedeemMessage
string
tags
object[]
requirements
any

This value will never be returned in this type

developer
any

This value will never be returned in this type

publisher
any

This value will never be returned in this type

pegiRating
any

This value will never be returned in this type

releaseDate
any

This value will never be returned in this type

Response

POST /v0/products/create Positive response

status
string
required
Allowed value: "success"
data
object
required