---
title: "Update job title assignments"
method: PUT
path: "/cohorts/{id}/job-assignments"
tags: ["Cohorts"]
---

# Update job title assignments

`PUT /cohorts/{id}/job-assignments`

## Request

- Base URL: `https://api.production.yourmedley.com`
- URL: `https://api.production.yourmedley.com/cohorts/{id}/job-assignments`
- Auth: HTTP bearer

Update all job title assignments for a cohort. Replaces existing assignments.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `assignments` object[], required
    - `job_title_id` string, uuid, required: ID of the job title
    - `user_id` string, uuid, nullable: ID of the user to assign (null to unassign)

## Response `200`

Job title assignments updated successfully

- object
  - `success` boolean
  - `data` CohortJobTitleAssignment[]
    - `id` string, uuid
    - `cohort_id` string, uuid
    - `job_title_id` string, uuid
    - `job_title_name` string: Name of the job title
    - `job_title_description` string, nullable: Description of the job title
    - `user_id` string, uuid, nullable: ID of the assigned user (null if unassigned)
    - `user_name` string, nullable: Full name of the assigned user
    - `user_email` string, nullable: Email of the assigned user

## Other responses

- `400`: Invalid job title ID
- `401`: Unauthorized
- `404`: Cohort not found
- `422`: Validation error

---

[API](https://skmtc.dev/withmedley/apis/medley-api.md) - [All operations](https://skmtc.dev/withmedley/apis/medley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/withmedley/apis/medley-api/revisions/40aaac5ca6bd?raw)
