Documentation
Servers

Update Server

Updates an existing server

PUT
/
api
/
developer
/
projects
/
{projectId}
/
servers
/
{serverId}
curl -L -X PUT 'https://flux.postacksolutions.com/api/developer/projects/{projectId}/servers/{serverId}' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Updated Server Name",
    "description": "Updated description"
  }'
200
{
  "server": {
    "id": "server_abc123xyz",
    "name": "Updated Server Name",
    "description": "Updated description",
    "projectId": "proj_abc123xyz",
    "createdAt": "2024-01-15T10:30:00Z",
    "updatedAt": "2024-01-15T11:45:00Z",
    "isActive": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your developer access token.

Path Parameters

projectId
string
required

The unique identifier of the project

serverId
string
required

The unique identifier of the server

Request Body

name
string

The updated name of the server (optional)

description
string

The updated description of the server (optional)

Response

200
application/json

Successful response

server
object

The updated server object