Method: transitobject.insert
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
指定された ID とプロパティの交通機関オブジェクトを挿入します。
HTTP リクエスト
POST https://walletobjects.googleapis.com/walletobjects/v1/transitObject
この URL は gRPC Transcoding 構文を使用します。
リクエスト本文
リクエストの本文には TransitObject
のインスタンスが含まれます。
レスポンスの本文
成功した場合、レスポンスの本文には、新しく作成された TransitObject
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/wallet_object.issuer
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["Inserts a new transit object with a specified ID and properties using a POST request."],["The request body must contain a `TransitObject` in JSON format as defined in the provided reference."],["A successful response returns the newly created `TransitObject` in JSON format."],["Requires authorization with the `https://www.googleapis.com/auth/wallet_object.issuer` scope."]]],["A transit object is inserted using a POST request to `https://walletobjects.googleapis.com/walletobjects/v1/transitObject`. The request body must contain a `TransitObject` instance. Upon success, the response body returns the newly created `TransitObject`. This operation uses gRPC Transcoding syntax and requires the OAuth scope `https://www.googleapis.com/auth/wallet_object.issuer` for authorization.\n"]]