Advance an operation via audited admin override
curl --request POST \
--url https://slc.sandbox.lerian.net/v1/operations/{id}/advance \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"evidence": "<string>",
"reason": "<string>",
"toState": "<string>"
}
'import requests
url = "https://slc.sandbox.lerian.net/v1/operations/{id}/advance"
payload = {
"evidence": "<string>",
"reason": "<string>",
"toState": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({evidence: '<string>', reason: '<string>', toState: '<string>'})
};
fetch('https://slc.sandbox.lerian.net/v1/operations/{id}/advance', 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://slc.sandbox.lerian.net/v1/operations/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evidence' => '<string>',
'reason' => '<string>',
'toState' => '<string>'
]),
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://slc.sandbox.lerian.net/v1/operations/{id}/advance"
payload := strings.NewReader("{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://slc.sandbox.lerian.net/v1/operations/{id}/advance")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slc.sandbox.lerian.net/v1/operations/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"advancedBy": "<string>",
"fromState": "<string>",
"operationId": "<string>",
"toState": "<string>",
"trigger": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}Advance an operation via audited admin override
Drives an existing state-machine edge via MANUAL_OVERRIDE, emitting operation.manually_advanced with the reason and evidence. Admin-only (operations:admin). A missing reason or evidence returns 400 MISSING_OVERRIDE_JUSTIFICATION; a nonexistent edge returns 409 INVALID_STATE_TRANSITION.
POST
/
v1
/
operations
/
{id}
/
advance
Advance an operation via audited admin override
curl --request POST \
--url https://slc.sandbox.lerian.net/v1/operations/{id}/advance \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"evidence": "<string>",
"reason": "<string>",
"toState": "<string>"
}
'import requests
url = "https://slc.sandbox.lerian.net/v1/operations/{id}/advance"
payload = {
"evidence": "<string>",
"reason": "<string>",
"toState": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({evidence: '<string>', reason: '<string>', toState: '<string>'})
};
fetch('https://slc.sandbox.lerian.net/v1/operations/{id}/advance', 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://slc.sandbox.lerian.net/v1/operations/{id}/advance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'evidence' => '<string>',
'reason' => '<string>',
'toState' => '<string>'
]),
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://slc.sandbox.lerian.net/v1/operations/{id}/advance"
payload := strings.NewReader("{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://slc.sandbox.lerian.net/v1/operations/{id}/advance")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://slc.sandbox.lerian.net/v1/operations/{id}/advance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"evidence\": \"<string>\",\n \"reason\": \"<string>\",\n \"toState\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"advancedBy": "<string>",
"fromState": "<string>",
"operationId": "<string>",
"toState": "<string>",
"trigger": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}{
"code": "<string>",
"details": {},
"message": "<string>",
"title": "<string>"
}Authorizations
Bearer token authentication (format: "Bearer {token}")
Path Parameters
Operation id (UUID)
Body
application/json
Override target state and justification
Was this page helpful?
⌘I

