# Primäre Zugangsdaten — deaktiviert

`POST /account/api/v1/proxies/primary-credentials/change`

## Autorisierung

`Authorization: Bearer YOUR_ARNPROXY_API_KEY`

`Accept: application/json`

Erforderliche Berechtigung: `proxy_management`

`Content-Type: application/json`

> Primäre Zugangsdaten verwaltet der Administrator. Dieser alte Endpunkt bleibt zur Kompatibilität dokumentiert und liefert HTTP 403. Nutzen Sie zusätzliche Logins für unabhängigen Zugriff.

## Parameter

| Name | Typ | Erforderlich / Bedingt | Standardwert | Beschreibung |
|---|---|---|---|---|


## Anfragebeispiel

### curl

```curl
curl --silent --show-error --request POST \
+  --header "Authorization: Bearer $ARNPROXY_API_KEY" \
+  --header 'Content-Type: application/json' \
+  --data '{}' \
+  'https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change'
# This legacy operation is disabled: PRIMARY_CREDENTIAL_ADMIN_ONLY.
```

### javascript

```javascript
const response = await fetch('https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change', {
  method: 'POST',
  headers: { Authorization: 'Bearer ' + process.env.ARNPROXY_API_KEY, 'Content-Type': 'application/json' },
  body: '{}'
});
console.log(response.status); // 403 with sufficient authentication/scope
```

### python

```python
import os
import urllib.request
import urllib.error
request = urllib.request.Request('https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change', data=b'{}', headers={'Authorization': 'Bearer ' + os.environ['ARNPROXY_API_KEY'], 'Content-Type': 'application/json'}, method='POST')
try:
    with urllib.request.urlopen(request, timeout=20) as response:
        print(response.status)
except urllib.error.HTTPError as error:
    print(error.code)  # 403: primary credentials are administrator-managed
```

### php

```php
<?php
$curl = curl_init('https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change');
curl_setopt_array($curl, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => '{}', CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('ARNPROXY_API_KEY'), 'Content-Type: application/json'], CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 20]);
curl_exec($curl);
echo curl_getinfo($curl, CURLINFO_HTTP_CODE); // 403
curl_close($curl);
```

### java

```java
import java.net.URI;
import java.net.http.*;
// Inside your application method:
var request = HttpRequest.newBuilder(URI.create("https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change"))
    .header("Authorization", "Bearer " + System.getenv("ARNPROXY_API_KEY"))
    .header("Content-Type", "application/json")
    .POST(HttpRequest.BodyPublishers.ofString("{}"))
    .build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode()); // 403
```

### go

```go
package main
import ("fmt"; "net/http"; "os"; "strings"; "time")
func main() {
 req, err := http.NewRequest("POST", "https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change", strings.NewReader("{}"))
 if err != nil { panic(err) }
 req.Header.Set("Authorization", "Bearer " + os.Getenv("ARNPROXY_API_KEY"))
 req.Header.Set("Content-Type", "application/json")
 client := &http.Client{Timeout: 20 * time.Second}
 res, err := client.Do(req)
 if err != nil { panic(err) }
 defer res.Body.Close()
 fmt.Println(res.StatusCode) // 403
}
```

### csharp

```csharp
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("ARNPROXY_API_KEY"));
using var response = await client.PostAsync("https://www.arnproxy.com/account/api/v1/proxies/primary-credentials/change", new StringContent("{}", Encoding.UTF8, "application/json"));
Console.WriteLine((int)response.StatusCode); // 403
```

## Antworten · HTTP 403

```json
{
  "ok": false,
  "error": {
    "code": "PRIMARY_CREDENTIAL_ADMIN_ONLY"
  },
  "meta": {
    "request_id": "000000000000000000000001"
  }
}
```

| Name | Typ | Bedingt | Beschreibung |
|---|---|---|---|
| `ok` | boolean | — | Erfolgskennzeichen; bei false error.code prüfen. |
| `error` | object | — | Vorgangsspezifischer Wert für error. Rückgabetyp beibehalten und Verhaltenshinweise beachten. |
| `error.code` | string | — | Vorgangsspezifischer Wert für code. Rückgabetyp beibehalten und Verhaltenshinweise beachten. |
| `meta` | object | — | Metadaten zu Anfragezuordnung und Datenquelle. |
| `meta.request_id` | string | — | Kennung dieser HTTP-Anfrage, kein Vorgangsschlüssel oder Bestell-ID. |

## Verhalten & wichtige Hinweise

- Dieser alte Endpunkt liefert 403 PRIMARY_CREDENTIAL_ADMIN_ONLY. Kunden-API ändert keine primären Lieferdaten; für unabhängigen Zugriff extra_login_create nutzen.

Authentifizierung und Validierung können eine Anfrage vor der Ausführung ablehnen. Beachten Sie die Fehlerreferenz und bewahren Sie request_id für den Support auf. Senden Sie niemals Schlüssel oder Passwörter.

[Fehler & Limits](https://docs.arnproxy.com/de/api-v1/errors)
