[[["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-07-28 UTC."],[[["\u003cp\u003eThis endpoint creates a new mapping rule within a specified conversion workspace using a POST request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter to identify the workspace and a \u003ccode\u003emappingRuleId\u003c/code\u003e query parameter to name the new rule.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include an instance of \u003ccode\u003eMappingRule\u003c/code\u003e, and the response will return a newly created \u003ccode\u003eMappingRule\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003erequestId\u003c/code\u003e query parameter can be used for request idempotency with specific character and length restrictions.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this operation requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.conversionWorkspaces.mappingRules.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- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreates a new mapping rule for a given conversion workspace.\n\n### HTTP request\n\n`POST https://datamigration.googleapis.com/v1/{parent}/mappingRules`\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [MappingRule](/database-migration/docs/reference/rest/v1/projects.locations.conversionWorkspaces.mappingRules#MappingRule).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [MappingRule](/database-migration/docs/reference/rest/v1/projects.locations.conversionWorkspaces.mappingRules#MappingRule).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]