Choose a Status

Apply a Status from the Project’s Workflow to a particular Item.

Response Code

202

Arguments

item_id The ID of the Item to apply a Status to
status_id The ID of the Status to apply

Definition

POST /items/<ITEM_ID>/choose_status

cURL Example

curl https://api.gathercontent.com/items/<ITEM_ID>/choose_status \ -u [email protected]:<YOUR_API_KEY> \ -H "Accept: application/vnd.gathercontent.v0.5+json" \ -X POST --data "status_id=<STATUS_ID>"

PHP Example

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

$data = array(
    
'status_id' => '<STATUS_ID>',
);

$item_id '<ITEM_ID>';

$ch curl_init();

curl_setopt$chCURLOPT_HTTPAUTHCURLAUTH_BASIC);
curl_setopt$chCURLOPT_HTTPHEADER, array('Accept: application/vnd.gathercontent.v0.5+json'));
curl_setopt$chCURLOPT_USERPWD$username ':' $apikey);
curl_setopt$chCURLOPT_URL'https://api.gathercontent.com/items/' $item_id '/choose_status');
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.