---
title: "Replace users jobs"
method: PUT
path: "/api/v2/bulk/skills/users/jobs"
tags: ["Skills"]
---

# Replace users jobs

`PUT /api/v2/bulk/skills/users/jobs`

> 🔑
>
> Required OAuth scope: `skillsJobs:bulk`.

> 🚜
>
> This endpoint processes up to 10,000 objects asynchronously. For more information, see the [Bulk operations guide](https://360learning.readme.io/docs/bulk-operations-1).

Replaces users jobs based on the given `userId`.
- All jobs of each users will be replaced by the provided ones. For each user, a maximum of 100 jobs is allowed.

Upon submission, the request is queued. Use the provided URL in the response header to check the status of the bulk operation.

## Headers

- `360-api-version` 'v2.0', required

## Request body

- ReplaceUsersJobsBody
  - `input` ReplaceUserJobsDTO[], required — An array of jobs by user and status.
    - `userId` string, ObjectId, required — The unique ID of the user the jobs are associated to.
    - `currentJobIds` string[] — The list of unique IDs of the current jobs given to the user. Do not include the property to keep existing jobs. Send empty list ([]) to remove all corresponding jobs
    - `targetJobIds` string[] — The list of unique IDs of the target jobs given to the user. Do not include the property to keep existing jobs. Send empty list ([]) to remove all corresponding jobs
    - `previousJobIds` string[] — The list of unique IDs of the previous jobs given to the user. Do not include the property to keep existing jobs. Send empty list ([]) to remove all corresponding jobs

## Response `202`

The operation is successfully created.

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `429` — The maximum number of concurrent operations has been reached.
- `503` — The bulk API is temporarily disabled.

---

[API](https://skmtc.dev/360learning/apis/core-api.md) · [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
