Unanswered
I Have A Clearml Server Deployed. I Can See In The Docs That One Way Of Doing Things Is Through Api Calls. The Docs Mention The End Point Url But Does Not Mention The Base Url. Is There Any Example Of An Api Call Url?
Yes, because you need to authenticate using credentials or a token... This is something that's missing apparently in the documentation (I'll make sure we fix it). In your code, you'll need to do something like the following:
` import requests
from requests.auth import HTTPBasicAuth
key = "<credential key for the user>"
secret = "<credential decreto fro the user>"
request_body = {
'ids': task_ids,
'status_reason': 'Tasks being spawned out of control'
}
url = ' '
x = requests.post(url, auth=HTTPBasicAuth(key, secret), json=request_body)
print(x) `
155 Views
0
Answers
2 years ago
one year ago