# Update SSR Port

Update port for the Node application(SSR) on a Node Stack server.

# HTTP Request:

PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/node-deployment/ssr-port

# Parameter:

Parameter Required Type Description
port No Numeric Specifies the port number.

# Curl Request example:

curl --request PATCH \
  --url "http://api.serveravatar.com/organizations/1/servers/13/applications/228/node-deployment/ssr-port" \
  --header 'content-type: application/json' \
  --header 'accept: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
    "port": 8000
  }'

# Response:

# Port Updated

  • 200 (Ok)
{
  "message": "Port updated successfully!"
}

# Node Deployment Not Found

  • 404 (Not Found)
{
    "message": "Node deployment not found for the application."
}

# Server Error

  • 500 (Internal Server Error)
{
    "message": "An error occurred while updating port."
}
Last Updated: 6/20/2024, 10:04:25 AM