Files
notifications-api/app/service/send_pdf_letter_schema.py
Rebecca Law bb2b514e12 Save recipient address in the "to" field of a notification
When a precompiled letter is sent via the admin app, we now pass in the address which can be set in the Notifications.to field.
Once a precompiled letters sent by the API has passed validation we can set the address in Notifications.to field.

The celery tasks to validate precompiled letters sent by the API will be done in another PR.
2020-01-07 14:35:48 +00:00

15 lines
548 B
Python

send_pdf_letter_request = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST send uploaded pdf letter",
"type": "object",
"title": "Send an uploaded pdf letter",
"properties": {
"postage": {"type": "string", "format": "postage"},
"filename": {"type": "string"},
"created_by": {"type": "string"},
"file_id": {"type": "string"},
"recipient_address": {"type": "string"}
},
"required": ["postage", "filename", "created_by", "file_id", "recipient_address"]
}