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

Update a particular Campaign

Accepts a request, updates Campaign attributes, and responds with full Campaign details.

Request Parameters

Name Description
description A friendly description of this Campaign. It will be shown in the application UI.

Response Parameters

Name Description
name The name of the Campaign.
description Description of the Campaign.
owner The Owner (Organization Name or User Name) that the Campaign belongs to.
date_created A JSON encoded Date indicating when this campaign was created.

Examples

Sample Request

PUT:/api/v1/owner/tdent/campaign/returnToFuture4
            
{
    "description": "New movie coming out on December 4th"
}
            
        

Sample Response

The full Campaign resource is returned in response.

            
{
    "name": "returnToFuture4",
    "description": "New movie coming out on December 3rd, 2016",
    "owner": "tdent",
    "date_created": "Thu Jan 1 2015 09:00:00 GMT-0500 (EST)"
}