POST
/{orgId}/{itemId}/jobTemplates/{jobTemplateId}/shareWithUpdate the list of groups a job template is shared with by specifying the updated list in the json body. The adminBasic or adminAdvanced privilege is required.
Share Job Template Parameters:
| Parameter | Description | Data Type |
|---|---|---|
| groupIds | Required. Defines the Group Ids that the job template will be shared with. | Array[String] |
Query parameters
| Name | Type | Required |
|---|---|---|
token | string¦null |
Body parameters
Supported content types: application/json
Type: groupIds
The list of groups to share the job template.
| Name | Type | Required |
|---|---|---|
group | [string] |
Path parameters
| Name | Type | Required |
|---|---|---|
job | string | |
org | string | |
item | string |
Response status
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | success | Success |
| 400 | Bad Request | Error | WorkflowExceptionDTO |
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobTemplates/{jobTemplateId}/shareWith \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <YOUR_TOKEN>' \
--data '{"groupIds":["string"]}'Response
{
"success": true
}