Salt la conținut
Documentație

Caută în documentație

    English

    Evenimente și abonamente

    Citește și gestionează resursele din categoria evenimente și abonamente prin API‑ul BI.

    Pe această pagină

    Listează: evenimente și abonamente

    GET /reports/v1/events

    Parametri

    NumeÎnTipObligatoriuDescriere
    limit query integer Nuopțional Înregistrări pe pagină. Implicit 100 Interval 1 – 500
    cursor query string Nuopțional nextCursor opac din pagina precedentă; păstrează filtrele.

    Răspunsuri

    StareDescriereCorp
    200 Rezultatul cerut. EventPage
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl "$RDC_BASE_URL/reports/v1/events?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/events?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/events?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/events?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/events?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 200

    JSON

    {
      "items": [
        {
          "id": "41800000-0000-4000-8000-000000000003",
          "type": "com.rdcopilot.reports.run.completed.v1",
          "state": "parked",
          "attempts": 6,
          "envelope": {
            "specversion": "1.0",
            "id": "41800000-0000-4000-8000-000000000003",
            "type": "com.rdcopilot.reports.run.completed.v1",
            "source": "/reports/v1",
            "time": "2026-11-22T06:00:00Z",
            "customerOrgId": "brumar",
            "legalCompanyId": "brumar",
            "aggregateType": "run",
            "aggregateId": "41800000-0000-4000-8000-000000000002",
            "aggregateRevision": 1,
            "correlationId": "41800000-0000-4000-8000-000000000001",
            "causationId": "41800000-0000-4000-8000-000000000001",
            "actor": {
              "type": "client",
              "id": "reporting-client"
            },
            "data": {
              "runId": "41800000-0000-4000-8000-000000000002",
              "questionId": "revenue-by-product",
              "sourceRevision": 1
            }
          }
        }
      ],
      "nextCursor": null
    }

    Citește înregistrarea

    GET /reports/v1/events/{id}

    Parametri

    NumeÎnTipObligatoriuDescriere
    id path string Daobligatoriu Identificatorul resursei.

    Răspunsuri

    StareDescriereCorp
    200 Rezultatul cerut. Event
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl "$RDC_BASE_URL/reports/v1/events/41800000-0000-4000-8000-000000000003" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/events/41800000-0000-4000-8000-000000000003`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/events/41800000-0000-4000-8000-000000000003',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/events/41800000-0000-4000-8000-000000000003');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/events/41800000-0000-4000-8000-000000000003");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 200

    JSON

    {
      "id": "41800000-0000-4000-8000-000000000003",
      "type": "com.rdcopilot.reports.run.completed.v1",
      "state": "parked",
      "attempts": 6,
      "envelope": {
        "specversion": "1.0",
        "id": "41800000-0000-4000-8000-000000000003",
        "type": "com.rdcopilot.reports.run.completed.v1",
        "source": "/reports/v1",
        "time": "2026-11-22T06:00:00Z",
        "customerOrgId": "brumar",
        "legalCompanyId": "brumar",
        "aggregateType": "run",
        "aggregateId": "41800000-0000-4000-8000-000000000002",
        "aggregateRevision": 1,
        "correlationId": "41800000-0000-4000-8000-000000000001",
        "causationId": "41800000-0000-4000-8000-000000000001",
        "actor": {
          "type": "client",
          "id": "reporting-client"
        },
        "data": {
          "runId": "41800000-0000-4000-8000-000000000002",
          "questionId": "revenue-by-product",
          "sourceRevision": 1
        }
      }
    }

    Creează abonamentul

    POST /reports/v1/subscriptions

    Aplică modificarea o singură dată. Verifică operația înainte să citești rezultatul. Refolosirea operationId cu alt corp returnează operation_reused.

    Corpul cererii

    CâmpTipObligatoriuDescriere
    operationId string (uuid) Daobligatoriu Un UUID ales de apelant; refolosește‑l numai cu o cerere identică.
    expectedRevision integer Daobligatoriu Revizia citită înaintea modificării; zero pentru o resursă nouă.
    id string Daobligatoriu Identificator stabil al resursei.
    endpoint string Daobligatoriu Adresa HTTPS a receptorului.
    eventTypes string[] Daobligatoriu Tipurile de evenimente urmărite.

    Răspunsuri

    StareDescriereCorp
    202 Acceptată pentru prelucrare; citește rezultatul operației. OperationResult
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl -X POST "$RDC_BASE_URL/reports/v1/subscriptions" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "41800000-0000-4000-8000-000000000136",
      "expectedRevision": 0,
      "id": "management-events",
      "endpoint": "https://receiver.example/events",
      "eventTypes": [
        "com.rdcopilot.reports.run.completed.v1"
      ]
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/subscriptions`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "41800000-0000-4000-8000-000000000136",
        "expectedRevision": 0,
        "id": "management-events",
        "endpoint": "https://receiver.example/events",
        "eventTypes": [
          "com.rdcopilot.reports.run.completed.v1"
        ]
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/subscriptions',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '41800000-0000-4000-8000-000000000136',
            'expectedRevision': 0,
            'id': 'management-events',
            'endpoint': 'https://receiver.example/events',
            'eventTypes': [
                'com.rdcopilot.reports.run.completed.v1',
            ],
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "41800000-0000-4000-8000-000000000136",
      "expectedRevision": 0,
      "id": "management-events",
      "endpoint": "https://receiver.example/events",
      "eventTypes": [
        "com.rdcopilot.reports.run.completed.v1"
      ]
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/subscriptions');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/subscriptions");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "41800000-0000-4000-8000-000000000136",
      "expectedRevision": 0,
      "id": "management-events",
      "endpoint": "https://receiver.example/events",
      "eventTypes": [
        "com.rdcopilot.reports.run.completed.v1"
      ]
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 202

    JSON

    {
      "operationId": "41800000-0000-4000-8000-000000000136",
      "status": "completed",
      "aggregateRevision": 1,
      "secret": "whsec_dGVzdC1zaWduaW5nLXNlY3JldC1yZXBvcnRz"
    }

    RotateSubscriptionSecret

    POST /reports/v1/subscriptions/{subscriptionId}/secret

    Aplică modificarea o singură dată. Verifică operația înainte să citești rezultatul. Refolosirea operationId cu alt corp returnează operation_reused.

    Parametri

    NumeÎnTipObligatoriuDescriere
    subscriptionId path string Daobligatoriu Identificatorul resursei.

    Corpul cererii

    CâmpTipObligatoriuDescriere
    operationId string (uuid) Daobligatoriu Un UUID ales de apelant; refolosește‑l numai cu o cerere identică.
    expectedRevision integer Daobligatoriu Revizia citită înaintea modificării; zero pentru o resursă nouă.

    Răspunsuri

    StareDescriereCorp
    202 Acceptată pentru prelucrare; citește rezultatul operației. OperationResult
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl -X POST "$RDC_BASE_URL/reports/v1/subscriptions/management-events/secret" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "41800000-0000-4000-8000-000000000137",
      "expectedRevision": 1
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/subscriptions/management-events/secret`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "41800000-0000-4000-8000-000000000137",
        "expectedRevision": 1
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/subscriptions/management-events/secret',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '41800000-0000-4000-8000-000000000137',
            'expectedRevision': 1,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "41800000-0000-4000-8000-000000000137",
      "expectedRevision": 1
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/subscriptions/management-events/secret');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/subscriptions/management-events/secret");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "41800000-0000-4000-8000-000000000137",
      "expectedRevision": 1
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 202

    JSON

    {
      "operationId": "41800000-0000-4000-8000-000000000137",
      "status": "completed",
      "aggregateRevision": 1,
      "secret": "whsec_dGVzdC1zaWduaW5nLXNlY3JldC1yZXBvcnRz"
    }

    Citește înregistrarea

    GET /reports/v1/subscriptions/{id}

    Parametri

    NumeÎnTipObligatoriuDescriere
    id path string Daobligatoriu Identificatorul resursei.

    Răspunsuri

    StareDescriereCorp
    200 Rezultatul cerut. Subscription
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl "$RDC_BASE_URL/reports/v1/subscriptions/management-events" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/subscriptions/management-events`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/subscriptions/management-events',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/subscriptions/management-events');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/subscriptions/management-events");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 200

    JSON

    {
      "id": "management-events",
      "revision": 1,
      "endpoint": "https://receiver.example/events",
      "eventTypes": [
        "com.rdcopilot.reports.run.completed.v1"
      ],
      "enabled": true
    }

    Reia livrarea

    POST /reports/v1/events/{id}/replay

    Reia o livrare parcată, cu identificatorul original al evenimentului. expectedRevision este zero deoarece livrările nu au revizie. Receptorul elimină duplicatele după identificatorul evenimentului.

    Parametri

    NumeÎnTipObligatoriuDescriere
    id path string Daobligatoriu Identificatorul resursei.

    Corpul cererii

    CâmpTipObligatoriuDescriere
    operationId string (uuid) Daobligatoriu Un UUID ales de apelant; refolosește‑l numai cu o cerere identică.
    expectedRevision integer Daobligatoriu Revizia citită înaintea modificării; zero pentru o resursă nouă.

    Răspunsuri

    StareDescriereCorp
    202 Acceptată pentru prelucrare; citește rezultatul operației. OperationResult
    400 Cerere refuzată. Coduri: invalid_request. Error
    401 Cerere refuzată. Coduri: unauthorized. Error
    403 Cerere refuzată. Coduri: forbidden. Error
    404 Cerere refuzată. Coduri: record_not_found, credential_not_found. Error
    409 Cerere refuzată. Coduri: revision_conflict, operation_reused. Error
    422 Cerere refuzată. Coduri: query_invalid, result_invalid, source_unavailable, refresh_running, refresh_not_running, stale_refresh, run_not_completed, delivery_not_parked, row_not_found, company_forbidden, recipient_forbidden, embed_origin_forbidden, operation_invalid, filter_invalid. Error
    429 Cerere refuzată. Coduri: rate_limited. Error
    503 Cerere refuzată. Coduri: unavailable. Error

    Cerere

    curl

    curl -X POST "$RDC_BASE_URL/reports/v1/events/41800000-0000-4000-8000-000000000003/replay" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "41800000-0000-4000-8000-000000000138",
      "expectedRevision": 0
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/reports/v1/events/41800000-0000-4000-8000-000000000003/replay`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "41800000-0000-4000-8000-000000000138",
        "expectedRevision": 0
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/reports/v1/events/41800000-0000-4000-8000-000000000003/replay',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '41800000-0000-4000-8000-000000000138',
            'expectedRevision': 0,
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "41800000-0000-4000-8000-000000000138",
      "expectedRevision": 0
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/reports/v1/events/41800000-0000-4000-8000-000000000003/replay');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/reports/v1/events/41800000-0000-4000-8000-000000000003/replay");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "41800000-0000-4000-8000-000000000138",
      "expectedRevision": 0
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Răspuns 202

    JSON

    {
      "operationId": "41800000-0000-4000-8000-000000000138",
      "status": "accepted",
      "aggregateRevision": 1
    }