github.com/phrase/openapi@v0.0.0-20240514140800-49e8a106740e/paths/gitlab_syncs/update.yaml (about) 1 --- 2 summary: Update single Sync Setting 3 description: Updates a single GitLab Sync Setting. 4 operationId: gitlab_sync/update 5 tags: 6 - GitLab Sync 7 parameters: 8 - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" 9 - "$ref": "../../parameters.yaml#/id" 10 - description: Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. 11 example: abcd1234 12 name: account_id 13 in: query 14 schema: 15 type: string 16 - description: Code of the related Phrase Strings Project. 17 example: 3456abcd 18 name: phrase_project_code 19 in: query 20 schema: 21 type: string 22 - description: ID of the related GitLab Project. 23 example: 12345 24 name: gitlab_project_id 25 in: query 26 schema: 27 type: integer 28 - description: Name of the GitLab Branch. 29 example: feature-development 30 name: gitlab_branch_name 31 in: query 32 schema: 33 type: string 34 responses: 35 '200': 36 description: OK 37 content: 38 application/json: 39 schema: 40 "$ref": "../../schemas/gitlab_sync.yaml#/gitlab_sync" 41 headers: 42 X-Rate-Limit-Limit: 43 "$ref": "../../headers.yaml#/X-Rate-Limit-Limit" 44 X-Rate-Limit-Remaining: 45 "$ref": "../../headers.yaml#/X-Rate-Limit-Remaining" 46 X-Rate-Limit-Reset: 47 "$ref": "../../headers.yaml#/X-Rate-Limit-Reset" 48 '400': 49 "$ref": "../../responses.yaml#/400" 50 '404': 51 "$ref": "../../responses.yaml#/404" 52 '429': 53 "$ref": "../../responses.yaml#/429" 54 x-code-samples: 55 - lang: Curl 56 source: |- 57 curl "https://api.phrase.com/v2/gitlab_syncs/:id" \ 58 -u USERNAME_OR_ACCESS_TOKEN \ 59 -X PUT \ 60 -d '{"account_id":"abcd1234","phrase_project_code":"3456abcd","gitlab_project_id":12345,"gitlab_branch_name":"feature-development"}' \ 61 -H 'Content-Type: application/json' 62 - lang: CLI v2 63 source: |- 64 phrase git_lab_sync update \ 65 --id <id> \ 66 --data '{"account_id":"abcd1234", "phrase_project_code":"3456abcd", "gitlab_project_id":"12345", "gitlab_branch_name":"feature-development"}' \ 67 --access_token <token> 68 x-cli-version: '2.5'