From c71a6545808c23ddc6a4f31a2a7aeb9d6d2be376 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 22 Sep 2026 13:16:25 +0000 Subject: [PATCH] feat(API): add owner_id parameter to job template create and update endpoints #STRINGS-3477 --- doc/compiled.json | 16 ++++++++++++++++ paths/job_templates/create.yaml | 8 ++++++++ paths/job_templates/update.yaml | 8 ++++++++ paths/organization_job_templates/create.yaml | 6 ++++++ paths/organization_job_templates/update.yaml | 7 +++++++ 5 files changed, 45 insertions(+) diff --git a/doc/compiled.json b/doc/compiled.json index 0bda2ec02..03d8f8e80 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -13504,6 +13504,10 @@ "description": "The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.", "type": "string", "example": "abcd1234cdef1234abcd1234cdef1234" + }, + "owner_id": { + "description": "Code of the account member to set as the job template owner. The referenced\nuser must also be a member of the project; passing the code of an account member\nwho is not a project member returns a 404. When omitted or blank, no owner is\npre-set; the user who creates a job from this template is assigned as owner\nat job-creation time.\n", + "type": "string" } }, "required": [ @@ -13697,6 +13701,10 @@ "description": "The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.", "type": "string", "example": "abcd1234cdef1234abcd1234cdef1234" + }, + "owner_id": { + "description": "Code of the account member to set as the job template owner. The referenced\nuser must also be a member of the project; passing the code of an account member\nwho is not a project member returns a 404. Pass an empty string to clear a\npreviously set owner; when blank, jobs created from this template will default\nto assigning the job creator as owner.\n", + "type": "string" } }, "required": [ @@ -31581,6 +31589,10 @@ "description": "Automatically translate the job using machine translation.", "type": "boolean", "example": true + }, + "owner_id": { + "description": "Code of the account member to set as the job template owner. When omitted\nor blank, no owner is pre-set; the user who creates a job from this template\nis assigned as its owner at job-creation time.\n", + "type": "string" } }, "required": [ @@ -31755,6 +31767,10 @@ "description": "Automatically translate the job using machine translation.", "type": "boolean", "example": true + }, + "owner_id": { + "description": "Code of the account member to set as the job template owner.\nPass an empty string to clear a previously set owner; when blank,\nthe owner is set to null and jobs created from this template will\ndefault to assigning the job creator as owner.\n", + "type": "string" } }, "required": [ diff --git a/paths/job_templates/create.yaml b/paths/job_templates/create.yaml index ee36a6cdc..61da71f6d 100644 --- a/paths/job_templates/create.yaml +++ b/paths/job_templates/create.yaml @@ -76,6 +76,14 @@ requestBody: description: The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used. type: string example: abcd1234cdef1234abcd1234cdef1234 + owner_id: + description: | + Code of the account member to set as the job template owner. The referenced + user must also be a member of the project; passing the code of an account member + who is not a project member returns a 404. When omitted or blank, no owner is + pre-set; the user who creates a job from this template is assigned as owner + at job-creation time. + type: string required: - name x-cli-version: '2.5' diff --git a/paths/job_templates/update.yaml b/paths/job_templates/update.yaml index 719af115d..3780268be 100644 --- a/paths/job_templates/update.yaml +++ b/paths/job_templates/update.yaml @@ -78,6 +78,14 @@ requestBody: description: The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used. type: string example: abcd1234cdef1234abcd1234cdef1234 + owner_id: + description: | + Code of the account member to set as the job template owner. The referenced + user must also be a member of the project; passing the code of an account member + who is not a project member returns a 404. Pass an empty string to clear a + previously set owner; when blank, jobs created from this template will default + to assigning the job creator as owner. + type: string required: - name x-cli-version: '2.5' diff --git a/paths/organization_job_templates/create.yaml b/paths/organization_job_templates/create.yaml index c747d9d96..6aa6b2ed0 100644 --- a/paths/organization_job_templates/create.yaml +++ b/paths/organization_job_templates/create.yaml @@ -68,6 +68,12 @@ requestBody: description: Automatically translate the job using machine translation. type: boolean example: true + owner_id: + description: | + Code of the account member to set as the job template owner. When omitted + or blank, no owner is pre-set; the user who creates a job from this template + is assigned as its owner at job-creation time. + type: string required: - name x-cli-version: "2.7.0" diff --git a/paths/organization_job_templates/update.yaml b/paths/organization_job_templates/update.yaml index 361051c63..33b1e1ac7 100644 --- a/paths/organization_job_templates/update.yaml +++ b/paths/organization_job_templates/update.yaml @@ -68,6 +68,13 @@ requestBody: description: Automatically translate the job using machine translation. type: boolean example: true + owner_id: + description: | + Code of the account member to set as the job template owner. + Pass an empty string to clear a previously set owner; when blank, + the owner is set to null and jobs created from this template will + default to assigning the job creator as owner. + type: string required: - name x-cli-version: "2.7.0"