curl --request POST \
--url https://api.example.com/api/core/jira/validate-jql-and-api-version \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"credential_id": "<string>",
"jql_query": "<string>",
"api_version": "2"
}
'