Activities - Edit *



* This is an advanced endpoint. To use, please make sure your plan has advanced access.

Endpoint

POST /v1.1/activities/[ActivityID]/edit

Description

Edit an existing tracking activity

Parameters
required *

apiKey *  string Your API access key
[ActivityID]  integer Activity to edit
name  string Name of activity
limit  string Maximum times to track this activity within repeat_period specified. Default: no limit
repeat_period  integer Period to apply limit to. Values: HOUR, DAY, WEEK, MONTH, TOTAL
start_date  string Date to start tracking the activity
end_date  integer Date to stop tracking activity
score  string Weighted score to apply to activity
active  boolean A value of 1 enables activity for tracking (default 0)

Sign in with your developer account to use the console, or sign up here

Example Request

curl -X POST "https://api.theappreciationengine.com/v1.1/activities/4327/edit?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p"
$curl = curl_init();

curl_setopt_array($curl, array( 
	CURLOPT_URL => "https://api.theappreciationengine.com/v1.1/activities/4327/edit?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p", 
	CURLOPT_RETURNTRANSFER => true, 
	CURLOPT_ENCODING => "", 
	CURLOPT_MAXREDIRS => 10, 
	CURLOPT_TIMEOUT => 0, 
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, 
	CURLOPT_CUSTOMREQUEST => "POST", 
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
import requests

url = "https://api.theappreciationengine.com/v1.1/activities/4327/edit?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p"

headers = {}
payload = {}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text.encode('utf8'))
var request = require('request');
var options = {
	'method': 'POST',
	'url': 'https://api.theappreciationengine.com/v1.1/activities/4327/edit?apiKey=0a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p',
	'headers': {}
};
request(options, function (error, response) {
	if (error) throw new Error(error);
	console.log(response.body);
});

Example Response

{
"ID": 1701,
"Name": "Watch the Enterprise launch on YouTube",
"Created": "2020-05-06 16:00:00",
"LastEdited": "2020-05-06 16:00:00",
"Score": 0,
"Repeatable": 1,
"StartDate": "2020-06-06 16:00:00",
"EndDate": "2020-07-06 16:00:00",
"Limit": 0,
"RepeatPeriod": null,
"VerifiedDate": null,
"Active": 1
}