---
title: "PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}"
method: PUT
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}"
tags: ["JobCollections"]
---

# PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}

`PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Scheduler/jobCollections/{jobCollectionName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Provisions a new job collection or updates an existing job collection.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `jobCollectionName` string, required

## Query parameters

- `api-version` string, required

## Request body

- JobCollectionDefinition
  - `id` string: Gets the job collection resource identifier.
  - `type` string: Gets the job collection resource type.
  - `name` string: Gets or sets the job collection resource name.
  - `location` string: Gets or sets the storage account location.
  - `tags` object: Gets or sets the tags.
  - `properties` JobCollectionProperties
    - `sku` Sku
      - `name` 'Standard' | 'Free' | 'Premium': Gets or set the SKU.
    - `state` 'Enabled' | 'Disabled' | 'Suspended' | 'Deleted': Gets or sets the state.
    - `quota` JobCollectionQuota
      - `maxJobCount` integer: Gets or set the maximum job count.
      - `maxJobOccurrence` integer: Gets or sets the maximum job occurrence.
      - `maxRecurrence` JobMaxRecurrence
        - `frequency` 'Minute' | 'Hour' | 'Day' | 'Week' | 'Month': Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).
        - `interval` integer: Gets or sets the interval between retries.

## Response `200`

The job collection has been successfully updated.

- JobCollectionDefinition
  - `id` string: Gets the job collection resource identifier.
  - `type` string: Gets the job collection resource type.
  - `name` string: Gets or sets the job collection resource name.
  - `location` string: Gets or sets the storage account location.
  - `tags` object: Gets or sets the tags.
  - `properties` JobCollectionProperties
    - `sku` Sku
      - `name` 'Standard' | 'Free' | 'Premium': Gets or set the SKU.
    - `state` 'Enabled' | 'Disabled' | 'Suspended' | 'Deleted': Gets or sets the state.
    - `quota` JobCollectionQuota
      - `maxJobCount` integer: Gets or set the maximum job count.
      - `maxJobOccurrence` integer: Gets or sets the maximum job occurrence.
      - `maxRecurrence` JobMaxRecurrence
        - `frequency` 'Minute' | 'Hour' | 'Day' | 'Week' | 'Month': Gets or sets the frequency of recurrence (second, minute, hour, day, week, month).
        - `interval` integer: Gets or sets the interval between retries.

## Other responses

- `201`: The job collection has been successfully created.

---

[API](https://skmtc.dev/azure/apis/scheduler-microsoft-scheduler-scheduler.md) - [All operations](https://skmtc.dev/azure/apis/scheduler-microsoft-scheduler-scheduler/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/scheduler-microsoft-scheduler-scheduler/revisions/f0389cecd065?raw)
