Attach Product Perk
Path Parameters
productId*string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
perkId*string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/products/string/perks" \ -H "Content-Type: application/json" \ -d '{ "perkId": "string" }'{ "id": "string", "perkId": "string", "productId": "string"}{ "_tag": "Api/ProductPerkValidationError", "message": "string"}{ "_tag": "Api/AuthenticationError", "cause": "string", "message": "string"}{ "_tag": "Api/ActionForbiddenError", "message": "string"}{ "_tag": "Api/ProductNotFoundError", "message": "string"}{ "_tag": "Api/ProductPerkAlreadyExistsError", "perkId": "string", "productId": "string"}{ "_tag": "Api/ProductPerkServiceError", "cause": "string"}