LoginSignup
0
0

Salesforce REST APIをcurlで試す その2 - User.Email変更

Posted at

https://qiita.com/pilot/items/baf71a0ad7ceb3a7965c の続き

以下のようなJSONファイルを作る

{
  "Email" : "XXX@example.com"
}

以下、curlコマンド

curl --ssl-no-revoke --trace-ascii - -X PATCH "https://<ドメイン>/services/data/v60.0/sobjects/User/<当該ユーザーレコードのId>" -H "Authorization: Bearer <アクセストークン>" -H "Content-Type: application/json" -d @<JSONファイル名>"

以下、実行結果抜粋

<= Recv header, 25 bytes (0x19)
0000: HTTP/1.1 204 No Content
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0