mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-25 18:38:57 -04:00
link-services-to-organisations
This commit is contained in:
@@ -28,3 +28,15 @@ class OrganisationsClient(NotifyAdminAPIClient):
|
||||
"name": name
|
||||
}
|
||||
return self.post(url="/organisations/{}".format(org_id), data=data)
|
||||
|
||||
def get_service_organisation(self, service_id):
|
||||
return self.get(url="/service/{}/organisation".format(service_id))
|
||||
|
||||
def update_service_organisation(self, service_id, organisation_id):
|
||||
data = {
|
||||
'service_id': service_id
|
||||
}
|
||||
return self.post(
|
||||
url="/organisations/{}/service".format(organisation_id),
|
||||
data=data
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user