POST /api/v1/owner/:owner/campaigns/:campaign/urls/:url/tags

Create a Tag

Creates or Returns a Signed Tag for the requested URL. Optionally appends a UID or hardware attribute data to signed data.

Request Parameters

Name Description
uid (optional) The Exact UID of the NFC tag that response will be written to, Base64 Encoded. Must be specified if tag_digest is specified.
tag_attributes (optional) Computed summary of hardware attributes of the NFC tag that response will be written to. Must be specified if tag_digest is specified.
tag_digest (optional) Computed digest of hardware attributes of the NFC tag that response will be writted to. Must be specified if tag_attributes is specified.

Response Parameters

Name Description
uid The UID of the tag that was provided in the request
tag_attributes Computed summary of hardware attributes that was provided in the request.
tag_digest Computed digest of hardware attributes that was provided in the request.
url The Short URL Suffix assigned by the server to the URL
created_by The Username of the User that created the tag.
signed_payload The complete signed NDEF Message.
date_created Date that the URL was created.

Examples

Sample Request

POST:/api/v1/users/me/campaigns/camp1/urls/fj11l/tags
            
{
    "uid": "12312m3nkj1231222"
    "tag_attributes": "030F"
    "tag_digest": "54O50G9fRooPcnnrR1SW7SQQ1QW030WQMILPDN9HNFW~"
}
            
        

Sample Response

            
{
    "uid": "12312m3nkj1231222"
    "tag_attributes": "030F"
    "tag_digest": "54O50G9fRooPcnnrR1SW7SQQ1QW030WQMILPDN9HNFW~"
    "url": "fj11l",
    "created_by": "tdent",
    "date_created": "Thu Jan 1 1970 00:00:00 GMT-0500 (EST)",
    "signed_payload": "BASE64 ENCODED NDEF MESSAGE" 
}