API Reference

Retrieve a list of test phases

Description

Returns a list of test phases.

GET /testForms/{testFormId}/testPhases

🚧

Required OAuth Scopes:

graph:read

Parameters

ParameterInTypeRequiredDescription
testFormIdpathstringtrueThe unique identifier of the test form
$expandquerystringfalseReturns related resources inline with the main resource

Expand Options

Expands Options Supported
attachments, matrices

Code Samples

curl -X GET https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases  \ 
-H 'Accept: application/json' \ 
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases  \ 
Accept:application/json \ 
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases" \
 --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://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases', headers = headers)

print(r.json())

Returns

200 - OK

Returns a JSON object with data and @nextLink properties. data contains a list of TestPhase objects, and @nextLink provides the URL to the next set of results. If there are no additional results, @nextLink doesn't appear. If the request returns no results at all, data contains an empty array.

Example Responses


{
  "data": [
    {
      "id": "bac770b8-1673-11ec-9621-0242ac130002",
      "name": "Walkthrough"
    },
    {
      "id": "fac4ae02-de87-4956-8c58-125e55b19127",
      "name": "Follow Up"
    }
  ],
  "@nextLink": "{opaqueUrl}"
}