OpenProject icon

OpenProject

Interact with OpenProject via API

Actions199

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 Id will result in an error indicating the resource was not found.
    • Malformed JSON in the Description or Links fields can cause parsing errors.
    • Missing required fields like Id will prevent the request from being sent.
  • Error messages:

    • "Resource not found" — Check that the Id corresponds to an existing news item.
    • "Invalid JSON format" — Ensure that JSON inputs for Description and Links are correctly formatted.
    • "Authentication failed" — Verify that the API key credential is valid and has sufficient permissions.

Links and References

Discussion