Products

Partial update a product

Update only the provided fields on an existing product or service.

patch/v1/products/{productId}

Request

  • Base URL: https://api.frihet.io
  • URL: https://api.frihet.io/v1/products/{productId}
  • Auth: API key in header X-API-Key

Path parameters

productIdstring required

Product unique identifier

Request body

namestring required

Product or service name

unitPricenumber required

Unit price

descriptionstring

Product description

taxRatenumber

Default tax rate percentage

Example request

{
  "name": "Consulting Hour",
  "unitPrice": 120,
  "description": "One hour of strategic consulting",
  "taxRate": 21
}

Response

Product updated

idstring

Unique identifier

createdAtstring date-time
updatedAtstring date-time
namestring required

Product or service name

unitPricenumber required

Unit price

descriptionstring

Product description

taxRatenumber

Default tax rate percentage

Example response

{
  "name": "Consulting Hour",
  "unitPrice": 120,
  "description": "One hour of strategic consulting",
  "taxRate": 21
}

Changes

No recorded changes to this operation across all 1 revision of this API.