Update a reply server

PUT /api/v1/reply-servers/{replyServer}

Performs PUT on /v1/reply-servers/{replyServer}.

Request

Bearer token required servers.permissions.can_edit_reply_servers

Path parameters

replyServer string required

Responses

All responses are JSON. Errors follow a consistent shape.

200 OK
401 Unauthenticated — missing or invalid API token
404 Not found
422 Validation error
curl -X PUT "https://getmailpurse.com/api/v1/reply-servers/1" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example"
}'
<?php
$response = \Http::withToken('YOUR_API_TOKEN')
    ->acceptJson()
    ->put('https://getmailpurse.com/api/v1/reply-servers/1',
    {
  "name": "Example"
});

$data = $response->json();
const res = await fetch('https://getmailpurse.com/api/v1/reply-servers/1', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_API_TOKEN',
    'Accept': 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
  "name": "Example"
}),
});
const data = await res.json();
import requests

res = requests.request(
    'PUT',
    'https://getmailpurse.com/api/v1/reply-servers/1',
    headers={
        'Authorization': 'Bearer YOUR_API_TOKEN',
        'Accept': 'application/json',
    },
    json={
  "name": "Example"
},
)
data = res.json()

Try it out

Runs in your browser — nothing is proxied or logged.
This is a PUT request — it may create, modify or delete real data on your account.

                    

The request goes straight from your browser to this MailPurse instance. Your token is never sent anywhere else or stored.