New endpoints to add and update multiple SMS sender for a service.

This commit is contained in:
Rebecca Law
2017-10-19 09:58:23 +01:00
parent 4ac2dc3606
commit 6dc41c3b47
5 changed files with 243 additions and 38 deletions

View File

@@ -1,3 +1,5 @@
from app.schema_validation.definitions import uuid
add_service_email_reply_to_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST service email reply to address",
@@ -22,3 +24,17 @@ add_service_letter_contact_block_request = {
},
"required": ["contact_block", "is_default"]
}
add_service_sms_sender_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST add service SMS sender",
"type": "object",
"title": "Add new SMS sender for service",
"properties": {
"sms_sender": {"type": "string"},
"is_default": {"type": "boolean"},
"inbound_number_id": uuid
},
"required": ["sms_sender", "is_default"]
}