If you have a requirement for defining value Created By, Created Date, Last Modified By ID, Last Modified Date via API call, I will explain the step to allow Salesforce edited that field.
Need to know
This solution will allow only on Salesforce API 51.
- We can define the fields only API Call.
- These fields can definitively an only INSERT step.
- This definition should be in dedicated user.