API Reference

Description

Retrieves a list of chains for an environment.

GET /v1/metadata/environment/{environment_id}/chain

Parameters

ParameterInTypeRequiredDescription
environment_idpathstringtrueThe ID of the Environment.

Code Samples

curl -X GET https://h.app.wdesk.com/s/wdata/oc/api/v1/metadata/environment/{environment_id}/chain  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://h.app.wdesk.com/s/wdata/oc/api/v1/metadata/environment/{environment_id}/chain  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://h.app.wdesk.com/s/wdata/oc/api/v1/metadata/environment/{environment_id}/chain" \
 --output-document -  \ 
 --header 'Accept: application/json' \ 
 --header 'Authorization: Bearer {access-token}'
import requests
headers = {
  'Accept': 'application/json',
  'Authorization': 'Bearer {access-token}'
}

r = requests.get('https://h.app.wdesk.com/s/wdata/oc/api/v1/metadata/environment/{environment_id}/chain', headers = headers)

print(r.json())

Returns

200 - OK

Returns a ChainsResponse containing an array of Chain objects for the provided environment_id.

Example Responses


{
  "data": [
    {
      "id": "1",
      "internal_id": 0,
      "name": "string",
      "description": "string",
      "created_at": "2018-03-14 20:10:39.520585",
      "updated_at": "2018-03-14 20:10:39.520585",
      "disabled": true,
      "concurrency_enabled": false,
      "runtime_inputs": [
        {
          "vuid": "45072337-72ee-4c52-9428-0b2ae21ac73c",
          "data_type": "file"
        }
      ],
      "schedules": [
        {
          "enabled": true,
          "start_at": "2019-02-08 06:25:00",
          "end_at": "2019-02-08 06:25:00",
          "properties": {
            "days_of_month": [
              "15",
              "30"
            ],
            "days_of_week": [],
            "recurring_interval": 0,
            "recurring_type": "monthly",
            "run_at_hours": 0,
            "run_at_minutes": 0,
            "run_at_seconds": 0,
            "zone": "America/New_York"
          }
        }
      ]
    }
  ]
}