Update request phase
1 分
PATCH
https://api.app.kognic.com/v1/request-phases/{requestPhaseId}
requestPhaseIdstring<uuid>
acceptstringGenerated from available response content types
bodyobjectPhase to update. Configuration should correspond to the type of the phase
200
400Bad request
401Unauthorized
403Forbidden
404Not found
413Payload too large
500Internal server error
import requests
import json
url = "https://api.app.kognic.com/v1/request-phases/{requestPhaseId}"
payload = json.dumps({
"config": {
"configClass": ""
}
})
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("PATCH", url, headers=headers, data=payload)
print(response.text)