# Update Nginx Configuration
Update Nginx configuration for the Node application on a Node Stack server.
# HTTP Request:
PATCH https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/node-deployment/nginx-conf
# Parameters:
Parameter | Required | Type | Description |
---|---|---|---|
config_content | Yes | String | Updated Nginx configuration content. |
# Curl Request example:
curl --request PATCH \
--url "https://api.serveravatar.com/organizations/1/servers/13/applications/223/node-deployment/nginx-conf" \
--header 'content-type: application/json' \
--header 'accept: application/json' \
--header 'Authorization: <YOUR API TOKEN>' \
--data '{
"config_content": "Updated Nginx configuration content..."
}'
# Response:
# Nginx Configuration Updated
- 200 (Ok)
{
"message": "Nginx Configuration 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 Nginx configuration."
}