Generic Service

In case there is no "typed" support for a particular service, you can always use the Generic Service to interact with the 3DEXPERIENCE™ REST services.

When using the Generic Service you need to construct the request payload and parse the response on your own.

Example:

const input = {  };
const response = spaceService
    .getGenericService()
    .post(session, '/api/foo/bar', JSON.stringify(input));
if (response.succeeded()) {
    const data = JSON.parse(response.bodyText());

}
The generic service will still help you to deal with CSRF tokens and the authorization exchange.