

Terjemahan disediakan oleh mesin penerjemah. Jika konten terjemahan yang diberikan bertentangan dengan versi bahasa Inggris aslinya, utamakan versi bahasa Inggris.

# BatchPutPropertyValues
<a name="API_BatchPutPropertyValues"></a>

Menetapkan nilai untuk beberapa properti deret waktu.

## Minta Sintaks
<a name="API_BatchPutPropertyValues_RequestSyntax"></a>

```
POST /workspaces/workspaceId/entity-properties HTTP/1.1
Content-type: application/json

{
   "entries": [ 
      { 
         "entityPropertyReference": { 
            "componentName": "string",
            "componentPath": "string",
            "entityId": "string",
            "externalIdProperty": { 
               "string" : "string" 
            },
            "propertyName": "string"
         },
         "propertyValues": [ 
            { 
               "time": "string",
               "timestamp": number,
               "value": { 
                  "booleanValue": boolean,
                  "doubleValue": number,
                  "expression": "string",
                  "integerValue": number,
                  "listValue": [ 
                     "DataValue"
                  ],
                  "longValue": number,
                  "mapValue": { 
                     "string" : "DataValue"
                  },
                  "relationshipValue": { 
                     "targetComponentName": "string",
                     "targetEntityId": "string"
                  },
                  "stringValue": "string"
               }
            }
         ]
      }
   ]
}
```

## Parameter Permintaan URI
<a name="API_BatchPutPropertyValues_RequestParameters"></a>

Permintaan menggunakan parameter URI berikut.

 ** [workspaceId](#API_BatchPutPropertyValues_RequestSyntax) **   <a name="tm-BatchPutPropertyValues-request-uri-workspaceId"></a>
ID ruang kerja yang berisi properti yang akan disetel.  
Batasan Panjang: Panjang minimum 1. Panjang maksimum 128.  
Pola: `[a-zA-Z_0-9][a-zA-Z_\-0-9]*[a-zA-Z0-9]+`   
Wajib: Ya

## Isi Permintaan
<a name="API_BatchPutPropertyValues_RequestBody"></a>

Permintaan menerima data berikut dalam format JSON.

 ** [entries](#API_BatchPutPropertyValues_RequestSyntax) **   <a name="tm-BatchPutPropertyValues-request-entries"></a>
Objek yang memetakan string ke entri nilai properti untuk disetel. Setiap string dalam pemetaan harus unik untuk objek ini.  
Tipe: Array objek [PropertyValueEntry](API_PropertyValueEntry.md)  
Anggota Array: Jumlah minimum 1 item. Jumlah maksimum 10 item.  
Wajib: Ya

## Sintaksis Respons
<a name="API_BatchPutPropertyValues_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "errorEntries": [ 
      { 
         "errors": [ 
            { 
               "entry": { 
                  "entityPropertyReference": { 
                     "componentName": "string",
                     "componentPath": "string",
                     "entityId": "string",
                     "externalIdProperty": { 
                        "string" : "string" 
                     },
                     "propertyName": "string"
                  },
                  "propertyValues": [ 
                     { 
                        "time": "string",
                        "timestamp": number,
                        "value": { 
                           "booleanValue": boolean,
                           "doubleValue": number,
                           "expression": "string",
                           "integerValue": number,
                           "listValue": [ 
                              "DataValue"
                           ],
                           "longValue": number,
                           "mapValue": { 
                              "string" : "DataValue"
                           },
                           "relationshipValue": { 
                              "targetComponentName": "string",
                              "targetEntityId": "string"
                           },
                           "stringValue": "string"
                        }
                     }
                  ]
               },
               "errorCode": "string",
               "errorMessage": "string"
            }
         ]
      }
   ]
}
```

## Elemen Respons
<a name="API_BatchPutPropertyValues_ResponseElements"></a>

Jika tindakan berhasil, layanan mengirimkan kembali respons HTTP 200.

Layanan mengembalikan data berikut dalam format JSON.

 ** [errorEntries](#API_BatchPutPropertyValues_ResponseSyntax) **   <a name="tm-BatchPutPropertyValues-response-errorEntries"></a>
Entri yang menyebabkan kesalahan dalam operasi batch put.  
Tipe: Array objek [BatchPutPropertyErrorEntry](API_BatchPutPropertyErrorEntry.md)  
Anggota Array: Jumlah minimum 1 item. Jumlah maksimum 10 item.

## Kesalahan
<a name="API_BatchPutPropertyValues_Errors"></a>

Untuk informasi tentang kesalahan yang umum untuk semua tindakan, lihat [Jenis Kesalahan Umum](CommonErrors.md).

 ** InternalServerException **   
Terjadi kesalahan tak terduga.  
Kode Status HTTP: 500

 ** ResourceNotFoundException **   
Sumber daya tidak ditemukan.  
Kode Status HTTP: 404

 ** ThrottlingException **   
Tarif melebihi batas.  
Kode Status HTTP: 429

 ** ValidationException **   
Gagal  
Kode Status HTTP: 400

## Lihat Juga
<a name="API_BatchPutPropertyValues_SeeAlso"></a>

Untuk informasi selengkapnya tentang penggunaan API ini di salah satu bahasa khusus AWS SDKs, lihat berikut ini:
+  [AWS Antarmuka Baris Perintah V2](https://docs.aws.amazon.com/goto/cli2/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK untuk V3 JavaScript ](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK para Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK untuk Python](https://docs.aws.amazon.com/goto/boto3/iottwinmaker-2021-11-29/BatchPutPropertyValues) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/iottwinmaker-2021-11-29/BatchPutPropertyValues) 