Description
Retrieves a sample given its ID.
GET
/testForms/{testFormId}/testPhases/{testPhaseId}/matrices/{matrixId}/samples/{sampleId}
Required OAuth Scopes:
graph:read
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
testFormId | path | string | true | The unique identifier of the test form |
testPhaseId | path | string | true | The unique identifier of the test phase |
matrixId | path | string | true | The unique identifier of the matrix |
sampleId | path | string | true | The unique identifier of the sample |
$expand | query | string | false | Returns related resources inline with the main resource |
Expand Options
Expands Options Supported |
---|
attachments |
Code Samples
curl -X GET https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases/{testPhaseId}/matrices/{matrixId}/samples/{sampleId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases/{testPhaseId}/matrices/{matrixId}/samples/{sampleId} \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/testForms/{testFormId}/testPhases/{testPhaseId}/matrices/{matrixId}/samples/{sampleId}" \
--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/{testPhaseId}/matrices/{matrixId}/samples/{sampleId}', headers = headers)
print(r.json())
Returns
200 - OK
This object represents a single row of a matrix.
Example Responses
{
"id": "ce4a6c7f-15ad-445c-a76a-f457d53f667a",
"dataValues": [
{
"column": "d795d7a3-e7f7-4b3f-be6a-109653b2929b",
"value": 123
},
{
"column": "fbd818ec-4fd1-42ad-9112-3c80e71dc2dc",
"value": 101.1
}
],
"resultValues": [
{
"column": "d795d7a3-e7f7-4b3f-be6a-109653b2c34d",
"value": "PASS"
}
]
}