### Retrieve Users from Reqres.in API Source: https://github.com/sebaspll/n8n-workflows/blob/main/automation/602-manage-users-automatically-in-reqres-in/README.md This snippet describes how to perform a GET request to fetch a list of users from the Reqres.in API. It supports pagination through an optional 'page' parameter. ```APIDOC Endpoint: GET /api/users Description: Retrieves a list of users. Parameters: - page (optional, integer): Page number for pagination. Responses: - 200 OK: Returns a JSON object with 'data' (array of user objects), 'page', 'per_page', 'total', and 'total_pages'. ``` -------------------------------- ### Create New User in Reqres.in API Source: https://github.com/sebaspll/n8n-workflows/blob/main/automation/602-manage-users-automatically-in-reqres-in/README.md This snippet details how to send a POST request to create a new user in the Reqres.in API. It requires 'name' and 'job' in the request body. ```APIDOC Endpoint: POST /api/users Description: Creates a new user. Request Body (application/json): - name (required, string): The name of the user. - job (required, string): The job title of the user. Responses: - 201 Created: Returns the created user object including 'id' and 'createdAt' timestamp. ``` -------------------------------- ### API Documentation: XML to JSON Conversion Workflow Source: https://github.com/sebaspll/n8n-workflows/blob/main/data-transformation/2222-convert-an-xml-file-to-json-via-webhook-call/README.md Details the webhook-based API provided by the n8n workflow for converting XML data to JSON. It supports both file uploads and plain text, handles errors gracefully, and provides consistent JSON responses with Slack notifications on errors. ```APIDOC Webhook API: XML to JSON Converter Endpoint: POST /your-webhook-path (configurable in n8n) Request Body: - Content-Type: application/xml (for plain XML text) - Content-Type: multipart/form-data (for XML file uploads) - Body: XML data as plain text or an uploaded XML file. Response (Success): Content-Type: application/json Body: { "status": "success", "data": { // Converted JSON data } } Response (Error): Content-Type: application/json Body: { "status": "error", "message": "string", // Description of the error "details": { // Optional: additional error details, e.g., original error message } } Error Handling: - Graceful error handling for invalid XML or processing issues. - Slack notifications sent for errors, including a link to the n8n workflow execution. ``` -------------------------------- ### Update Existing User in Reqres.in API Source: https://github.com/sebaspll/n8n-workflows/blob/main/automation/602-manage-users-automatically-in-reqres-in/README.md This snippet outlines how to send a PATCH request to update an existing user's job title in the Reqres.in API. The user ID is specified in the path, and the new job is in the request body. ```APIDOC Endpoint: PATCH /api/users/{id} Description: Updates an existing user's information. Path Parameters: - id (required, integer): The ID of the user to update. Request Body (application/json): - job (required, string): The new job title for the user. Responses: - 200 OK: Returns the updated user object. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.