Manage Digital Passport Transferability
For more information on keys, refer to Keys Management.
Let's start 🚀
URL
Required rights:
admin
To add token access to a digital product passport, use /productManagement/product/:productId/addTokenAccess.
POST - https://{{url}}/productManagement/product/:productId/addTokenAccessBody
Field | Type | Mandatory | Description |
|---|---|---|---|
| String | ✅ | The |
| Boolean | ✅ |
|
| Number | ✅ | Type of key:
|
{
"address": "0x3157d69b9584Ef31dD89eD8389e485Cb3Cc01Dd8",
"activate": true,
"tokenType": 1
}Return Payload
| Status Code | Success | Description |
|---|---|---|
200 | true | The token type is applied to the target digital passport. |
{
"success": true
}Errors
| Status Code | Success | Code | Description |
|---|---|---|---|
404 | false | nmp.productManagement.PRODUCT_ID_NOT_EXISTS | The passport ID may be wrong. |
{
"message": "productID n does not exists",
"code": "nmp.productManagement.PRODUCT_ID_NOT_EXISTS"
}Updated 6 days ago
