RestAPI - Override Field

When calling the UpdateEx via the restAPI, the “CreatedBy” field is stamped with the restAPI user. I was wondering if there is a way to pass the value as an override.

For example:

The restAPI user might be myAPIUser. But would like it to write myCustomUser instead.

Is this possible?

I don’t have a solution for you. But I am curious what the use case is. This sounds like a change that shouldn’t be made.

Check out the Impersonation Header in the REST guides on EpicWeb. Be sure to scope down the API user for that use case. Impersonation is a powerful tool and could be abused.

3 Likes

a bald man is sitting in a chair making a funny face .

2 Likes

The use case is populating the a table via a WebApp that calls the RestAPI.

When calling the UpdateEx, the restapi uses the credentials from the WebApp’s app pool.

I’d consider porting your ERP rest call logic into a function and just call that instead. No need to do all the funky rest calls from the client.

1 Like