Retry a rejected operation
curl --request POST \
--url https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry \
--header 'Authorization: Bearer <token>'import requests
url = "https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry', 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/{operationId}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{operationId}/retry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"operationId": "018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e",
"originalOperationId": "018f8a2c-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"retryCount": 1,
"state": "CREATED"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Retry a rejected operation
Resends a REJECTED operation as a NEW operation chained to the original via originalOperationId, respecting the retry limit. A non-REJECTED state returns 409 INVALID_STATE_TRANSITION; a chain at the limit returns 409 RETRY_LIMIT_EXCEEDED.
POST
/
v1
/
operations
/
{operationId}
/
retry
Retry a rejected operation
curl --request POST \
--url https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry \
--header 'Authorization: Bearer <token>'import requests
url = "https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry', 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/{operationId}/retry",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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/{operationId}/retry")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://slc.sandbox.lerian.net/v1/operations/{operationId}/retry")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"operationId": "018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e",
"originalOperationId": "018f8a2c-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
"retryCount": 1,
"state": "CREATED"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}{
"code": "ERR-0001",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
JWT bearer token issued by the identity provider.
Path Parameters
Operation id (UUID).
Example:
"018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e"
Response
Created
New chained operation id (UUID).
Example:
"018f8a3e-4b2c-7c1a-9e5d-2f6a1b3c4d5e"
Chain root operation id (UUID) the retry descends from.
Example:
"018f8a2c-1a2b-7c3d-8e4f-5a6b7c8d9e0f"
Chain depth of the new operation.
Example:
1
Initial lifecycle state of the new operation.
Example:
"CREATED"
Was this page helpful?

