Skip to main content
PUT
/
api
/
v1
/
notification-configs
/
{id}
Update notification config
curl --request PUT \
  --url https://dev-billing-api.iqraa.ai/api/v1/api/v1/notification-configs/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-admin-api-key: <x-admin-api-key>' \
  --data '
{
  "unit": "seconds",
  "timePeriod": [
    1,
    2,
    3
  ],
  "templateName": "notificationservice-template-testing",
  "senderEmail": "Sinan",
  "senderName": "Sinan",
  "supportEmail": "[email protected]",
  "productName": "Razi"
}
'
{
  "event": "trial_period_expiry",
  "timePeriod": [
    1,
    2,
    3
  ],
  "unit": "seconds",
  "templateName": "notificationservice-template-testing",
  "senderEmail": "[email protected]",
  "senderName": "Sinan",
  "supportEmail": "[email protected]",
  "productName": "Razi"
}

Headers

x-admin-api-key
string
required

The API key to access the admin API

Path Parameters

id
string
required

The ID of the notification config

Body

application/json
unit
string
required

Unit of measurement for the time period

Example:

"seconds"

timePeriod
string[]
required

Time period for the event

Example:
[1, 2, 3]
templateName
string
required

Name of the template

Example:

"notificationservice-template-testing"

senderEmail
string
required

Sender Name

Example:

"Sinan"

senderName
string
required

Sender Name

Example:

"Sinan"

supportEmail
string
required

Support Email

productName
string
required

Product Name

Example:

"Razi"

Response

Notification config updated successfully

event
string
required

Trial Period Expiry

Example:

"trial_period_expiry"

timePeriod
string[]
required

Time period for the event

Example:
[1, 2, 3]
unit
string
required

Unit of measurement for the time period

Example:

"seconds"

templateName
string
required

Name of the template

Example:

"notificationservice-template-testing"

senderEmail
string
required

Sender email

senderName
string
required

Sender Name

Example:

"Sinan"

supportEmail
string
required

Support Email

productName
string
required

Product Name

Example:

"Razi"