News letters (deprecated) ========================= **This endpoint is no longer worked on since June 2023. This endpoint may not be available on every Recras instance.** Read ---- .. http:get:: /api2/nieuwsbrieven List of newsletters (`nieuwsbrieven`) in Recras. **Example request**: .. sourcecode:: http GET /api2/nieuwsbrieven HTTP/1.1 Host: demo.recras.nl Accept: application/json **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json [ { "id": 1, "naam": "Nieuwsbrief Nederland", // (name: "Newsletter Netherlands") "contactformulier": true, // (contact_form) "aanmeldingen": 42 // (signups) }, { "id": 2, "naam": "Nieuwsbrief Belgiƫ", // (name: "Newsletter Belgium") "contactformulier": false, // (contact_form) "aanmeldingen": 17 // (signups) } ] :statuscode 200: OK .. http:get:: /api2/nieuwsbrieven/(int:id) A specific newsletter. **Example request**: .. sourcecode:: http GET /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl Accept: application/json **Example response**: .. sourcecode:: http HTTP/1.1 200 OK Content-Type: application/json { "id": 1, "naam": "Nieuwsbrief Nederland", // (name: "Newsletter Netherlands") "contactformulier": true, // (contact_form) "aanmeldingen": 42 // (signups) } Create ------ .. http:post:: /api2/nieuwsbrieven/(int:id) Create a new newsletter. **Example request**: .. sourcecode:: http POST /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl { "naam": "Nieuwsbrief Duitsland", // (name: "Newsletter Germany") "contactformulier": true // (contact_form) }