Skip to content

Inline endpoint content is cleared when saving “Edit Endpoint Properties” from within the inline editor #5380

@RubenT91

Description

@RubenT91

Description of Issue

When creating an API endpoint with inline code (no -Path) and then opening Edit Endpoint Properties from within the inline editor in the same session, saving properties clears the endpoint code. Opening Edit Properties from outside the editor does not clear content. Using a relative -Path to an external script file (e.g., api/user-mgmt/v1/users.ps1) also avoids the issue; file content persists.

Reproduction steps

Admin UI → APIs → New endpoint (inline code only).

Enter a few lines of code, click Save.

Without leaving the editor, click Edit Endpoint Properties (inside the editor pane), change a toggle (e.g., Disable), click Save.

Reopen the endpoint: code is cleared.

Sample code

minimal inline sample

"hello from endpoint"

Observed vs Expected

Observed: inline content is wiped after saving properties from inside the editor session.

Expected: endpoint inline code should persist regardless of where properties are saved.

Version

5.6.9

Severity

High

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQLite

Licensed

Yes

Features

No Git Sync, no VS Code Extension.

Additional Environment data

Service runs under a domain/local admin account with full repo permissions.

AV present; no observed interference.

Screenshots/Animations

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-APIThis issue is related to APIs.Area-AdminConsoleThis issue is related to the admin console.P2 - highBug has serious impact on usage, impacts a large number of users.Size - SThis issue is a small amount of work.support ticketThis issue was the result of a support ticket. Support tickets receive priority.v5Version 5 issue.

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions