# Update an account

Section: Your data › Recruitment tracker

```
PATCH https://ba.joexyz.online/api/v1/me/recruitment/accounts/:accountId
```

Updates `name`, `gameServer`, `permanentCharge`, `limitedCharge` and/or `archived`. Fields you leave out keep their current values. An archived account keeps its sessions and is restored with `"archived": false`.

**Parameters**

- `accountId` (path): The recruitment account id.

## Authentication

Bearer Token — `Authorization: Bearer <token>` (inherited from folder "Your data")

## Path parameters

| Name | Value |
| --- | --- |
| `accountId` |  |

## Headers

| Name | Value |
| --- | --- |
| `Content-Type` | `application/json` |

## Body

Content type: `application/json`

```json
{
  "name": "JP Account"
}
```

## Example responses

### 200 OK

```json
{
  "data": {
    "id": "m575f032hbdgstqydc8qbfx4318d039r",
    "createdAt": "2026-08-23T22:53:13.685Z",
    "name": "JP Account",
    "aggregates": {
      "fest": {
        "hardPities": 1,
        "hardPityPickups": 1,
        "naturalPickups": 1,
        "paidPulls": 170,
        "pickupChargeHistogram": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1
        ],
        "pyroxenesSaved": 6000,
        "rebatePulls": 50,
        "sessionCount": 1,
        "softLossPickups": 0,
        "softPityLosses": 1,
        "softPityWins": 0,
        "softWinPickups": 0,
        "totalPickups": 2,
        "totalPulls": 220,
        "totalThreeStars": 16
      },
      "limited": {
        "hardPities": 0,
        "hardPityPickups": 0,
        "naturalPickups": 2,
        "paidPulls": 318,
        "pickupChargeHistogram": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "pyroxenesSaved": 5723,
        "rebatePulls": 48,
        "sessionCount": 3,
        "softLossPickups": 1,
        "softPityLosses": 1,
        "softPityWins": 1,
        "softWinPickups": 1,
        "totalPickups": 4,
        "totalPulls": 366,
        "totalThreeStars": 13
      },
      "permanent": {
        "hardPities": 0,
        "hardPityPickups": 0,
        "naturalPickups": 1,
        "paidPulls": 231,
        "pickupChargeHistogram": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          1,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          2,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "pyroxenesSaved": 3877,
        "rebatePulls": 32,
        "sessionCount": 4,
        "softLossPickups": 0,
        "softPityLosses": 0,
        "softPityWins": 2,
        "softWinPickups": 2,
        "totalPickups": 3,
        "totalPulls": 263,
        "totalThreeStars": 7
      }
    },
    "gameServer": "JP",
    "latestLimitedSessionId": "m97av0zgt5v6bbmt5ny2pgq1w98h4g6q",
    "latestPermanentSessionId": "m97dzgewm2eyqcbw014ar1hfg98fvedh",
    "limitedCharge": 3,
    "permanentCharge": 0,
    "sessions": [
      {
        "id": "m97av0zgt5v6bbmt5ny2pgq1w98h4g6q",
        "createdAt": "2026-10-28T11:32:05.383Z",
        "name": "Racing HifuAzu",
        "computedStats": {
          "earnedRebateTickets": 3,
          "endCharge": 3,
          "experiencedPURate": 1.3071895424836601,
          "experiencedThreeStarRate": 2.6143790849673203,
          "hardPities": 0,
          "limitedEndCharge": 3,
          "paidPulls": 133,
          "permanentEndCharge": 0,
          "pickupClassifications": [
            {
              "studentId": "hifumi_racing",
              "charge": 100,
              "classification": "softWin",
              "kind": "limited"
            },
            {
              "studentId": "azusa_racing",
              "charge": 58,
              "classification": "beforeSoftPity",
              "kind": "limited"
            }
          ],
          "pickupCount": 2,
          "pools": {
            "limited": {
              "endCharge": 3,
              "hardPities": 0,
              "pickupCount": 2,
              "pulls": 153,
              "softPityLosses": 0,
              "softPityWins": 1,
              "startCharge": 8
            },
            "permanent": {
              "endCharge": 0,
              "hardPities": 0,
              "pickupCount": 0,
              "pulls": 0,
              "softPityLosses": 0,
              "softPityWins": 0,
              "startCharge": 0
            }
          },
          "pullsPerPU": 76.5,
          "pullsPerThreeStar": 38.25,
          "pyroxenesSaved": 2400,
          "pyroxenesSpent": 15960,
          "rebatePulls": 20,
          "rebateTicketsUsed": 2,
          "remainingRebateTickets": 1,
          "softPityLosses": 0,
          "softPityWins": 1
        },
        "date": 1793186803513,
        "isFestBanner": false,
        "isLatest": true,
        "kind": "limited",
        "limitedPulls": 153,
        "limitedStartCharge": 8,
        "permanentPulls": 0,
        "permanentStartCharge": 0,
        "pickupsObtained": [
          {
            "studentId": "hifumi_racing",
            "charge": 100,
            "kind": "limited"
          },
          {
            "studentId": "azusa_racing",
            "charge": 58,
            "kind": "limited"
          }
        ],
        "rebateTicketsFromPreviousSession": 0,
        "rebateTicketsUsed": 2,
        "recruitmentAccountId": "m575f032hbdgstqydc8qbfx4318d039r",
        "startCharge": 8,
        "stats": {
          "earnedRebateTickets": 3,
          "endCharge": 3,
          "experiencedPURate": 1.3071895424836601,
          "experiencedThreeStarRate": 2.6143790849673203,
          "hardPities": 0,
          "limitedEndCharge": 3,
          "paidPulls": 133,
          "permanentEndCharge": 0,
          "pickupClassifications": [
            {
              "studentId": "hifumi_racing",
              "charge": 100,
              "classification": "softWin",
              "kind": "limited"
            },
            {
              "studentId": "azusa_racing",
              "charge": 58,
              "classification": "beforeSoftPity",
              "kind": "limited"
            }
          ],
          "pickupCount": 2,
          "pools": {
            "limited": {
              "endCharge": 3,
              "hardPities": 0,
              "pickupCount": 2,
              "pulls": 153,
              "softPityLosses": 0,
              "softPityWins": 1,
              "startCharge": 8
            },
            "permanent": {
              "endCharge": 0,
              "hardPities": 0,
              "pickupCount": 0,
              "pulls": 0,
              "softPityLosses": 0,
              "softPityWins": 0,
              "startCharge": 0
            }
          },
          "pullsPerPU": 76.5,
          "pullsPerThreeStar": 38.25,
          "pyroxenesSaved": 2400,
          "pyroxenesSpent": 15960,
          "rebatePulls": 20,
          "rebateTicketsUsed": 2,
          "remainingRebateTickets": 1,
          "softPityLosses": 0,
          "softPityWins": 1
        },
        "threeStarCount": 4,
        "totalPulls": 153
      },
      {
        "id": "m97dzgewm2eyqcbw014ar1hfg98fvedh",
        "createdAt": "2026-10-07T10:38:23.314Z",
        "name": "Tsumugi",
        "computedStats": {
          "earnedRebateTickets": 0,
          "endCharge": 0,
          "experiencedPURate": 3.3333333333333335,
          "experiencedThreeStarRate": 6.666666666666667,
          "hardPities": 0,
          "limitedEndCharge": 8,
          "paidPulls": 20,
          "permanentEndCharge": 0,
          "pickupClassifications": [
            {
              "studentId": "tsumugi",
              "charge": 100,
              "classification": "softWin",
              "kind": "permanent"
            }
          ],
          "pickupCount": 1,
          "pools": {
            "limited": {
              "endCharge": 8,
              "hardPities": 0,
              "pickupCount": 0,
              "pulls": 0,
              "softPityLosses": 0,
              "softPityWins": 0,
              "startCharge": 8
            },
            "permanent": {
              "endCharge": 0,
              "hardPities": 0,
              "pickupCount": 1,
              "pulls": 30,
              "softPityLosses": 0,
              "softPityWins": 1,
              "startCharge": 70
            }
          },
          "pullsPerPU": 30,
          "pullsPerThreeStar": 15,
          "pyroxenesSaved": 1200,
          "pyroxenesSpent": 2400,
          "rebatePulls": 10,
          "rebateTicketsUsed": 1,
          "remainingRebateTickets": 0,
          "softPityLosses": 0,
          "softPityWins": 1
        },
        "date": 1791369461069,
        "isFestBanner": false,
        "isLatest": true,
        "kind": "permanent",
        "limitedPulls": 0,
        "limitedStartCharge": 8,
        "permanentPulls": 30,
        "permanentStartCharge": 70,
        "pickupsObtained": [
          {
            "studentId": "tsumugi",
            "charge": 100,
            "kind": "permanent"
          }
        ],
        "rebateTicketsFromPreviousSession": 1,
        "rebateTicketsUsed": 1,
        "recruitmentAccountId": "m575f032hbdgstqydc8qbfx4318d039r",
        "startCharge": 70,
        "stats": {
          "earnedRebateTickets": 0,
          "endCharge": 0,
          "experiencedPURate": 3.3333333333333335,
          "experiencedThreeStarRate": 6.666666666666667,
          "hardPities": 0,
          "limitedEndCharge": 8,
          "paidPulls": 20,
          "permanentEndCharge": 0,
          "pickupClassifications": [
            {
              "studentId": "tsumugi",
              "charge": 100,
              "classification": "softWin",
              "kind": "permanent"
            }
          ],
          "pickupCount": 1,
          "pools": {
            "limited": {
              "endCharge": 8,
              "hardPities": 0,
              "pickupCount": 0,
              "pulls": 0,
              "softPityLosses": 0,
              "softPityWins": 0,
              "startCharge": 8
            },
            "permanent": {
              "endCharge": 0,
              "hardPities": 0,
              "pickupCount": 1,
              "pulls": 30,
              "softPityLosses": 0,
              "softPityWins": 1,
              "startCharge": 70
            }
          },
          "pullsPerPU": 30,
          "pullsPerThreeStar": 15,
          "pyroxenesSaved": 1200,
          "pyroxenesSpent": 2400,
          "rebatePulls": 10,
          "rebateTicketsUsed": 1,
          "remainingRebateTickets": 0,
          "softPityLosses": 0,
          "softPityWins": 1
        },
        "threeStarCount": 2,
        "totalPulls": 30
      }
    ]
  }
}
```

