Succesfully update service notes

This commit is contained in:
Pea Tyczynska
2021-01-15 15:38:39 +00:00
parent 6d7b16fd59
commit 341933478b
2 changed files with 20 additions and 1 deletions

View File

@@ -109,12 +109,12 @@ class ServiceAPIClient(NotifyAdminAPIClient):
'go_live_user',
'go_live_at',
'rate_limit',
'notes',
}
if disallowed_attributes:
raise TypeError('Not allowed to update service attributes: {}'.format(
", ".join(disallowed_attributes)
))
endpoint = "/service/{0}".format(service_id)
return self.post(endpoint, data)