Submit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the state of "enqueued" means that the request succeeded.
HTTP request
POST https://apigee.googleapis.com/v1/{parent=organizations/*}/hostQueries
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eSubmitting a query at the host level is done via a POST request to \u003ccode\u003ehttps://apigee.googleapis.com/v1/{parent=organizations/*}/hostQueries\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA successful query submission returns a 201 status code along with an ID and an "enqueued" state.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter of the format \u003ccode\u003eorganizations/{org}\u003c/code\u003e, and the \u003ccode\u003eapigee.hostqueries.create\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be an instance of \u003ccode\u003eQuery\u003c/code\u003e, and if the request is successful, the response body will contain an instance of \u003ccode\u003eAsyncQuery\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: organizations.hostQueries.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nSubmit a query at host level to be processed in the background. If the submission of the query succeeds, the API returns a 201 status and an ID that refer to the query. In addition to the HTTP status 201, the `state` of \"enqueued\" means that the request succeeded.\n\n### HTTP request\n\n`POST https://apigee.googleapis.com/v1/{parent=organizations/*}/hostQueries`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [Query](/apigee/docs/reference/apis/apigee/rest/v1/Query).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AsyncQuery](/apigee/docs/reference/apis/apigee/rest/v1/AsyncQuery).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`"]]