diff --git a/projects/common/src/fm/services/codelistitem.service.ts b/projects/common/src/fm/services/codelistitem.service.ts index 175f462..3900080 100644 --- a/projects/common/src/fm/services/codelistitem.service.ts +++ b/projects/common/src/fm/services/codelistitem.service.ts @@ -23,8 +23,8 @@ export class CodeListItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/codelistitems/`, { params: params }); } - postCodeListItem(codeList: string, codeListItem: ICodeListItem): Observable { - return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeList}`, codeListItem); + postCodeListItem(codeListItem: ICodeListItem): Observable { + return this.httpClient.post(`${this.ApiEndpoint()}/api/v1/codelistitems/${codeListItem.codeList}`, codeListItem); } putCodeListItem(codeListItem: ICodeListItem): Observable {