import requests
url = "https://api.diga.io/v1/agent-template/{template_id}/apply"
payload = {
"agent_name": "<string>",
"variables": {},
"is_draft": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>"
}import requests
url = "https://api.diga.io/v1/agent-template/{template_id}/apply"
payload = {
"agent_name": "<string>",
"variables": {},
"is_draft": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.