Update Profile
Update an existing profile on your NFT Management Platform.
URL
To update a profile, use /profile/:id
.
PUT - https://{{nmpUrl}}/profile/:id
Body
Field | Type | Required | Description |
---|---|---|---|
name | String | โ | New name of the profile. |
rights * | admin , certRead , certCreate , certPrint , certDelete , certDelete , certRecover , messageSend , assetsUpload , identityUpdate , accountManage , messageSetupAuto , usersManage , eventCreate , reporting , smartContractSend | โ | Right(s) you wish to associate with the profile. |
{
"name": "DigitalPassportManagement",
"rights": [
"certCreate"
}
Return Payload
The profile has been updated.
{
"_id": "65ca401ac784dd6e41c3a045",
"name": "test3",
"rights": [
"certCreate"
],
"__v": 0,
"id": "65ca401ac784dd6e41c3a045"
}
Errors
Statut Code | Success | Description |
---|---|---|
500 | false | The ID may not exist. |
{
"stringValue": "\":id\"",
"valueType": "string",
"kind": "ObjectId",
"value": ":id",
"path": "_id",
"reason": {},
"name": "CastError",
"message": "Cast to ObjectId failed for value \":id\" (type string) at path \"_id\" for model \"Profile\""
}
Right | Description |
---|---|
admin | All rights are associated with this profile. |
certRead | Read digital passports only. |
certCreate | Create digital passports. |
certPrint | Print digital passport. |
certDelete | Destroy digital passport. |
certRecover | Recover digital passport. |
messageSend | Send messages to digital passports. |
assetsUpload | Upload media hosted on your NFT Management Platform for digital passport design. |
identityUpdate | Update the identity associated with your NFT Management Platform. |
accountManage | Manage accounts on your NFT Management Platform. |
usersManage | Manage users on your NFT Management Platform. |
eventCreate | Create and link Arianee events to digital passports. |
reporting | Access reporting. |
smartContractSend | Manage smart contracts. |
Updated 3 months ago