PUT /api/v1/owner/:owner/campaigns/:campaign/messages/:message_id

Update a NDEF message

Signs the provided NDEF message and updates the current message stored in BlackSeal.

Request Parameters

At least one of the following parameters must be specified.

Name Description
description (conditional) New description for the message. Used for reference only.
ndef_message (conditional) New NDEF message to be signed. Base 64 encoding expected.

Response Parameters

Name Description
owner Owner of the message in BlackSeal.
id Identifier for the message in BlackSeal.
campaign The campaign the message is associated with.
signed_message The newly signed NDEF message.
date_created Date that the original NDEF message was signed.
description Description of the signed message in BlackSeal.

Examples

Sample Request

PUT:/api/v1/owner/tptestndef/campaigns/NDEF-Testing/messages/X6dGH22a
            
{
    "description": "signUriRecord"
    "ndef_message": "0QEOVQJ0cnVzdHBvaW50LmNh"
}
            
        

Sample Response

            
{
    "owner": "tptestndef",
    "id": "X6dGH22a",
    "campaign": "NDEF-Testing",
    "signed_message": "kQEOVQJ0cnVzdHBvaW50LmNhQQMAAAE2U2lnIAsCAEAeWmxNCchzWUjbL81iwfdhRRWeW2XNPfzHQ5yTeNKBPmuz5WYEeo62qfhEY1MebURA5rr4GbgPi5vzWUOu4cYCEQDudIHroFuBAQmCBSuBOgENpA2GC2JsYWNrc2VhbGNhhQRWujSQhgQB4oUApwqGCEMgKFAyNTYpiAUrgToBCYohA39S3X/HknnZqsvxCmeA2jQJ1u9UJ73qR53WrT+xYGTxgYGLMIGIAkIBiq/W/JA85nFokyVdPU3HSziFm12ZeGGw6dkd2tfe6oCOKjCy91UR5ThGCXhZ4AOK8bQsVwtUyfvmPebYsmyaAg8CQgCdAyVu2e4dhbXChf7NtIXzdEr7F9GlHqXjXTt8y66Ki3673BLYT1HpcTMnen0tnkjxuv0SqFE758BqSSvDFSdBSQ==",
    "date_created": "2016-02-08T19:50:05.295Z",
    "description": "signUriRecord"
}