mirror of
				https://github.com/NginxProxyManager/nginx-proxy-manager.git
				synced 2025-10-31 15:53:33 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
| 	"operationId": "createCertificate",
 | |
| 	"summary": "Create a new Certificate",
 | |
| 	"tags": [
 | |
| 		"Certificates"
 | |
| 	],
 | |
| 	"requestBody": {
 | |
| 		"description": "Certificate to create",
 | |
| 		"required": true,
 | |
| 		"content": {
 | |
| 			"application/json": {
 | |
| 				"schema": "{{schema.CreateCertificate}}"
 | |
| 			}
 | |
| 		}
 | |
| 	},
 | |
| 	"responses": {
 | |
| 		"201": {
 | |
| 			"description": "201 response",
 | |
| 			"content": {
 | |
| 				"application/json": {
 | |
| 					"schema": {
 | |
| 						"required": [
 | |
| 							"result"
 | |
| 						],
 | |
| 						"properties": {
 | |
| 							"result": {
 | |
| 								"$ref": "#/components/schemas/CertificateObject"
 | |
| 							}
 | |
| 						}
 | |
| 					},
 | |
| 					"examples": {
 | |
| 						"default": {
 | |
| 							"value": {
 | |
| 								"result": {
 | |
| 									"id": 1,
 | |
| 									"created_on": 1604536109,
 | |
| 									"modified_on": 1604536109,
 | |
| 									"expires_on": null,
 | |
| 									"type": "dns",
 | |
| 									"user_id": 1,
 | |
| 									"certificate_authority_id": 2,
 | |
| 									"dns_provider_id": 1,
 | |
| 									"name": "test1.jc21.com.au",
 | |
| 									"domain_names": [
 | |
| 										"test1.jc21.com.au"
 | |
| 									],
 | |
| 									"is_ecc": 0,
 | |
| 									"status": "ready"
 | |
| 								}
 | |
| 							}
 | |
| 						}
 | |
| 					}
 | |
| 				}
 | |
| 			}
 | |
| 		}
 | |
| 	}
 | |
| } |