Saltar al contenido principal
POST
/
v1
/
items
/
skus
/
{skuReference}
/
values
Create a new property value for a given SKU
curl --request POST \
  --url https://api.bold-factory.com/v1/items/skus/{skuReference}/values \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "propertyReference": "<string>",
  "value": "<string>"
}
'
{
  "skuId": "<string>",
  "sku": {
    "id": "<string>",
    "externalReference": "<string>",
    "code": "<string>",
    "name": "<string>",
    "description": "<string>",
    "validationErrors": "<string>",
    "productId": "<string>",
    "imageFileId": "<string>",
    "image": {
      "id": "<string>",
      "readOnlyUri": "<string>"
    },
    "product": {
      "id": "<string>",
      "externalReference": "<string>",
      "code": "<string>",
      "name": "<string>",
      "description": "<string>",
      "deletedAt": "2023-11-07T05:31:56Z",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    },
    "deletedAt": "2023-11-07T05:31:56Z",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>",
    "unit": {
      "id": "<string>",
      "code": "<string>",
      "name": "<string>"
    },
    "displayDecimalPlaces": 123
  },
  "propertyId": "<string>",
  "property": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "createdBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>"
  },
  "value": "<string>",
  "isMandatory": true,
  "enumValue": {
    "id": "<string>",
    "externalReference": "<string>",
    "name": "<string>",
    "propertyId": "<string>",
    "property": {
      "id": "<string>",
      "externalReference": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "lastModifiedAt": "2023-11-07T05:31:56Z",
      "lastModifiedBy": "<string>"
    }
  }
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Parámetros de ruta

skuReference
string
requerido

Cuerpo

application/json
propertyReference
string
requerido
value
string
requerido

Respuesta

Created

skuId
string
requerido
sku
object
requerido
propertyId
string
requerido
property
object
requerido
value
string
requerido
kind
enum<string>
requerido
Opciones disponibles:
Decimal,
Text,
Boolean,
Enum,
Integer,
DateTime
isMandatory
boolean
requerido
enumValue
object