Skip to main content
POST
Move monitor folder

Restrictions

Usage

  • The caller must be allowed to modify the source folder and, unless dest_parent_id is 0, the destination folder.
  • dest_parent_id is required; send 0 explicitly to move to the root. It must differ from id, and moving under the folder itself or a descendant is rejected with InvalidParameter. Moving a folder to its current parent succeeds without changes.
  • Descendant paths are updated in the same transaction, and the folder and all its descendants record the caller as last updater.
  • Every call is recorded in the account audit log. Don’t put secrets in request fields.

Authorizations

app_key
string
query
required

APP Key created in the Flashduty console under My → APP Key. Send it as the app_key query parameter or in the Fd-App-Key request header. Its effective access is the intersection of the key's permission scope and the creator's current role permissions. Keep it secret.

Body

application/json

Request to move a monitor folder and its descendants.

id
integer<uint64>
required

ID of the folder to move, from /monit/folder/list.

Required range: x >= 1
dest_parent_id
integer<uint64>
required

ID of the new parent folder; send 0 to move to the root. The field cannot be omitted. Must differ from id and must not be a descendant of the folder.

Required range: x >= 0

Response

Success

Success response envelope. On every 2xx response, request_id identifies the call (also mirrored in the Flashcat-Request-Id header) and data holds the endpoint-specific payload. Failure responses use a different shape — see ErrorResponse.

request_id
string
required

Unique ID for this request. Mirrored in the Flashcat-Request-Id response header. Include it when reporting issues.

Example:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

Empty object.