---
title: "PATCH /api/v1/pki/syncs/aws-secrets-manager/{pkiSyncId}"
method: PATCH
path: "/api/v1/pki/syncs/aws-secrets-manager/{pkiSyncId}"
tags: ["PKI Syncs"]
---

# PATCH /api/v1/pki/syncs/aws-secrets-manager/{pkiSyncId}

`PATCH /api/v1/pki/syncs/aws-secrets-manager/{pkiSyncId}`

Update the specified AWS Secrets Manager PKI Sync.

## Path parameters

- `pkiSyncId` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `isAutoSyncEnabled` boolean
  - `destinationConfig` object
    - `region` 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'af-south-1' | 'ap-east-1' | 'ap-south-1' | 'ap-south-2' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-southeast-3' | 'ap-southeast-4' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-south-1' | 'eu-south-2' | 'eu-north-1' | 'me-south-1' | 'me-central-1' | 'sa-east-1', required
    - `keyId` string
  - `syncOptions` object
    - `canImportCertificates` boolean
    - `canRemoveCertificates` boolean
    - `includeRootCa` boolean
    - `preserveSecretOnRenewal` boolean
    - `updateExistingCertificates` boolean
    - `postSyncCommand` string, nullable
    - `certificateNameSchema` string, required
    - `fieldMappings` object
      - `certificate` string
      - `privateKey` string
      - `certificateChain` string
      - `caCertificate` string
  - `subscriberId` string, nullable
  - `connectionId` string

## Response `200`

Default Response

- object
  - `id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `destination` 'aws-secrets-manager', required
  - `isAutoSyncEnabled` boolean, required
  - `destinationConfig` object, required
    - `region` 'us-east-1' | 'us-east-2' | 'us-west-1' | 'us-west-2' | 'us-gov-east-1' | 'us-gov-west-1' | 'af-south-1' | 'ap-east-1' | 'ap-south-1' | 'ap-south-2' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-southeast-1' | 'ap-southeast-2' | 'ap-southeast-3' | 'ap-southeast-4' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'eu-south-1' | 'eu-south-2' | 'eu-north-1' | 'me-south-1' | 'me-central-1' | 'sa-east-1', required
    - `keyId` string
  - `syncOptions` object, required
    - `canImportCertificates` boolean
    - `canRemoveCertificates` boolean
    - `includeRootCa` boolean
    - `preserveSecretOnRenewal` boolean
    - `updateExistingCertificates` boolean
    - `postSyncCommand` string, nullable
    - `certificateNameSchema` string, required
    - `fieldMappings` object
      - `certificate` string
      - `privateKey` string
      - `certificateChain` string
      - `caCertificate` string
  - `projectId` string, uuid, required
  - `subscriberId` string, uuid, nullable
  - `connectionId` string, uuid, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required
  - `syncStatus` string, nullable
  - `lastSyncedAt` string, date-time, nullable

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `404` — Default Response
- `422` — Default Response
- `500` — Default Response

---

[API](https://skmtc.net/infisical/apis/infisical-api.md) · [All operations](https://skmtc.net/infisical/apis/infisical-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/infisical/infisical-api/versions/885aef3e6c11/schema)
