Portabase DashboardAPIProjects
Replace the alert policies of a project
The list replaces all of the project's alert policies in one step. Every channel must be one the organization can use (its own or an assigned global notification channel).
PUT
The list replaces all of the project's alert policies in one step. Every channel must be one the organization can use (its own or an assigned global notification channel).
apiKeyAuthheader
x-api-key<token>API key generated from the Portabase dashboard. Pass as the x-api-key header.
id*stringFormat
uuidapplication/json- body
policies*array<>Alert policies
application/json- response
data*array<>Example Request
curl -X PUT 'https://portabase.example.com/api/v1/projects/123e4567-e89b-12d3-a456-426614174000/alert-policy' \ -H 'Content-Type: application/json' \ -d '{ "policies": [ { "notificationChannelId": "5ac44e99-3f3d-435c-95a5-4b99ae76c8f9", "eventKinds": [ "error_backup" ] } ]}'Example Response
{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "enabled": true, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "channel": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "provider": "string", "enabled": true }, "notificationChannelId": "5ac44e99-3f3d-435c-95a5-4b99ae76c8f9", "eventKinds": [ "string" ] } ]}