Description
Returns a record type given its ID (name)
GET
/graph/types/{typeId}
Required OAuth Scopes:
graph:read
Parameters
Parameter | In | Type | Required | Description |
---|---|---|---|---|
typeId | path | string | true | The unique identifier of the type |
$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/types/{typeId} \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}'
http GET https://api.app.wdesk.com/platform/v1/graph/types/{typeId} \
Accept:application/json \
Authorization:"Bearer {access-token}"
wget --method=GET "https://api.app.wdesk.com/platform/v1/graph/types/{typeId}" \
--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/types/{typeId}', headers = headers)
print(r.json())
Returns
200 - OK
Returns a Type
object containing details about the requested Type
.
Example Responses
{
"id": "User",
"properties": [
"userName",
"firstName",
"lastName",
"email"
]
}