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

     1  ---
     2  summary: Import to Phrase Strings from Bitbucket
     3  description: 'Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>'
     4  operationId: bitbucket_sync/import
     5  tags:
     6  - Bitbucket Sync
     7  parameters:
     8  - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP"
     9  - "$ref": "../../parameters.yaml#/id"
    10  responses:
    11    '200':
    12      description: OK
    13      headers:
    14        X-Rate-Limit-Limit:
    15          "$ref": "../../headers.yaml#/X-Rate-Limit-Limit"
    16        X-Rate-Limit-Remaining:
    17          "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining"
    18        X-Rate-Limit-Reset:
    19          "$ref": "../../headers.yaml#/X-Rate-Limit-Reset"
    20    '400':
    21      "$ref": "../../responses.yaml#/400"
    22    '404':
    23      "$ref": "../../responses.yaml#/404"
    24    '429':
    25      "$ref": "../../responses.yaml#/429"
    26  x-code-samples:
    27  - lang: Curl
    28    source: |-
    29      curl "https://api.phrase.com/v2/bitbucket_syncs/:id/import" \
    30        -u USERNAME_OR_ACCESS_TOKEN \
    31        -X POST \
    32        -d '{"account_id":"abcd1234"}' \
    33        -H 'Content-Type: application/json'
    34  - lang: CLI v2
    35    source: |-
    36      phrase bitbucket_sync import \
    37      --id <id> \
    38      --data '{"account_id":"abcd1234"}' \
    39      --access_token <token>
    40  requestBody:
    41    required: true
    42    content:
    43      application/json:
    44        schema:
    45          type: object
    46          title: bitbucket_sync/import/parameters
    47          properties:
    48            account_id:
    49              description: Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
    50              type: string
    51              example: abcd1234
    52  x-cli-version: '2.5'