Skip to content

The open alternative to Salesforce, designed for AI.

389 B
Raw Blame
import { RestApiClient } from 'twenty-client-sdk/rest';

import { type LinkedinSettingsView } from 'src/types/linkedin-settings-view.type';

export const postLinkedinSettingsRouteOrThrow = ({
  routePath,
  body = {},
}: {
  routePath: string;
  body?: Record<string, unknown>;
}): Promise<LinkedinSettingsView> =>
  new RestApiClient().post<LinkedinSettingsView>(`/s${routePath}`, body);