## Examples

### cURL

```bash
curl -X PATCH https://ba.joexyz.online/api/v1/me/recruitment/accounts/:accountId \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer {{api_key}}' \
  --data-raw '{
  "name": "JP Account"
}'
```

### JavaScript

```javascript
const response = await fetch("https://ba.joexyz.online/api/v1/me/recruitment/accounts/:accountId", {
  method: "PATCH",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer {{api_key}}",
  },
  body: JSON.stringify({
    "name": "JP Account"
  }),
});

const data = await response.json();
console.log(data);
```

### Python

```python
import requests

url = "https://ba.joexyz.online/api/v1/me/recruitment/accounts/:accountId"
headers = {
    "Authorization": "Bearer {{api_key}}",
}
payload = {
    "name": "JP Account",
}

response = requests.patch(url, headers=headers, json=payload)
print(response.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"strings"
)

func main() {
	body := strings.NewReader(`{
  "name": "JP Account"
}`)

	req, err := http.NewRequest("PATCH", "https://ba.joexyz.online/api/v1/me/recruitment/accounts/:accountId", body)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Content-Type", "application/json")
	req.Header.Set("Authorization", "Bearer {{api_key}}")

	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()

	data, _ := io.ReadAll(res.Body)
	fmt.Println(string(data))
}
```
