Skip to main content
PUT
/
admin
/
notification-categories
/
{category_id}
Update notification category
curl --request PUT \
  --url https://services.pref.rio/rmi/v1/admin/notification-categories/{category_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "active": true,
  "default_opt_in": true,
  "description": "<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.

Path Parameters

category_id
string
required

Category ID

Body

application/json

Updated category data

active
boolean
default_opt_in
boolean
description
string
name
string
order
integer

Response

Category updated successfully

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