Update Profile
Update an existing profile on your NFT Management Platform.
URL
Required rights:
admin
,accountManage
orusersManage
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 | certRead , transaction , certCreate , certPrint , certDelete , certRecover , messageSend , assetsUpload , identityUpdate , accountManage , messageSetupAuto , usersManage , eventCreate , admin , reporting , smartContractSend , stolen | โ | Right(s) you wish to associate with the profile. For more details on rights, see Rights Listing . |
{
"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\""
}
Updated 5 days ago