# Upload Weixin Mini Program SourceMap file

# Brief description

After uploading SourceMap, when JSError is found in the running test, the platform will try to match the JSError stack with SourceMap to locate the source code location information.

# Request URL
  • https://minitest.weixin.qq.com/thirdapi/source_map
# How to request
  • POST
# parameter
Parameter Name Required type
Introductions
token yes string From the top right corner of the page avatar pull down menu "my information," jump to my information page, view "my Token"
group_en_id yes string Project ID in English, available on item management / product management page
file yes FileStorage Sourcemap.zip file
appid no string Weixin Mini Program AppID, service provider project must pass;Non-vendor projects default to project binding AppID
upload_desc no string Sourcemap Upload Remarks
# Return an example
{
	"data": null,
	"msg": "upload sourcemap file success",
	"rtn": 0,
	"timestamp": 1614861228.1035924
}
# Remarks

Example code can be found in the documentation Interface example code (Python3)`

# More References