Create a new Project

Creates a new Project for a specific Account. When you create a Project, a default Workflow containing four Statuses will be created and associated with it. As part of this request a type can be passed as an argument to specify the project type.

Available options for the project types are :-

  • website-build
  • ongoing-website-content
  • marketing-editorial-content
  • email-marketing-content
  • other

Response Code

202

Arguments

account_id The ID of the Account
name The name of the Project
type (optional) The type of Project

Definition

POST: /projects

cURL Example

curl https://api.gathercontent.com/projects \ -u [email protected]:<YOUR_API_KEY> \ -H "Accept: application/vnd.gathercontent.v0.5+json" \ -X POST --data "account_id=7258&name=Project Name&type=email-marketing-content"

PHP Example

<?php
$username 
[email protected]';
$apikey '<YOUR_API_KEY>';

$data = array(
    
'account_id' => '<ACCOUNT_ID>',
    
'name' => '<NAME>',
    
'type' => '<PROJECT TYPE>'
);

$ch curl_init();

curl_setopt$chCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt$chCURLOPT_HTTPHEADER, array('Accept: application/vnd.gathercontent.v0.5+json''Content-Type: application/x-www-form-urlencoded'));
curl_setopt$chCURLOPT_USERPWD$username ':' $apikey);
curl_setopt$chCURLOPT_URL'https://api.gathercontent.com/projects');
curl_setopt$chCURLOPT_RETURNTRANSFERtrue );
curl_setopt$chCURLOPT_POSTtrue );
curl_setopt$chCURLOPT_POSTFIELDShttp_build_query($data));

$response json_decodecurl_exec$ch ) );
curl_close$ch );

Great, welcome aboard!

That’s it! You’re signed up to our mailing list and can expect content strategy goodness in your inbox soon.