이 엔드포인트를 사용하여 새 조직을 만듭니다.
제출한 조직 정보는 DigiCert에서 유효성을 검사하여 인증서에 나타날 수 있습니다.
curl -X POST \
https://www.digicert.com/services/v2/organization \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"name": "Epigyne Unwieldiness llc",
"assumed_name": "Epigyne Unwieldiness",
"country": "us",
"address": "932 Prospect Street",
"address2": "Floor 08",
"city": "Minneapolis",
"state": "mn",
"zip": "40849",
"telephone": "666-186-6450",
"organization_contact": {
"first_name": "Gia",
"last_name": "Booth",
"job_title": "Clinical Laboratory Technician",
"email": "gia.booth@inbox.com",
"telephone": "666-186-6450",
"telephone_extension": "736"
}
}'
import requests
url = "https://www.digicert.com/services/v2/organization"
payload = "{\n \"name\": \"Epigyne Unwieldiness llc\",\n \"assumed_name\": \"Epigyne Unwieldiness\",\n \"country\": \"us\",\n \"address\": \"932 Prospect Street\",\n \"address2\": \"Floor 08\",\n \"city\": \"Minneapolis\",\n \"state\": \"mn\",\n \"zip\": \"40849\",\n \"telephone\": \"666-186-6450\",\n \"organization_contact\": {\n \"first_name\": \"Gia\",\n \"last_name\": \"Booth\",\n \"job_title\": \"Clinical Laboratory Technician\",\n \"email\": \"gia.booth@inbox.com\",\n \"telephone\": \"666-186-6450\",\n \"telephone_extension\": \"736\"\n }\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://www.digicert.com/services/v2/organization"
payload := strings.NewReader("{\n \"name\": \"Epigyne Unwieldiness llc\",\n \"assumed_name\": \"Epigyne Unwieldiness\",\n \"country\": \"us\",\n \"address\": \"932 Prospect Street\",\n \"address2\": \"Floor 08\",\n \"city\": \"Minneapolis\",\n \"state\": \"mn\",\n \"zip\": \"40849\",\n \"telephone\": \"666-186-6450\",\n
\"organization_contact\": {\n \"first_name\": \"Gia\",\n \"last_name\": \"Booth\",\n \"job_title\": \"Clinical Laboratory Technician\",\n \"email\": \"gia.booth@inbox.com\",\n \"telephone\": \"666-186-6450\",\n \"telephone_extension\": \"736\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-DC-DEVKEY", "{{api_key}}")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
var request = require("request");
var options = { method: 'POST',
url: 'https://www.digicert.com/services/v2/organization',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ name: 'Epigyne Unwieldiness llc',
assumed_name: 'Epigyne Unwieldiness',
country: 'us',
address: '932 Prospect Street',
address2: 'Floor 08',
city: 'Minneapolis',
state: 'mn',
zip: '40849',
telephone: '666-186-6450',
organization_contact:
{ first_name: 'Gia',
last_name: 'Booth',
job_title: 'Clinical Laboratory Technician',
email: 'gia.booth@inbox.com',
telephone: '666-186-6450',
telephone_extension: '736' } },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
{
"id": 112236
}
이름 | 필수/옵션 | 유형 | 설명 |
---|---|---|---|
name | 필수 | string | 조직의 법인명입니다. |
assumed_name | 옵션 | string |
조직의 공개 이름입니다. DBA 이름이라고도 합니다. |
country | 필수 | string | 조직이 위치한 국가입니다. |
address | 필수 | string | 조직의 주소입니다. |
address2 | 옵션 | string | |
city | 필수 | string | 조직이 위치한 도시입니다. |
state | 필수 | string | 조직이 위치한 주/도입니다. |
zip | 필수 | string | 조직의 우편 번호입니다. |
telephone | 필수 | string | 조직 전화 번호입니다. |
organization_contact | 필수 | object | 조직 연락처 정보입니다. |
.. first_name | 필수 | string | 연락처의 이름입니다. |
.. last_name | 필수 | string | 연락처의 성입니다. |
.. job_title | 옵션 | string |
연락처의 직함입니다. 연락처가 EV 승인자가 되려면 필수입니다. |
필수 | string | 연락처에 연락하기 위해 사용하는 이메일 주소입니다. | |
.. telephone | 필수 | string |
연락처에 연락하기 위해 사용하는 전환 번호입니다. 연락처가 EV 승인자가 되려면 필수입니다. |
.. telephone_extension | 옵션 | string | 연락처의 전화 내선 번호입니다. |
이름 | 유형 | 설명 |
---|---|---|
id | int | 새 조직의 ID입니다. |