Skip to main content

Update Product Details

PATCH /api/v1/products/{productId}/tenants/{tenantId}

Description

Update product details for an existing product within a tenant's account.

🔑 Authentication

This endpoint requires authentication via a Bearer Token.

ParamValueType
token{{tenantUserAccessToken}}string

Path Parameters

These parameters must be included in the URL path.

NameTypeDescription
productIdstringThe ID of the product to update
tenantIdstringThe ID of the tenant associated with the product

Request Body

NameTypeDescription
namestringThe updated name of the product
overviewstringUpdated short description of the product
requirementsarrayUpdated list of requirements for using the product
displaystringUpdated product visibility (PUBLIC, PRIVATE)
categorystringUpdated product category (e.g., WHITE_LABEL)
bioobjectUpdated bio information
bio.titlestringUpdated product bio title
bio.descriptionstringUpdated product bio description
bio.photostringUpdated product image URL
actionBystringThe user making the update
photostringUpdated product image URL

Configuration Settings

Each product can be updated for different platforms.

Mobile App Configuration
NameTypeDescription
labelstringDisplay name of the setting
keystringUnique key identifier
valuestringConfiguration value
requiredbooleanWhether this field is required
valueTypestringData type (e.g., string, boolean)
formTypestringType of input form (e.g., input, dropdown)
formOptionsarrayAvailable options for dropdown fields
Other App Configurations

The same structure applies to:

  • PWA App (config.pwaApp)
  • Web App (config.webApp)
  • Admin App (config.adminApp)

Product Classification

Products can be grouped based on industry categories.

NameTypeDescription
groupstringIndustry classification (e.g., Health & Fitness)
tagsarrayTags associated with the product (e.g., Banking, Investing)

Example Request

PATCH /api/v1/products/{{productId}}/tenants/{{tenantId}}
Authorization: Bearer {{tenantUserAccessToken}}
Content-Type: application/json
{
"name": "Updated Product Name",
"overview": "Updated product description",
"requirements": ["Updated requirement 1", "Updated requirement 2"],
"display": "PUBLIC",
"category": "WHITE_LABEL",
"bio": {
"title": "Updated Title",
"description": "Updated product description",
"photo": "https://example.com/updated-image.png"
},
"actionBy": "{{$randomUUID}}",
"photo": "https://example.com/updated-image.png",
"config": {
"mobileApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"value": "https://example.com/webhook",
"required": true,
"valueType": "string",
"formType": "input",
"formOptions": []
}
]
},
"services": ["payment-processing"],
"classification": [
{
"group": "Finance",
"tags": ["Banking", "Investing", "Payments"]
}
]
}

Response Code: 200 - OK

{
"_id": "67a81ecca9a55da218c22c35",
"name": "Updated Product Name",
"overview": "Updated product description",
"requirements": ["Updated requirement 1", "Updated requirement 2"],
"code": "updated_product_code",
"photo": "https://example.com/updated-image.png",
"config": {
"mobileApp": [
{
"label": "Webhook URL",
"key": "webhookUrl",
"required": true,
"value": "https://example.com/webhook",
"valueType": "string",
"formType": "input",
"_id": "67a81ecca9a55da218c22c36",
"formOptions": []
}
]
},
"services": [],
"tenant": "67a81e0478c623946a5e4a49",
"display": "PUBLIC",
"type": "TENANT",
"category": "WHITE_LABEL",
"classification": [],
"bio": {
"title": "Updated Title",
"description": "Updated product description"
},
"deleted": false,
"createdBy": "SYSTEM",
"deletedBy": null,
"updatedBy": null,
"createdAt": "2025-02-09T03:19:40.485Z",
"updatedAt": "2025-02-09T03:50:42.195Z",
"__v": 0
}

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request PATCH \ 
--url /api/v1/products/{productId}/tenants/{tenantId} \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!