News letters (deprecated)¶
This endpoint is no longer worked on since June 2023. This endpoint may not be available on every Recras instance.
Read¶
- GET /api2/nieuwsbrieven¶
List of newsletters (nieuwsbrieven) in Recras.
Example request:
GET /api2/nieuwsbrieven HTTP/1.1 Host: demo.recras.nl Accept: application/json
Example response:
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) } ]
- Status Codes:
200 OK – OK
- GET /api2/nieuwsbrieven/(int: id)¶
A specific newsletter.
Example request:
GET /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl Accept: application/json
Example response:
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¶
- POST /api2/nieuwsbrieven/(int: id)¶
Create a new newsletter.
Example request:
POST /api2/nieuwsbrieven/1 HTTP/1.1 Host: demo.recras.nl { "naam": "Nieuwsbrief Duitsland", // (name: "Newsletter Germany") "contactformulier": true // (contact_form) }