Method: providers.trips.update
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
HTTP 요청
PUT https://fleetengine.googleapis.com/v1/{name=providers/*/trips/*}
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
name |
string
필수 항목입니다. providers/{provider}/trips/{trip} 형식이어야 합니다. 제공업체는 이 호출을 수행하는 서비스 계정이 구성원인 Google Cloud 프로젝트의 프로젝트 ID (예: sample-consumer-project )여야 합니다.
|
쿼리 매개변수
매개변수 |
header |
object (RequestHeader )
표준 Fleet Engine 요청 헤더입니다.
|
updateMask |
string (FieldMask format)
필수 항목입니다. 이동에서 업데이트할 필드를 나타내는 필드 마스크입니다. updateMask 에 필드가 하나 이상 포함되어야 합니다. 정규화된 필드 이름의 쉼표로 구분된 목록입니다. 예: "user.displayName,photo"
|
요청 본문
요청 본문에 Trip
의 인스턴스가 포함됩니다.
응답 본문
성공한 경우 응답 본문에 Trip
의 인스턴스가 포함됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-31(UTC)
[null,null,["최종 업데이트: 2025-08-31(UTC)"],[[["\u003cp\u003eThis endpoint updates trip data using an HTTP PUT request to the specified URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include path and query parameters, including a required \u003ccode\u003ename\u003c/code\u003e and \u003ccode\u003eupdateMask\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain the updated trip data in the \u003ccode\u003eTrip\u003c/code\u003e format, as defined in the provided link.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will also contain the updated \u003ccode\u003eTrip\u003c/code\u003e data in the response body.\u003c/p\u003e\n"],["\u003cp\u003eThe provider in the path parameter must be the Project ID of the Google Cloud Project of which the service account making the call is a member.\u003c/p\u003e\n"]]],["This describes updating trip data using a `PUT` request to a specific URL, formatted as `providers/*/trips/*`. The request requires a trip `name` as a path parameter. Mandatory query parameters include a request `header` and an `updateMask` to specify fields for modification. The request body contains the `Trip` instance to be updated and the response body returns a `Trip` object. The format of the trip path is specified, in addition to examples for `updateMask`.\n"],null,["# Method: providers.trips.update\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n\nUpdates trip data.\n\n### HTTP request\n\n`PUT https://fleetengine.googleapis.com/v1/{name=providers/*/trips/*}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Must be in the format `providers/{provider}/trips/{trip}`. The provider must be the Project ID (for example, `sample-consumer-project`) of the Google Cloud Project of which the service account making this call is a member. |\n\n### Query parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `header` | `object (`[RequestHeader](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/RequestHeader)`)` The standard Fleet Engine request header. |\n| `updateMask` | `string (`[FieldMask](https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask)` format)` Required. The field mask indicating which fields in Trip to update. The `updateMask` must contain at least one field. This is a comma-separated list of fully qualified names of fields. Example: `\"user.displayName,photo\"`. |\n\n### Request body\n\nThe request body contains an instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip).\n\n### Response body\n\nIf successful, the response body contains an instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip)."]]