このエンドポイントを使用して、新しい組織を作成します。
提出された組織情報は、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 | 任意 | 文字列 | |
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 |