次の方法で共有


Person Group Operations - Update Large Person Group Person

人物の name または userData を更新します。

PATCH {endpoint}/face/{apiVersion}/largepersongroups/{largePersonGroupId}/persons/{personId}

URI パラメーター

名前 / 必須 説明
apiVersion
path True

string

API バージョン

endpoint
path True

string

uri

サポートされている Cognitive Services エンドポイント (プロトコルとホスト名(例: https://{resource-name}.cognitiveservices.azure.com)。

largePersonGroupId
path True

string

コンテナーの ID。

Regex pattern: ^[a-z0-9-_]+$

personId
path True

string

uuid

ユーザーの ID。

要求本文

名前 説明
name

string

ユーザー定義名、最大長は 128 です。

userData

string

省略可能なユーザー定義データ。 長さは 16K を超えてはなりません。

応答

名前 説明
200 OK

要求は成功しました。

Other Status Codes

FaceErrorResponse

予期しないエラー応答。

Headers

x-ms-error-code: string

セキュリティ

Ocp-Apim-Subscription-Key

Azure AI Face サブスクリプションの秘密鍵。

Type: apiKey
In: header

AADToken

Azure Active Directory OAuth2 フロー

Type: oauth2
Flow: accessCode
Authorization URL: https://api.example.com/oauth2/authorize
Token URL: https://api.example.com/oauth2/token

Scopes

名前 説明
https://cognitiveservices.azure.com/.default

Update Person in LargePersonGroup

Sample Request

PATCH {endpoint}/face/v1.1-preview.1/largepersongroups/your_large_person_group_id/persons/25985303-c537-4467-b41d-bdb45cd95ca1

{
  "name": "your_large_person_group_person_name",
  "userData": "your_user_data"
}

Sample Response

定義

名前 説明
FaceError

error オブジェクト。 Face Service によって返されるエラー コードとメッセージの包括的な詳細については、次のリンクを参照してください。 https://aka.ms/face-error-codes-and-messages

FaceErrorResponse

エラーの詳細を含む応答。

FaceError

error オブジェクト。 Face Service によって返されるエラー コードとメッセージの包括的な詳細については、次のリンクを参照してください。 https://aka.ms/face-error-codes-and-messages

名前 説明
code

string

サーバー定義のエラー コードのセットの 1 つ。

message

string

エラーの人間が判読できる表現。

FaceErrorResponse

エラーの詳細を含む応答。

名前 説明
error

FaceError

error オブジェクト。