Method: providers.trips.create
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
Fleet Engine에서 이동을 만들고 새 이동을 반환합니다.
HTTP 요청
POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
parent |
string
필수 항목입니다. providers/{provider} 형식이어야 합니다. 제공업체는 이 호출을 수행하는 서비스 계정이 구성원인 Google Cloud 프로젝트의 프로젝트 ID (예: sample-cloud-project )여야 합니다.
|
쿼리 매개변수
매개변수 |
header |
object (RequestHeader )
표준 Fleet Engine 요청 헤더입니다.
|
tripId |
string
필수 항목입니다. 고유한 이동 ID입니다. 다음과 같은 제한사항이 적용됩니다.
- 유효한 유니코드 문자열이어야 합니다.
- 최대 길이는 64자(영문 기준)로 제한됩니다.
- 유니코드 정규화 양식 C에 따라 정규화됩니다.
- '/', ':', '?', ',', '#' ASCII 문자는 포함할 수 없습니다.
|
요청 본문
요청 본문에 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 enables the creation of a new trip within the Fleet Engine system, returning the trip details upon successful creation.\u003c/p\u003e\n"],["\u003cp\u003eThe request must be a POST request to the specified URL, including necessary path and query parameters such as provider ID and a unique trip ID.\u003c/p\u003e\n"],["\u003cp\u003eThe request body should contain a Trip object with relevant trip details as outlined in the provided documentation.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return the newly created Trip object, providing confirmation and details of the initiated trip.\u003c/p\u003e\n"]]],[],null,["# Method: providers.trips.create\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\nCreates a trip in the Fleet Engine and returns the new trip.\n\n### HTTP request\n\n`POST https://fleetengine.googleapis.com/v1/{parent=providers/*}/trips`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. Must be in the format `providers/{provider}`. The provider must be the Project ID (for example, `sample-cloud-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| `tripId` | `string` Required. Unique Trip ID. Subject to the following restrictions: - Must be a valid Unicode string. - Limited to a maximum length of 64 characters. - Normalized according to [Unicode Normalization Form C](http://www.unicode.org/reports/tr15/). - May not contain any of the following ASCII characters: '/', ':', '?', ',', or '#'. |\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 a newly created instance of [Trip](/maps/documentation/mobility/fleet-engine/reference/trips/rest/v1/providers.trips#Trip)."]]