Skip to content

Commit 2c7b542

Browse files
feat: add fetchAppMetadataBySourceId API function (#373)
Add new API function to fetch app metadata using project ID and source ID (app UID). This enables querying app metadata by the combination of project ID and app source identifier, expanding the available lookup methods beyond just app UID. Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 616a5eb commit 2c7b542

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

api/appsDev.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,17 @@ export function fetchAppMetadataByUid(
7171
},
7272
});
7373
}
74+
75+
// Note: This is intentionally Project ID and not name
76+
export function fetchAppMetadataBySourceId(
77+
projectId: number,
78+
appUid: string,
79+
accountId: number
80+
): HubSpotPromise<PublicApp> {
81+
return http.get<PublicApp>(accountId, {
82+
url: `${APPS_DEV_API_PATH}/project-id/${projectId}/source-id/${appUid}`,
83+
params: {
84+
sourceId: appUid,
85+
},
86+
});
87+
}

0 commit comments

Comments
 (0)