As described in the documentation:

it should be possible for example to create a note with a commit reference.
Sadly, the values:
- createdAt
- internal
- merge_request_diff_head_sha
cannot be set with the current note api:

This is a huge blocker for us, I attempted writing my own CURL request with no success.