Actions199
- Collections Actions
- Forms Actions
- Actions Capabilities Actions
- Activities Actions
- Attachments Actions
- Budgets Actions
- Categories Actions
- Custom Actions Actions
- Custom Options Actions
- Documents Actions
- File Links Actions
- View File Link
- Delete File Link
- Open File Link
- Download File Link
- List Project Storages
- Get Project Storage
- Open Project Storage
- Create Storage
- Get Storage
- Update Storage
- Delete Storage
- Get Storage Files
- Prepare Storage File Upload
- Create Storage Folder
- Create Storage Oauth Credentials
- Open Storage
- Create Work Package File Link
- List Work Package File Links
- Grids Actions
- Groups Actions
- Help Texts Actions
- Memberships Actions
- Query Filter Instance Schema Actions
- News Actions
- Notifications Actions
- O Auth 2 Actions
- Posts Actions
- Principals Actions
- Priorities Actions
- Query Columns Actions
- Query Filters Actions
- Query Operators Actions
- Query Sort Bys Actions
- Relations Actions
- Previewing Actions
- Revisions Actions
- Roles Actions
- Time Entries Actions
- Time Entry Activities Actions
- Types Actions
- User Preferences Actions
- Wiki Pages Actions
- Work Schedule Actions
- Meetings Actions
- Values Property Actions
- Projects Actions
- Queries Actions
- Users Actions
- Statuses Actions
- Versions Actions
- Work Packages Actions
- Get Project Work Package Collection
- Create Project Work Package
- List Work Package File Links
- Form Create Work Package In Project
- Project Available Assignees
- List Work Packages
- Create Work Package
- Form Create Work Package
- List Work Package Schemas
- View Work Package Schema
- Delete Work Package
- View Work Package
- Update Work Package
- List Work Package Activities
- Comment Work Package
- Work Package Available Assignees
- Available Projects For Work Package
- List Available Relation Candidates
- Available Watchers
- Create Work Package File Link
- Form Edit Work Package
- Revisions
- Reminders
- List Watchers
- Add Watcher
- Remove Watcher
- Views Actions
Overview
The "Update News" operation in this node allows users to update an existing news item by specifying its unique identifier and providing new values for various fields such as the title, summary, description, and related links. This operation is useful in scenarios where news content needs to be edited or corrected after initial publication, ensuring that the latest information is always available.
Practical examples include:
- Updating a news headline to correct a typo.
- Adding more detailed information to the news body.
- Modifying associated project links related to the news item.
Properties
| Name | Meaning |
|---|---|
| Id | The unique numeric identifier of the news item to update. |
| Title | The headline of the news; a string representing the main title. |
| Summary | A short summary providing a brief overview of the news content. |
| Description | The main body of the news with all details, formatted as JSON supporting markdown/html. |
| Links | JSON object containing related links, e.g., to projects or other resources. |
Output
The output of this operation will be a JSON object representing the updated news item as returned by the API. It typically includes the updated fields such as id, title, summary, description, and any linked resources.
If the node supports binary data output (not indicated here), it would represent attachments or media related to the news item, but based on the provided code and properties, the output is purely JSON.
Dependencies
- Requires an API key credential for authenticating requests to the OpenProject API.
- The base URL for the API must be configured in the node credentials.
- The node uses the OpenProject REST API to perform the update operation.
Troubleshooting
Common issues:
- Providing an invalid or non-existent news
Idwill result in an error indicating the resource was not found. - Malformed JSON in the
DescriptionorLinksfields can cause parsing errors. - Missing required fields like
Idwill prevent the request from being sent.
- Providing an invalid or non-existent news
Error messages:
- "Resource not found" — Check that the
Idcorresponds to an existing news item. - "Invalid JSON format" — Ensure that JSON inputs for
DescriptionandLinksare correctly formatted. - "Authentication failed" — Verify that the API key credential is valid and has sufficient permissions.
- "Resource not found" — Check that the
Links and References
- OpenProject API Documentation
- Markdown Guide (for formatting the Description field)