Skip to content

Renews one active command lease and publishes bounded progress.

POST
/api/workspace/file-protection/agent/v1/commands/{commandId}/lease:renew
curl --request POST \
--url https://example.com/api/workspace/file-protection/agent/v1/commands/example/lease:renew \
--header 'Content-Type: application/json' \
--header 'X-Moltaro-File-Protection-Agent: <X-Moltaro-File-Protection-Agent>' \
--data '{ "LeaseToken": "example", "State": 0, "ProcessedBytes": 1, "TotalBytes": 1, "SafeStatusCode": "example", "UsefulWorkSequence": 1 }'

Requires TLS at the API connection. A workspace bearer token does not authenticate an Agent.

Send the enrolled device credential in the X-Moltaro-File-Protection-Agent header. Revoked or invalid credentials are rejected.

commandId
required
string

Renews an active command lease and optionally reports progress.

object
LeaseToken
string
nullable
State

Durable state of one manual protection run.

integer format: int32
Allowed values: 0 1 2 3 4 5 6
ProcessedBytes
integer format: int64
TotalBytes
integer format: int64
nullable
SafeStatusCode
string
nullable
UsefulWorkSequence

Monotonic sequence of useful read/hash/transfer events in this attempt; repeated heartbeats do not advance it.

integer format: int64

OK

Media typeapplication/json
object
Data

Confirms the renewed lease expiry.

object
LeaseExpiresAtUtc
string format: date-time
Errors
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Warnings
Array<object>
nullable
object
Code
required
string
nullable
Message
required
string
nullable
Target
string
nullable
Field
string
nullable
Metadata
object
key
additional properties
string
nullable
Type
integer format: int32
Allowed values: 0 1 2
Severity
integer format: int32
Allowed values: 0 1 2
Success
boolean
Example
{
"Errors": [
{
"Type": 0,
"Severity": 0
}
],
"Warnings": [
{
"Type": 0,
"Severity": 0
}
]
}