Skip to content

Commit

Permalink
update registration to use PUT method
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeetha5491 committed Sep 28, 2022
1 parent 3fc8d2a commit abfca52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ class EventsCoreAPI {
*/
updateRegistration (consumerOrgId, projectId, workspaceId, registrationId, body) {
const headers = {}
const requestOptions = this.__createRequest('POST', headers, JSON.stringify(body))
const requestOptions = this.__createRequest('PUT', headers, JSON.stringify(body))
const url = this.__getUrl(`/events/${consumerOrgId}/${projectId}/${workspaceId}/registrations/${registrationId}`)
const sdkDetails = { requestOptions: requestOptions, url: url }
return this.__handleRequest(sdkDetails, codes.ERROR_UPDATE_REGISTRATION)
Expand Down

0 comments on commit abfca52

Please sign in to comment.