projects_update
Update an existing Pushpad project by providing a project ID and specifying changes to its name, website, icon, badge, or notification settings.
Instructions
To update a project, send a PATCH request to /projects/PROJECT_ID.
The project will be updated using the provided information.
The response body will contain a JSON object with the attributes of your project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The human-readable name set for the project. | |
| website | No | The URL of the project. This is also the default URL for notifications. | |
| icon_url | No | The default icon for notifications. Suggested size >= 192x192px, squared. | |
| badge_url | No | A small icon displayed in the status bar for notifications. Suggested size >= 96x96px, squared. | |
| project_id | Yes | The ID of a project. | |
| notifications_ttl | No | Drop the notifications that cannot be delivered within this amount of time. | |
| notifications_silent | No | Turn on this option to disable the sound and vibration of notifications. | |
| notifications_require_interaction | No | Turn on this option to require user interaction and prevent browser from automatically closing the notifications after a few seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | A unique identifier for each project. This is automatically generated upon project creation. | |
| name | No | The human-readable name set for the project. | |
| website | No | The URL of the project. This is also the default URL for notifications. | |
| icon_url | No | The default icon for notifications. Suggested size >= 192x192px, squared. | |
| badge_url | No | A small icon displayed in the status bar for notifications. Suggested size >= 96x96px, squared. | |
| sender_id | No | The ID of the sender associated to this project. | |
| created_at | No | A time value given in ISO 8601 format. It represents when the project was created. | |
| notifications_ttl | No | Drop the notifications that cannot be delivered within this amount of time. | |
| notifications_silent | No | Turn on this option to disable the sound and vibration of notifications. | |
| notifications_require_interaction | No | Turn on this option to require user interaction and prevent browser from automatically closing the notifications after a few seconds. |