/{orgId}/{itemId}/jobTemplates/{jobTemplateId}/shareWith
Share a job template
Update 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 |
---|---|---|
|
|
Body parameters
Supported content types: application/json
Name | Type | Required | Description |
---|---|---|---|
The list of groups to share the job template. | |||
|
|
Path parameters
Name | Type | Required |
---|---|---|
|
| |
|
| |
|
|
Examples
Request
# You can also use wget
curl -X POST /{orgId}/{itemId}/jobTemplates/{jobTemplateId}/shareWith \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
--data '{"groupIds":["string"]}'
Response
Status | Meaning | Description | Schema |
---|---|---|---|
| success | ||
| Error |