Saltar al contenido principal
POST
/
v1
/
items
/
products
/
{productReference}
/
properties
Assign a new property to a product
curl --request POST \
  --url https://api.bold-factory.com/v1/items/products/{productReference}/properties \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "propertyReference": "<string>"
}
'
{
  "productId": "<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>"
  },
  "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

productReference
string
requerido

Cuerpo

application/json
propertyReference
string
requerido

Respuesta

Created

productId
string
requerido
product
object
requerido
propertyId
string
requerido
property
object
requerido