Curl command for listing all tests and statuses in a test run

Hi,
I’m trying to do some reporting through the API. Currently, I’m trying to list the tests and statuses for a given test run. I’m using this:

https://app.testiny.io/api/v1/testcase/find

   {

        "map": {

            "entities": ["testcase", "testrun"],

            "ids": { "testrun_id": 1 }

        },

        "pagination:" { limit: 1000 },

        "order": [{ "column": "testrun_testcase_values.result_status", "order": "asc" }]

   }

And I’m getting this back:
{
“type”: “ApiError”,
“code”: “API_INVALID_REQUEST”,
“message”: “Invalid entity id”,
“reqid”: “PQITZ01Gbp1puCQDxYZs”
}

When I run a command line curl, it shows me this for the test runs I have, 1 is a valid id:

{“meta”:{“offset”:0,“limit”:2000,“count”:3},“data”:[{“id”:1,“title”:“Differentiated Observations 12/8/2023”,“created_at”:“2023-12-08T13:25:05.891Z”,“created_by”:7284,“modified_at”:“2023-12-08T13:25:05.891Z”,“modified_by”:7284,“deleted_at”:null,“deleted_by”:null,“_etag”:“”,“project_id”:1,“testplan_id”:1,“closed_at”:null,“is_closed”:false,“description”:“{"v":1,"t":"slate","c":[{"t":"p","children":[{"text":""}]}]}”},{“id”:3,“title”:“13 Form - Bug Fixes”,“created_at”:“2023-12-14T16:32:37.212Z”,“created_by”:5235,“modified_at”:“2023-12-14T16:32:37.212Z”,“modified_by”:5235,“deleted_at”:null,“deleted_by”:null,“_etag”:“”,“project_id”:1,“testplan_id”:null,“closed_at”:null,“is_closed”:false,“description”:“{"v":1,"t":"slate","c":[{"t":"p","children":[{"text":""}]}]}”},{“id”:5,“title”:“Student Learning Objective 12/19/2023”,“created_at”:“2023-12-19T13:30:33.645Z”,“created_by”:7284,“modified_at”:“2023-12-19T13:30:33.645Z”,“modified_by”:7284,“deleted_at”:null,“deleted_by”:null,“_etag”:“”,“project_id”:1,“testplan_id”:null,“closed_at”:null,“is_closed”:false,“description”:“{"v":1,"t":"slate","c":[{"t":"p","children":[{"text":"Initial test run for SLO"}]}]}”}]}

Hello Sean,
I think you might have used “get” instead of “post”, which needs to be used if the request has a body (which is the case here)

Regards, Michael