shareJobTemplate

POST
Use dark colors for code blocksCopy
1
/{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:

ParameterDescriptionData Type
groupIdsRequired. Defines the Group Ids that the job template will be shared with.Array[String]

Query parameters

NameTypeRequired

token

string

Body parameters

Supported content types: application/json

NameTypeRequiredDescription

The list of groups to share the job template.

groupIds

[string]

body

The list of groups to share the job template.

Path parameters

NameTypeRequired

jobTemplateId

string

orgId

string

itemId

string

Examples

Request

Use dark colors for code blocksCopy
1
2
3
4
5
6
# 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

StatusMeaningDescriptionSchema

200

OK

success

Success

400

Bad Request

Error

WorkflowExceptionDTO

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.