I am trying to programmatically add lines to a specific Project Journal using the Dynamics 365 Buisness Central API. The following endpoint seems to suit my needs:
POST businesscentralPrefix/companies({id})/journals({id})/journalLines
However, a /journals id is necessary in order to use it. I've tried to find the ID of the specific Project Journal using the following enpoint,
GET businesscentralPrefix/companies({id})/journals
but this returns the list of Journals listed under General Journals, not Project Journals. I have yet to find an API endpoint suited to this specific demand.
Any help would be appreciated,
Kind regards,