HumHub icon

HumHub

Consume HumHub API (v.0.1.8)

Actions126

Overview

This node operation changes the index (order) of a specific wiki page within HumHub. It is useful for reordering wiki pages to reflect a desired sequence or priority. For example, if you want to move a wiki page to a different position in a list or hierarchy, this operation allows you to specify the target wiki page and the new index position.

Use Case Examples

  1. Reorder a wiki page by specifying its ID, the target wiki page ID, and the new index position to update the order within the wiki.
  2. Adjust the position of a wiki page in a container to organize content more effectively.

Properties

Name Meaning
Authentication Method of authentication to use for the API request (Basic Auth or JWT Token).
ID The ID of the wiki page to change the index for.
Target ID The target wiki page ID to which the index change is relative. Note: HumHub may return a 400 not found error for this.
Index The new index (order) position for the wiki page. Default is 0.

Output

JSON

  • id - The ID of the wiki page whose index was changed.
  • target_id - The target wiki page ID used for the index change.
  • index - The new index position assigned to the wiki page.

Dependencies

  • Requires HumHub API access with either Basic Auth or JWT Token credentials.

Troubleshooting

  • If a 400 not found error occurs when specifying the target_id, verify that the target wiki page ID exists and is accessible.
  • Ensure the ID and target_id parameters are valid numbers and correspond to existing wiki pages.
  • Authentication errors may occur if the provided credentials are invalid or expired; verify authentication settings.

Links

Discussion