Changed response to 201 for send_letter_jobs

This commit is contained in:
Ken Tsang
2017-04-11 16:42:08 +01:00
parent ad6bdbcc97
commit 8792461998

View File

@@ -17,7 +17,7 @@ def send_letter_jobs():
job_ids = validate(request.get_json(), letter_job_ids)
notify_celery.send_task(name="send-files-to-dvla", args=(job_ids['job_ids'],), queue="process-ftp")
return jsonify(data={"response": "Task created to send files to DVLA"}), 200
return jsonify(data={"response": "Task created to send files to DVLA"}), 201
@letter_job.route('/letter-jobs', methods=['GET'])