mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Pass service domain to api when adding a new service
We need to pass the domain to api when adding a service so that api can link the domain of the service with a letter brand.
This commit is contained in:
@@ -13,6 +13,7 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
restricted,
|
||||
user_id,
|
||||
email_from,
|
||||
service_domain,
|
||||
):
|
||||
"""
|
||||
Create a service and return the json.
|
||||
@@ -24,7 +25,8 @@ class ServiceAPIClient(NotifyAdminAPIClient):
|
||||
"message_limit": message_limit,
|
||||
"user_id": user_id,
|
||||
"restricted": restricted,
|
||||
"email_from": email_from
|
||||
"email_from": email_from,
|
||||
"service_domain": service_domain
|
||||
}
|
||||
data = _attach_current_user(data)
|
||||
return self.post("/service", data)['data']['id']
|
||||
|
||||
Reference in New Issue
Block a user