Update a pool member
Módulo Opportunities
PATCH/pool-members/{id}poolMembers.update
A pool member. Do Not Engage needs a reason and a review date and is never visible externally. Updates the fields sent; omitted fields are unchanged. Requires `If-Match` with the current `ETag`: a stale tag returns 412 and a missing tag returns 428.
- Requiere la capacidad opportunities.pool.write.
- Alcances de OAuth: opportunities.
- Envía If-Match con el ETag que leíste. Una etiqueta desactualizada devuelve 412; si falta, devuelve 428.
- Estados de error: 400, 401, 404, 412, 422, 428, 429. Los errores son detalles de problema RFC 9457.
Parámetros de ruta y de consulta
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the pool member. |
Cuerpo de la solicitud: PoolMemberUpdate
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| person_id | string (uuid) | null | No | Identifier of the member person. |
| organization_id | string (uuid) | null | No | Identifier of the member organization. |
| level | PoolLevel | No | Talent or vendor pool level. Do Not Engage is internal only and needs a reason and review date.Restricciones: one of "Preferred", "Approved", "Do Not Engage" |
| reason | string | null | No | Reason, required for Do Not Engage.Restricciones: length 1 to 20000 |
| review_on | string (date) | null | No | Review date, required for Do Not Engage. |
| rehire_eligible | boolean | No | Rehire eligibility. |
{
"person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"reason": "Repeated no-shows.",
"review_on": "2026-10-08",
"rehire_eligible": true
}Respuesta 200: PoolMember
| Campo | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| id | string (uuid) | Sí | Identifier of the pool member. |
| org_id | string (uuid) | Sí | Identifier of the owning organization, derived from the parent row and never accepted from the caller. |
| created_at | string (date-time) | Sí | When the row was created. |
| created_by | string (uuid) | null | Sí | Identifier of the person who created the row; null when a seed, platform or system process created it. |
| updated_at | string (date-time) | Sí | When the row was last updated. |
| updated_by | string (uuid) | null | Sí | Identifier of the person who last updated the row; null when a seed, platform or system process updated it. |
| talent_pool_id | string (uuid) | Sí | Identifier of the pool. |
| person_id | string (uuid) | null | Sí | Identifier of the member person. |
| organization_id | string (uuid) | null | Sí | Identifier of the member organization. |
| level | PoolLevel | Sí | Talent or vendor pool level. Do Not Engage is internal only and needs a reason and review date.Restricciones: one of "Preferred", "Approved", "Do Not Engage" |
| reason | string | null | Sí | Reason, required for Do Not Engage.Restricciones: length 1 to 20000 |
| review_on | string (date) | null | Sí | Review date, required for Do Not Engage. |
| rehire_eligible | boolean | Sí | Rehire eligibility. |
{
"id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"org_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"created_at": "2026-10-08T14:30:00Z",
"created_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"updated_at": "2026-10-08T14:30:00Z",
"updated_by": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"talent_pool_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"level": "Preferred",
"reason": "Repeated no-shows.",
"review_on": "2026-10-08",
"rehire_eligible": true
}Ejemplos de código
curl -X PATCH "$XOS_BASE_URL/pool-members/0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f" \
-H "Authorization: Bearer $XOS_API_KEY" \
-H 'If-Match: W/"etag-from-your-last-read"' \
-H "Content-Type: application/json" \
-d '{"person_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","organization_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","reason":"Repeated no-shows.","review_on":"2026-10-08","rehire_eligible":true}'const { data, etag } = await xos.poolMembers.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {
"person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f",
"reason": "Repeated no-shows.",
"review_on": "2026-10-08",
"rehire_eligible": true
}, { ifMatch: etag });response = xos.pool_members.update("0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", {"person_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", "organization_id": "0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f", "reason": "Repeated no-shows.", "review_on": "2026-10-08", "rehire_eligible": True}, if_match=etag)xos pool-members update 0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f --data '{"person_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","organization_id":"0192f1e2-7c3a-7b4d-9e8f-1a2b3c4d5e6f","reason":"Repeated no-shows.","review_on":"2026-10-08","rehire_eligible":true}' --if-match auto