PlantScanner - BEAS Service Layer icon

PlantScanner - BEAS Service Layer

Interact with BEAS Service Layer API

Actions32

Resource → Patch

AI-generated

Overview

This node interacts with the BEAS Service Layer API to update a record of the 'Resource' type using a PATCH HTTP request. It is useful for scenarios where you need to modify specific fields of an existing resource record in the BEAS system, such as updating resource details or attributes without replacing the entire record.

Use Case Examples

  1. Updating the availability status of a resource.
  2. Modifying the description or other metadata of a resource.

Properties

Name Meaning
Doc Entry The document entry number identifying the specific resource record to update.
Line Number The line number associated with the resource record to update.
Patch Body The JSON data containing the fields and values to update in the resource record.

Output

JSON

  • json - The JSON response from the BEAS Service Layer API after the PATCH operation, containing the updated resource data or status.

Dependencies

  • Requires BEAS Service Layer API credentials including the service URL and service password for authentication.

Troubleshooting

  • Ensure the 'Doc Entry' and 'Line Number' parameters are correctly set to identify the resource record to update.
  • Verify that the 'Patch Body' contains valid JSON; invalid JSON will cause an error.
  • A failure to obtain a session cookie from the BEAS Service Layer API will prevent any operation from executing.
  • If the API returns an error, the node will throw an error unless 'Continue On Fail' is enabled, in which case the error message will be included in the output.

Discussion