AnsweredAssumed Answered

Error trying to get documents related to contracts via REST

Question asked by Joe Slaugh on Jul 10, 2015
Latest reply on Jul 10, 2015 by Joe Slaugh
SugarCRM 7.5.0.1 Pro.
I'm trying to get a list of documents related to a specific contract using the rest api.
This works and gives me back the details of the contract:
rest/v10/Contracts/029e901b-6118-460f-b8d9-37682c84d970

When I try:
rest/v10/Contracts/029e901b-6118-460f-b8d9-37682c84d970/link/documents

I get:
{    "error": "not_found",
    "error_message": "Could not find a relationship named: documents"
}

When I log into sugarCRM I can see a list of three documents under that specific contract.

Outcomes