|
2021년 1월부터 기존 파일 형식을 더 이상 사용할 수 없습니다. 기존 파일을 전환하거나 PDF를 다운로드할 수 있습니다. 자세히 알아보기

getting error 400 in scripting, chains, api

0

댓글

댓글 2개

  • Isabel Messore

    Rameswaran Mohan,

    We're happy to help you work through this issue. I'm going to connect you with support, to ensure you have the fastest and most insightful assistance possible! 

    0
  • Jeff Hickey

    Hello Ram,

    I can confirm that the API is functioning and that a correctly formatted request is returning 200 on success. Below is example python code you can use to test. Double check that your environment and chain IDs are correct. You can easily get these IDs by navigating to the Chain in the Chain tab and clicking the arrow to the left of the Chain name. Here is more information on where to find the IDs. Replace the IDs with the place holders in the URL below as well as a valid bearer token in the header.

    import requests
    import json

    url = "https://h.app.wdesk.com/s/wdata/oc/api/v1/execute/environment/<environment_id>/chain/<chain_id>/start"

    payload = json.dumps({
     "runtimeVariables": {
       "variableName": "variableValue"
     }
    })

    headers = {
     'Content-Type': 'application/json',
     'Accept': 'application/json',
    'Authorization': 'Bearer <valid_token>'
    }

    response = requests.request("POST", url, headers=headers, data=payload)

    print(response.text)
    0

댓글을 남기려면 로그인하세요.