MCPcopy Index your code
hub / github.com/simstudioai/sim / buildUpdateRecordUrl

Function buildUpdateRecordUrl

apps/sim/tools/agiloft/utils.ts:48–55  ·  view source on GitHub ↗
(
  base: string,
  params: AgiloftBaseParams & { recordId: string }
)

Source from the content-addressed store, hash-verified

46}
47
48export function buildUpdateRecordUrl(
49 base: string,
50 params: AgiloftBaseParams & { recordId: string }
51): string {
52 const { kb, table } = encodeTable(params)
53 const id = encodeURIComponent(params.recordId.trim())
54 return `${base}/ewws/REST/${kb}/${table}/${id}?$lang=en`
55}
56
57export function buildDeleteRecordUrl(base: string, params: AgiloftDeleteRecordParams): string {
58 const { kb, table } = encodeTable(params)

Callers 1

route.tsFile · 0.90

Calls 1

encodeTableFunction · 0.85

Tested by

no test coverage detected