Update Profile

Profiles in the NFT management platform are used to define user rights rules.

URL

To update a profile, use /profile/:id.

PUT - https://{{nmpUrl}}/profile/:id

Body

FieldTypeRequiredDescription
nameStringβœ…New name of the profile.
rightsadmin, 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": "test3",
    "rights": [
        "certCreate"
}

Return Payload

The profile has been updated.

{
    "_id": "65ca401ac784dd6e41c3a045",
    "name": "test3",
    "rights": [
        "certCreate"
    ],
    "__v": 0,
    "id": "65ca401ac784dd6e41c3a045"
}

Errors

Statut CodeSuccessDescription
500falseThe 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\""
}