Skip to content
Get started

Create Product Free Fields

ProductCreateProductFreeFieldsResponse Products.CreateProductFreeFields(ProductCreateProductFreeFieldsParams?parameters, CancellationTokencancellationToken = default)
POST/api/v2/public/products/freefields

Creates or updates the free key/value fields on a product. Keys not included keep their current value.

ParametersExpand Collapse
ProductCreateProductFreeFieldsParams parameters
IReadOnlyList<Body> body
required string CountryCode
minLength1
required IReadOnlyList<FreeField> FreeFields
string? Key
Int? SortOrder
formatint32
string? Value
required string ProductNumber
minLength1
string? EntityType
ReturnsExpand Collapse
class ProductCreateProductFreeFieldsResponse:

Standard success response returned by mutation endpoints.

required Boolean Success

Indicates whether the operation completed successfully.

string? Data

Optional data payload returned by the operation.

string? Message

Human-readable message describing the result.

Create Product Free Fields

ProductCreateProductFreeFieldsParams parameters = new();

var response = await client.Products.CreateProductFreeFields(parameters);

Console.WriteLine(response);
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}
Returns Examples
{
  "success": true,
  "data": "data",
  "message": "message"
}
{
  "code": 401,
  "status": "error",
  "message": "Authentication failed.",
  "error": "unauthorized",
  "error_description": "Authentication failed."
}
{
  "code": 500,
  "status": "fail",
  "message": "The request could not be processed.",
  "error": "internal_error",
  "error_description": "The request could not be processed."
}