Activities
Create an activity
POST
/
activities
Create an activity
curl --request POST \
--url https://api.outreign.io/rest-api/activities \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"subject": "<string>",
"type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subject: '<string>', type: '<string>'})
};
fetch('https://api.outreign.io/rest-api/activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.outreign.io/rest-api/activities"
payload = {
"subject": "<string>",
"type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"type": "<string>",
"due_date": "2023-11-07T05:31:56Z",
"completed": true,
"lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"deal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Was this page helpful?
⌘I
Create an activity
curl --request POST \
--url https://api.outreign.io/rest-api/activities \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"subject": "<string>",
"type": "<string>"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subject: '<string>', type: '<string>'})
};
fetch('https://api.outreign.io/rest-api/activities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.outreign.io/rest-api/activities"
payload = {
"subject": "<string>",
"type": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subject": "<string>",
"type": "<string>",
"due_date": "2023-11-07T05:31:56Z",
"completed": true,
"lead_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"deal_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}