Attach Product To Another Product

Attach a product to another product. Attaching a product to another product establishes a connection between them, which is later used during bookings. Only service-type products can be attached. If a product has one or more attached service products, these will be automatically suggested during the booking of the main product. In such cases, the user can accept the suggested additional products, modify them, or remove them altogether. For example, if a specific equipment often requires a cleaning service, the user can attach the cleaning product to that equipment. As a result, when the equipment is booked, instead of adding cleaning product everytime while making equipment booking, the cleaning service will automatically be included in the booking by default, with possibility to modify suggestion.

Endpoint

POST /products/{id}/attach

Authentication

Required: Authorization header with valid token

Path Parameters

ParameterTypeRequiredDescription
idstringYesProduct unique identifier

Request Body

{
  "productId": "uuid"
}

Required Fields

  • productId - UUID of the product to attach

Response

Success

{
  success: true
}

GeneralError

GeneralErrorResponse Schema

Example Usage

curl -X POST "https://integration-api.ram.syniotec.com/master-data/v1/product-management/products/123e4567-e89b-12d3-a456-426614174000/attach" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "456e7890-e89b-12d3-a456-426614174000"
  }'