PUT /api/v1/owner/:owner/campaigns/:campaign/urls/:id
Update a particular URL
Accepts a request and responds with the new URL information.
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
PUT:/api/v1/users/me/campaigns/camp1/urls/iW6Y87
{
campaign: "camp1",
url: "http://example.com",
description: "Just updating the description"
}
Sample Response
{
"id": "iW6Y87",
"campaign_id": "54c2c6b1aa7b47cfc140691c",
"url": "http://example.com",
"description": "Just updating the description",
"date_created": "2015-02-17T17:37:12.400Z",
}