---
title: "For worker to save the AttemptSyncConfig for an attempt."
method: POST
path: "/v1/attempt/save_sync_config"
tags: ["attempt", "internal"]
---

# For worker to save the AttemptSyncConfig for an attempt.

`POST /v1/attempt/save_sync_config`

## Request body

- SaveAttemptSyncConfigRequestBody
  - `attemptNumber` integer, required
  - `jobId` integer, required
  - `syncConfig` AttemptSyncConfig, required
    - `destinationConfiguration` unknown, required
    - `sourceConfiguration` unknown, required
    - `state` ConnectionState — Contains the state for a connection. The stateType field identifies what type of state it is. Only the field corresponding to that type will be set, the rest will be null. If stateType=not_set, then none of the fields will be set.
      - `connectionId` string, uuid, required
      - `globalState` GlobalState
        - `shared_state` StateBlob
        - `streamStates` StreamState[], required
          - `streamDescriptor` StreamDescriptor, required
            - `name` string, required
            - `namespace` string
          - `streamState` StateBlob
      - `state` StateBlob
      - `stateType` 'global' | 'stream' | 'legacy' | 'not_set', required
      - `streamState` StreamState[]
        - `streamDescriptor` StreamDescriptor, required
          - `name` string, required
          - `namespace` string
        - `streamState` StateBlob

## Response `200`

Successful Operation

- InternalOperationResult
  - `succeeded` boolean, required

---

[API](https://skmtc.net/airbyte/apis/config.md) · [All operations](https://skmtc.net/airbyte/apis/config/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/airbyte/config/revisions/ce48e08e02ec/schema)
