We’ve developed some resources to help you work effectively from home during COVID-19 Click to learn more

REST endpoint for getting SystemInfo?

Hi, 

in the NetServer SOAP API it is possible to get SystemInfo. Specifically I need to get the ID of the owner Contact. 

var ownerCardId = SuperOffice.SoSystemInfo.GetCurrent().CompanyId;

I couldn't find the corresponding functionality in the REST API. Did I not look hard enough?

RE: REST endpoint for getting SystemInfo?

Hi Frode, 

Owner ContactId for the current user can be obtained using the current users principal:

/api/v1/user/currentPrincipal​


Hope this helps!
Von: Tony Yates 6. Apr 2020

RE: REST endpoint for getting SystemInfo?

Thanks! I must have glanced over that one.

But - while in the neighborhood, I see there is something called CustomCommand on the User endpoint. Haven't seen that before, is that something new and shiny?

Von: Frode Lillerud 6. Apr 2020

RE: REST endpoint for getting SystemInfo?

It's not new. It's used to invoke in-product commands. It can't be used for external purposes. 

 

Von: Tony Yates 6. Apr 2020