Skip to content

Set the loan team

Request

Replace the bankers on the loan. loanTeam lists the seats that have a banker: a seat from bankerSeats of GET /products/{id} and a banker from GET /bankers. A seat that is not in the list is empty, and an empty list clears the team. A banker who takes a seat gets the assignment email. The response is loanTeam as GET /loans/{id} returns it.

Security
ApiKeyAuth
Path
idstringrequired
Headers
Idempotency-Keystring, <= 255 characters

Optional opaque key (e.g. a UUID) to make this write safely retryable. A replay with the same key returns the original response instead of repeating the side effect.

Bodyapplication/jsonrequired
loanTeamArray of objectsrequired

The seats that have a banker. It replaces the team: a seat that is not in the list is empty. An empty list clears the team.

curl -i -X PUT \
  'https://api.pioneerft.com/api/public/v1/loans/{id}/team' \
  -H 'Authorization: Bearer <YOUR_API Key_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Idempotency-Key: string' \
  -d '{
    "loanTeam": [
      {
        "roleId": "string",
        "bankerId": "string"
      }
    ]
  }'

Responses

The loan team after the write

Bodyapplication/json
dataArray of objects(PublicLoanTeam)

One entry per banker seat of the loan's product, filled or not, in the product's role order.

Response
{ "data": [ { "role": { "id": "string", "name": "string", "label": "string" }, "banker": { "id": "string", "name": "string", "lastName": "string", "email": "string" } } ] }