---
title: "Upsert Agency Group Candidate consultant in bulk"
method: PUT
path: "/agency-group/{agency_group_id}/candidate/consultant"
tags: ["Agency Group Candidate Consultant"]
---

# Upsert Agency Group Candidate consultant in bulk

`PUT /agency-group/{agency_group_id}/candidate/consultant`

## Request

- Base URL: `http://localhost:3010/v1`
- URL: `http://localhost:3010/v1/agency-group/{agency_group_id}/candidate/consultant`
- Auth: HTTP basic

## Request body

- BulkAgencyGroupCandidateConsultantDef
  - `candidates_ids` string[], required
  - `consultant_role` string, required
  - `assigned_user_id` string, required

## Response `200`

The list of candidate ids that were processed successfully

- Bulk200AgencyGroupCandidateConsultantResponseDef
  - `successful_candidate_ids` string[], required

## Other responses

- `202`: The list of candidate ids that are successfully processed or failed
- `400`: Validation error on put
- `401`: Failed to authenticate the user making the request
- `403`: Permission denied error
- `404`: Resource not found
- `default`: Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) - [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/revisions/1f079f6b65f5?raw)
