github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/repo_syncs/deactivate.yaml (about)

     1  ---
     2  summary: Deactivate a Repo Sync
     3  description: |-
     4    Deactivate an active Repo Sync. Import and export can't be performed on deactivated syncs
     5    and the pushes to the repository won't trigger the import to Phrase.
     6  operationId: repo_sync/deactivate
     7  tags:
     8  - Repo Syncs
     9  parameters:
    10  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
    11  - "$ref": "../../parameters.yaml#/account_id"
    12  - "$ref": "../../parameters.yaml#/repo_sync_id"
    13  responses:
    14    '200':
    15      description: OK
    16      content:
    17        application/json:
    18          schema:
    19            $ref: "../../schemas/repo_sync.yaml#/repo_sync"
    20      headers:
    21        X-Rate-Limit-Limit:
    22          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    23        X-Rate-Limit-Remaining:
    24          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    25        X-Rate-Limit-Reset:
    26          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    27    '400':
    28      "$ref": "../../responses.yaml#/400"
    29    '404':
    30      "$ref": "../../responses.yaml#/404"
    31    '429':
    32      "$ref": "../../responses.yaml#/429"
    33  x-code-samples:
    34  - lang: Curl
    35    source: |-
    36      curl "https://api.phrase.com/v2/accounts/ab12cd34/repo_syncs/45ef6789/deactivate"\
    37        -u USERNAME_OR_ACCESS_TOKEN \
    38        -X POST \
    39        -H 'Content-Type: application/json'
    40  - lang: CLI v2
    41    source: |-
    42      phrase repo_sync deactivate \
    43      --repo_sync_id <repo_sync_id> \
    44      --access_token <token>
    45  x-cli-version: '2.24'