Organization
Update active lockout
Update the reason or end time of an active lockout without removing and recreating it.
Use cases:
- Extend a lockout that needs more review time
- Update the reason with additional context
- Shorten the lockout period after partial review
Changes are pushed to the running trade engine immediately (with a periodic engine resync as the fallback within ~15 seconds).
PATCH
/
v1
/
organization
/
lockouts
/
{accountId}
Update active lockout
curl --request PATCH \
--url https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Extended: pending compliance review",
"endsAt": "2026-05-01T00:00:00Z"
}
'import requests
url = "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}"
payload = {
"reason": "Extended: pending compliance review",
"endsAt": "2026-05-01T00:00:00Z"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Extended: pending compliance review', endsAt: '2026-05-01T00:00:00Z'})
};
fetch('https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Extended: pending compliance review',
'endsAt' => '2026-05-01T00:00:00Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}"
payload := strings.NewReader("{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Lockout updated successfully",
"data": {
"id": "b1c2d3e4-f5a6-7890-abcd-ef1234567890",
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"mode": "admin",
"reason": "Extended: pending compliance review",
"lockedBy": "admin",
"startsAt": "2026-03-12T15:00:00.000Z",
"endsAt": "2026-05-01T00:00:00.000Z",
"createdAt": "2026-03-12T15:00:00.000Z"
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "No fields to update. Provide reason or endsAt.",
"code": "NO_FIELDS_TO_UPDATE"
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"statusCode": 404,
"error": "Not Found",
"message": "No active lockout found for this account",
"code": "NO_ACTIVE_LOCKOUT"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}Authorizations
BearerX-API-Key
JWT Bearer token for user session auth. Format: "Bearer {token}". Used by User and Organization endpoints.
Path Parameters
Account ID with active lockout
Body
application/json
Response
Lockout updated
Example:
true
Example:
"Lockout updated successfully"
Show child attributes
Show child attributes
Example:
{
"id": "b1c2d3e4-f5a6-7890-abcd-ef1234567890",
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"mode": "admin",
"reason": "Extended: pending compliance review",
"lockedBy": "admin",
"startsAt": "2026-03-12T15:00:00.000Z",
"endsAt": "2026-05-01T00:00:00.000Z",
"createdAt": "2026-03-12T15:00:00.000Z"
}
Related topics
Create or update account lockoutList all active lockoutsUpdate a webhookRemove lockout from accountRemove account lockout⌘I
Update active lockout
curl --request PATCH \
--url https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Extended: pending compliance review",
"endsAt": "2026-05-01T00:00:00Z"
}
'import requests
url = "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}"
payload = {
"reason": "Extended: pending compliance review",
"endsAt": "2026-05-01T00:00:00Z"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({reason: 'Extended: pending compliance review', endsAt: '2026-05-01T00:00:00Z'})
};
fetch('https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'reason' => 'Extended: pending compliance review',
'endsAt' => '2026-05-01T00:00:00Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}"
payload := strings.NewReader("{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperprop.com/platform/v1/organization/lockouts/{accountId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"Extended: pending compliance review\",\n \"endsAt\": \"2026-05-01T00:00:00Z\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Lockout updated successfully",
"data": {
"id": "b1c2d3e4-f5a6-7890-abcd-ef1234567890",
"accountId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"mode": "admin",
"reason": "Extended: pending compliance review",
"lockedBy": "admin",
"startsAt": "2026-03-12T15:00:00.000Z",
"endsAt": "2026-05-01T00:00:00.000Z",
"createdAt": "2026-03-12T15:00:00.000Z"
}
}{
"statusCode": 400,
"error": "Bad Request",
"message": "No fields to update. Provide reason or endsAt.",
"code": "NO_FIELDS_TO_UPDATE"
}{
"success": false,
"statusCode": 401,
"error": "Unauthorized",
"message": "Authentication required",
"code": "UNAUTHORIZED"
}{
"success": false,
"statusCode": 403,
"error": "Forbidden",
"message": "Access denied",
"code": "FORBIDDEN"
}{
"statusCode": 404,
"error": "Not Found",
"message": "No active lockout found for this account",
"code": "NO_ACTIVE_LOCKOUT"
}{
"success": false,
"statusCode": 500,
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"code": "INTERNAL_ERROR"
}