HomeDocumentationAPI ReferenceChangelog
Arianee Protocol DocumentationLog In
Documentation

Update Profile

Update an existing profile on your NFT Management Platform.

URL

Required rights: admin, accountManage or usersManage

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

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

Body

FieldTypeRequiredDescription
nameString✅New name of the profile.
rightscertRead, 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 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\""
}

Did this page help you?