Skip to content

Commit

Permalink
Merge pull request #723 from WadeBarnes/fix/delete_topic
Browse files Browse the repository at this point in the history
Fix: Update delete credential call
  • Loading branch information
swcurran authored Jan 4, 2022
2 parents f2bf64b + b6943b7 commit 62ba94f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async def delete_topic(self, *args, **options):
for credential in topic.credentials.all():
self.stdout.write(" ... " + credential.credential_id + " ...")
try:
response = requests.post(
f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}/remove",
response = requests.delete(
f"{settings.AGENT_ADMIN_URL}/credential/{credential.credential_id}",
headers=settings.ADMIN_REQUEST_HEADERS,
)
response.raise_for_status()
Expand Down

0 comments on commit 62ba94f

Please sign in to comment.