이 엔드포인트를 사용하여 사용자의 프로필 정보를 업데이트합니다.
사용자의 역할을 변경하려면 사용자 역할 변경 엔드포인트를 사용합니다.
curl -X PUT \
https://www.digicert.com/services/v2/user/{{user_id}} \
-H 'Content-Type: application/json' \
-H 'X-DC-DEVKEY: {{api_key}}' \
-d '{
"username": "john.smith@digicert.com",
"first_name": "John",
"last_name": "Smith",
"email": "john.smith@digicert.com",
"job_title": "Senior Admin",
"telephone": "1-555-555-5555"
}'
import requests
url = "https://www.digicert.com/services/v2/user/{{user_id}}"
payload = "{\n \"username\": \"john.smith@digicert.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\",\n \"email\": \"john.smith@digicert.com\",\n \"job_title\": \"Senior Admin\",\n \"telephone\": \"1-555-555-5555\"\n}"
headers = {
'X-DC-DEVKEY': "{{api_key}}",
'Content-Type': "application/json"
}
response = requests.request("PUT", 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/user/{{user_id}}"
payload := strings.NewReader("{\n \"username\": \"john.smith@digicert.com\",\n \"first_name\": \"John\",\n \"last_name\": \"Smith\",\n \"email\": \"john.smith@digicert.com\",\n \"job_title\": \"Senior Admin\",\n \"telephone\": \"1-555-555-5555\"\n}")
req, _ := http.NewRequest("PUT", 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: 'PUT',
url: 'https://www.digicert.com/services/v2/user/{{user_id}}',
headers:
{ 'Content-Type': 'application/json',
'X-DC-DEVKEY': '{{api_key}}' },
body:
{ username: 'john.smith@digicert.com',
first_name: 'John',
last_name: 'Smith',
email: 'john.smith@digicert.com',
job_title: 'Senior Admin',
telephone: '1-555-555-5555' },
json: true };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
// empty
이름 | 필수/옵션 | 유형 | 설명 |
---|---|---|---|
username | 필수 | string |
사용자 프로필을 업데이트할 사용자 이름입니다. 유효한 문자: a—z A—Z 0—9 @ - _ + |
first_name | 필수 | string |
사용자 프로필을 업데이트할 이름(성 제외)입니다. 글자 제한: 128 |
last_name | 필수 | string |
사용자 프로필을 업데이트할 성입니다. 글자 제한: 128 |
필수 | string |
사용자 프로필을 업데이트할 이메일 주소입니다. 유효한 이메일 주소만 수락합니다. 글자 제한: 255 |
|
job_title | 옵션 | string |
사용자 프로필을 업데이트할 직함입니다. EV 승인자가 되려는 사용자에 필수입니다. 글자 제한: 64 |
telephone | 옵션 | string |
사용자 프로필을 업데이트할 전화 번호입니다. EV 승인자가 되려는 사용자에 필수입니다. 글자 제한: 64 |