Update task
1 分
PATCH
https://api.app.kognic.com/v1/tasks/{taskId}
taskIdstring<uuid>
acceptstringGenerated from available response content types
bodyobject
200
400Bad request
403Forbidden
404Not found
import requests
import json
url = "https://api.app.kognic.com/v1/tasks/{taskId}"
payload = json.dumps({
"pause": {
"issueDescription": ""
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)