cURL
curl --request POST \ --url https://services.pref.rio/rmi/v1/admin/notification-categories \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "description": "<string>", "id": "<string>", "name": "<string>", "active": true, "default_opt_in": true, "order": 123 } '
{ "active": true, "created_at": "<string>", "default_opt_in": true, "description": "<string>", "id": "<string>", "name": "<string>", "order": 123, "updated_at": "<string>" }
Create a new notification category (admin only)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Category data
Category created successfully