diff --git a/doc/compiled.json b/doc/compiled.json index 6de8f496e..761982740 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -12544,6 +12544,9 @@ }, { "$ref": "#/components/parameters/id" + }, + { + "$ref": "#/components/parameters/branch" } ], "responses": { @@ -12591,11 +12594,11 @@ "x-code-samples": [ { "lang": "Curl", - "source": "curl \"https://api.phrase.com/v2/projects/:project_id/jobs/:id\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X PATCH \\\n -d '{\"branch\":\"my-feature-branch\",\"name\":\"de\",\"briefing\":\"de-DE\",\"due_date\":\"2017-08-15\",\"ticket_url\":\"https://example.atlassian.net/browse/FOO\"}' \\\n -H 'Content-Type: application/json'" + "source": "curl \"https://api.phrase.com/v2/projects/:project_id/jobs/:id?branch=my-feature-branch\" \\\n -u USERNAME_OR_ACCESS_TOKEN \\\n -X PATCH \\\n -d '{\"name\":\"de\",\"briefing\":\"de-DE\",\"due_date\":\"2017-08-15\",\"ticket_url\":\"https://example.atlassian.net/browse/FOO\"}' \\\n -H 'Content-Type: application/json'" }, { "lang": "CLI v2", - "source": "phrase jobs update \\\n--project_id \\\n--id \\\n--data '{\"branch\":\"my-feature-branch\", \"name\":\"de\", \"briefing\":\"de-DE\", \"due_date\":\"2017-08-15\", \"ticket_url\":\"https://example.atlassian.net/browse/FOO\"}' \\\n--access_token " + "source": "phrase jobs update \\\n--project_id \\\n--id \\\n--branch my-feature-branch \\\n--data '{\"name\":\"de\", \"briefing\":\"de-DE\", \"due_date\":\"2017-08-15\", \"ticket_url\":\"https://example.atlassian.net/browse/FOO\"}' \\\n--access_token " } ], "requestBody": { @@ -12606,11 +12609,6 @@ "type": "object", "title": "job/update/parameters", "properties": { - "branch": { - "description": "specify the branch to use", - "type": "string", - "example": "my-feature-branch" - }, "name": { "description": "Job name", "type": "string", diff --git a/paths/jobs/update.yaml b/paths/jobs/update.yaml index a7983730e..90ef26e03 100644 --- a/paths/jobs/update.yaml +++ b/paths/jobs/update.yaml @@ -8,6 +8,7 @@ parameters: - "$ref": "../../parameters.yaml#/X-PhraseApp-OTP" - "$ref": "../../parameters.yaml#/project_id" - "$ref": "../../parameters.yaml#/id" +- "$ref": "../../parameters.yaml#/branch" responses: '200': description: OK @@ -38,17 +39,18 @@ responses: x-code-samples: - lang: Curl source: |- - curl "https://api.phrase.com/v2/projects/:project_id/jobs/:id" \ + curl "https://api.phrase.com/v2/projects/:project_id/jobs/:id?branch=my-feature-branch" \ -u USERNAME_OR_ACCESS_TOKEN \ -X PATCH \ - -d '{"branch":"my-feature-branch","name":"de","briefing":"de-DE","due_date":"2017-08-15","ticket_url":"https://example.atlassian.net/browse/FOO"}' \ + -d '{"name":"de","briefing":"de-DE","due_date":"2017-08-15","ticket_url":"https://example.atlassian.net/browse/FOO"}' \ -H 'Content-Type: application/json' - lang: CLI v2 source: |- phrase jobs update \ --project_id \ --id \ - --data '{"branch":"my-feature-branch", "name":"de", "briefing":"de-DE", "due_date":"2017-08-15", "ticket_url":"https://example.atlassian.net/browse/FOO"}' \ + --branch my-feature-branch \ + --data '{"name":"de", "briefing":"de-DE", "due_date":"2017-08-15", "ticket_url":"https://example.atlassian.net/browse/FOO"}' \ --access_token requestBody: required: true @@ -58,10 +60,6 @@ requestBody: type: object title: job/update/parameters properties: - branch: - description: specify the branch to use - type: string - example: my-feature-branch name: description: Job name type: string