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

Create a URL

Accepts a request and responds with the new URL object.

Request Parameters

Name Description
url Long URL that the service redirects to.
campaign The campaign where the new URL will be stored.
description Description associated with the URL.

Response Parameters

Name Description
id 6 character unique ID for URL.
campaign_id Unique ID specifying the campaign the URL belongs to.
url Long URL that the service redirects to.
description Description associated with the URL.
date_created Date that the URL was created.

Examples

Sample Request

POST:/api/v1/users/me/campaigns/camp1/urls
            
{
    "campaign": "camp1",
    "url": "http://example.com",
    "description": "Trying out BlackSeal, just a test"
}
            
        

Sample Response

            
{
    "id": "iW6Y87",
    "campaign_id": "54c2c6b1aa7b47cfc140691c",
    "url": "http://example.com",
    "description": "Trying out BlackSeal, just a test",
    "date_created": "2015-02-17T18:04:16.099Z"
}