How to assign value to CreatedById fields via REST API in Salesforce

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.

  • These fields can definitively an only INSERT step.
  • This definition should be in dedicated user.