Start Campaign Api
curl --request PUT \
--url https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start \
--header 'X-API-Key: <api-key>'import requests
url = "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start"
headers = {"X-API-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-API-Key': '<api-key>'}};
fetch('https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Campaigns
Start Campaign
Initiates a specified campaign, marking it as active and beginning the exchanges.
Path Parameters
organisation_id(int): The ID of the organisation under which the campaign is registered.campaign_id(int): The unique identifier of the campaign to be started.
Headers
X-API-Key: API key for user authentication.
Response
- Returns a confirmation message indicating that the campaign has been successfully started and will begin its operations imminently.
Errors
400 Bad Request: If the campaign cannot be started due to missing or invalid campaign settings.403 Forbidden: If the user making the request does not have the necessary permissions to start the campaign.404 Not Found: The campaign does not belong to the specified organisation.
PUT
/
api
/
v1
/
campaigns
/
{campaign_id}
/
start
Start Campaign Api
curl --request PUT \
--url https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start \
--header 'X-API-Key: <api-key>'import requests
url = "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start"
headers = {"X-API-Key": "<api-key>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {'X-API-Key': '<api-key>'}};
fetch('https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start"
req, _ := http.NewRequest("PUT", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services.meetchase.ai/api/v1/campaigns/{campaign_id}/start")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}