POST /api/v1/owner/:owner/campaigns

Create a Campaign

Accepts a request and responds with the new Campaign object.

Request Parameters

Name Description
name The Campaign name. This name is used as an identifier. It must be composed alphanumeric characters, plus undercores and dashes.
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

POST:/api/v1/owner/tdent/campaigns
            
{
    "name": "returnToFuture4",
    "description": "New movie coming out on December 3rd"
}
            
        

Sample Response

The full Campaign resource is returned in response.

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