連絡先メールアドレスの追加または更新
Adds or updates a contact email to the player’s profile.
POST
/
Client
/
AddOrUpdateContactEmail
Add Or Update Contact Email
curl --request POST \
--url https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"EmailAddress": "theuser@domain.com"
}
'import requests
url = "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail"
payload = { "EmailAddress": "theuser@domain.com" }
headers = {
"X-Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Authorization': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({EmailAddress: 'theuser@domain.com'})
};
fetch('https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'EmailAddress' => 'theuser@domain.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail"
payload := strings.NewReader("{\n \"EmailAddress\": \"theuser@domain.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail")
.header("X-Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"EmailAddress\": \"theuser@domain.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"EmailAddress\": \"theuser@domain.com\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "OK",
"data": {}
}{
"code": 123,
"errorCode": 123,
"status": "<string>",
"error": "<string>",
"errorMessage": "<string>",
"errorDetails": {}
}承認
This API requires a client session ticket, available from any Client Login function.
ボディ
application/json
This API adds a contact email to the player's profile. If the player's profile already contains a contact email, it will update the contact email to the email address specified.
This API adds a contact email to the player's profile. If the player's profile already contains a contact email, it will update the contact email to the email address specified.
最終更新日 2026年10月6日
このページは役に立ちましたか?
⌘I
Add Or Update Contact Email
curl --request POST \
--url https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail \
--header 'Content-Type: application/json' \
--header 'X-Authorization: <api-key>' \
--data '
{
"EmailAddress": "theuser@domain.com"
}
'import requests
url = "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail"
payload = { "EmailAddress": "theuser@domain.com" }
headers = {
"X-Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Authorization': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({EmailAddress: 'theuser@domain.com'})
};
fetch('https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'EmailAddress' => 'theuser@domain.com'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail"
payload := strings.NewReader("{\n \"EmailAddress\": \"theuser@domain.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail")
.header("X-Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"EmailAddress\": \"theuser@domain.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{titleId}.playfabapi.com/Client/AddOrUpdateContactEmail")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"EmailAddress\": \"theuser@domain.com\"\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "OK",
"data": {}
}{
"code": 123,
"errorCode": 123,
"status": "<string>",
"error": "<string>",
"errorMessage": "<string>",
"errorDetails": {}
}