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] |
Body parameter
{
"groupIds": [
"string"
]
}
Query parameters
Name | Type | Required |
---|---|---|
|
|
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}'
Response
200 Response
{
"success": true
}
Status | Meaning | Description | Schema |
---|---|---|---|
| success | ||
| Error |