Description
Retrieves a record given its ID. The unique identifier is typically a UUID, but it may be a different unique string in some cases.
GET
/graph/records/{recordId}
Required OAuth Scopes:
graph:read
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
recordId | path | string | true | The unique identifier of the record |
$expand | query | string | false | Returns related resources inline with the main resource |
Expand Options
Expands Options Supported |
---|
relationships |
Code Samples
curl -X GET https://api.app.wdesk.com/platform/v1/graph/records/{recordId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/graph/records/{recordId} \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/graph/records/{recordId}" \
--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/graph/records/{recordId}', headers = headers)
print(r.json())
Returns
200 - OK
Returns a Record
object containing details about the requested Record
.
Example Responses
{
"id": "931c768b-c3dd-4392-b56e-06d7d6ff88a6",
"properties": {
"dateReported": {
"datatype": "date-time",
"value": "2019-12-11T00:00:00Z"
},
"email": {
"datatype": "string",
"value": "[email protected]"
},
"hyperlink": {
"datatype": "map",
"value": {
"text": "Example Website",
"url": "www.example.com"
}
}
},
"type": "Issue"
}