Skip to Content
OpenPerf

Source maps

Upload source maps

POST
/api/v1/projects/{projectId}/releases/{version}/source-maps

Uploads source map files for one release of a project as multipart/form-data. urlPrefix says where the built files are served from. The openperf sourcemaps upload command calls this endpoint. Needs a token that can write.

Authorization

headerAuthorizationBearer <opaque>

Organization API token (opt_…)

Path Parameters

projectId*string
version*string
Match^[^\s/]+$
Length1 <= length <= 200

Query Parameters

urlPrefix?string
Length1 <= length <= 512
Default"~/"

Request Body

multipart/form-data
  1. body
files?array<unknown>

Response Body

application/json
  1. response
[index: integer]?
Example Request
curl -X POST 'https://api.example.com/api/v1/projects/string/releases/string/source-maps' \
  -H 'Authorization: Bearer <token>'
Example Response
[
  {
    "id": "string",
    "file": "string",
    "size": 0,
    "sha256": "string",
    "createdAt": "2019-08-24T14:15:22Z"
  }
]