Skip to main content
POST
/
admin
/
notification-categories
Create notification category
curl --request POST \
  --url https://services.pref.rio/rmi/v1/admin/notification-categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "default_opt_in": true,
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "order": 123
}'
{
  "active": true,
  "created_at": "<string>",
  "default_opt_in": true,
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "order": 123,
  "updated_at": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Category data

description
string
required
id
string
required
name
string
required
active
boolean
default_opt_in
boolean
order
integer

Response

Category created successfully

active
boolean
created_at
string
default_opt_in
boolean
description
string
id
string
name
string
order
integer
updated_at
string