Property Selection
?expand[]=account&expand[]=c_customProperty1&expand[]=c_customProperty2Examples
$.ajax({
url: "https://api.dev.medable.com/example/patientfiles/550891732390ac1832f3317f?expand[]=account&include[]=connections&paths[]=posts&paths[]=age&paths[]=name.first",
type: "GET",
contentType: "application/json; charset=UTF-8",
dataType : "json",
headers: {
"Medable-Client-Key": "GsAqlhnIMzrDeD8V2MBQWq"
}
});{
"_id": "550891732390ac1832f3317f",
"object": "patientfile",
"account": {
"_id": "550b82336390d9cc34fdd1f0",
"access": 1,
"name": {
"first": "Phineas",
"last": "Gage"
},
"object": "account",
"roles": []
},
"age": 25,
"connections": [
{
"_id": "550b9a25c59c1ef032ab641c",
"object": "connection",
"access": 2,
"context": {
"_id": "550891732390ac1832f3317f",
"object": "patientfile",
"path": "/patientfiles/550891732390ac1832f3317f"
},
"created": "2015-03-20T03:55:17.000Z",
"creator": {
"_id": "4578616d706c652055736572",
"object": "Account",
"path": "/accounts/4578616d706c652055736572"
},
"state": 1,
"target": {
"email": "[email protected]"
}
}
],
"creator": {
"_id": "4578616d706c652055736572",
"name": {
"first": "Developer"
},
"object": "account"
},
"name": {
"first": "Phineas"
}
"posts": []
}Last updated
Was this helpful?