diff --git a/.changeset/wicked-comics-dress.md b/.changeset/wicked-comics-dress.md new file mode 100644 index 00000000..08b3c466 --- /dev/null +++ b/.changeset/wicked-comics-dress.md @@ -0,0 +1,5 @@ +--- +"@absmach/magistrala-sdk": patch +--- + +update re api method type diff --git a/package-lock.json b/package-lock.json index e456ac5f..910ccb5d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@absmach/magistrala-sdk", - "version": "0.10.7", + "version": "0.10.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@absmach/magistrala-sdk", - "version": "0.10.7", + "version": "0.10.10", "license": "Apache-2.0", "dependencies": { "@changesets/cli": "^2.27.6", diff --git a/src/re.ts b/src/re.ts index 073c48b0..13299ab9 100644 --- a/src/re.ts +++ b/src/re.ts @@ -161,7 +161,7 @@ export default class Rules { token: string ): Promise { const options: RequestInit = { - method: "PUT", + method: "PATCH", headers: { "Content-Type": this.contentType, Authorization: `Bearer ${token}`, @@ -243,7 +243,7 @@ export default class Rules { token: string ): Promise { const options = { - method: "PUT", + method: "POST", headers: { "Content-Type": this.contentType, Authorization: `Bearer ${token}`, @@ -282,7 +282,7 @@ export default class Rules { token: string ): Promise { const options = { - method: "PUT", + method: "POST", headers: { "Content-Type": this.contentType, Authorization: `Bearer ${token}`,