mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 16:38:59 -04:00
Allow editing of an organisation’s details
Adds a user interface for updating all the columns added in https://github.com/alphagov/notifications-api/pull/2368 Sorry for the mega commit 😓
This commit is contained in:
@@ -15,11 +15,11 @@ class OrganisationsClient(NotifyAdminAPIClient):
|
||||
}
|
||||
return self.post(url="/organisations", data=data)
|
||||
|
||||
def update_organisation(self, org_id, **kwargs):
|
||||
return self.post(url="/organisations/{}".format(org_id), data=kwargs)
|
||||
|
||||
def update_organisation_name(self, org_id, name):
|
||||
data = {
|
||||
"name": name
|
||||
}
|
||||
return self.post(url="/organisations/{}".format(org_id), data=data)
|
||||
return self.update_organisation(org_id, name=name)
|
||||
|
||||
def get_service_organisation(self, service_id):
|
||||
return self.get(url="/service/{}/organisation".format(service_id))
|
||||
|
||||
Reference in New Issue
Block a user