mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-11-04 09:25:15 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			104 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			104 lines
		
	
	
		
			2.5 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
{
 | 
						|
	"operationId": "updateStream",
 | 
						|
	"summary": "Update a Stream",
 | 
						|
	"tags": ["streams"],
 | 
						|
	"security": [
 | 
						|
		{
 | 
						|
			"bearerAuth": ["streams.manage"]
 | 
						|
		}
 | 
						|
	],
 | 
						|
	"parameters": [
 | 
						|
		{
 | 
						|
			"in": "path",
 | 
						|
			"name": "streamID",
 | 
						|
			"description": "The ID of the Stream",
 | 
						|
			"schema": {
 | 
						|
				"type": "integer",
 | 
						|
				"minimum": 1
 | 
						|
			},
 | 
						|
			"required": true,
 | 
						|
			"example": 2
 | 
						|
		}
 | 
						|
	],
 | 
						|
	"requestBody": {
 | 
						|
		"description": "Stream Payload",
 | 
						|
		"required": true,
 | 
						|
		"content": {
 | 
						|
			"application/json": {
 | 
						|
				"schema": {
 | 
						|
					"type": "object",
 | 
						|
					"additionalProperties": false,
 | 
						|
					"minProperties": 1,
 | 
						|
					"properties": {
 | 
						|
						"incoming_port": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/incoming_port"
 | 
						|
						},
 | 
						|
						"forwarding_host": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/forwarding_host"
 | 
						|
						},
 | 
						|
						"forwarding_port": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/forwarding_port"
 | 
						|
						},
 | 
						|
						"tcp_forwarding": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/tcp_forwarding"
 | 
						|
						},
 | 
						|
						"udp_forwarding": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/udp_forwarding"
 | 
						|
						},
 | 
						|
						"certificate_id": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/certificate_id"
 | 
						|
						},
 | 
						|
						"meta": {
 | 
						|
							"$ref": "../../../../components/stream-object.json#/properties/meta"
 | 
						|
						}
 | 
						|
					}
 | 
						|
				}
 | 
						|
			}
 | 
						|
		}
 | 
						|
	},
 | 
						|
	"responses": {
 | 
						|
		"200": {
 | 
						|
			"description": "200 response",
 | 
						|
			"content": {
 | 
						|
				"application/json": {
 | 
						|
					"examples": {
 | 
						|
						"default": {
 | 
						|
							"value": {
 | 
						|
								"id": 1,
 | 
						|
								"created_on": "2024-10-09T02:33:45.000Z",
 | 
						|
								"modified_on": "2024-10-09T02:33:45.000Z",
 | 
						|
								"owner_user_id": 1,
 | 
						|
								"incoming_port": 9090,
 | 
						|
								"forwarding_host": "router.internal",
 | 
						|
								"forwarding_port": 80,
 | 
						|
								"tcp_forwarding": true,
 | 
						|
								"udp_forwarding": false,
 | 
						|
								"meta": {
 | 
						|
									"nginx_online": true,
 | 
						|
									"nginx_err": null
 | 
						|
								},
 | 
						|
								"enabled": true,
 | 
						|
								"owner": {
 | 
						|
									"id": 1,
 | 
						|
									"created_on": "2024-10-09T02:33:16.000Z",
 | 
						|
									"modified_on": "2024-10-09T02:33:16.000Z",
 | 
						|
									"is_disabled": false,
 | 
						|
									"email": "admin@example.com",
 | 
						|
									"name": "Administrator",
 | 
						|
									"nickname": "Admin",
 | 
						|
									"avatar": "",
 | 
						|
									"roles": ["admin"]
 | 
						|
								},
 | 
						|
								"certificate_id": 0
 | 
						|
							}
 | 
						|
						}
 | 
						|
					},
 | 
						|
					"schema": {
 | 
						|
						"$ref": "../../../../components/stream-object.json"
 | 
						|
					}
 | 
						|
				}
 | 
						|
			}
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |