Skip to Content
OpenPerf

Code mappings

Update a code mapping

PATCH
/api/v1/code-mappings/{id}

Updates an existing code mapping. Send only the fields to change.

Authorization

cookie
cookiebetter-auth.session_token<token>

Dashboard session cookie

Path Parameters

id*string

Request Body

application/json
  1. body
repositoryId?string
Length1 <= length <= 64
stackRoot?string
Lengthlength <= 512
sourceRoot?string
Lengthlength <= 512

Response Body

application/json
  1. response
id*string
projectId*string
repository*
stackRoot*string
sourceRoot*string
createdAt*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.example.com/api/v1/code-mappings/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "projectId": "string",
  "repository": {
    "id": "string",
    "integrationId": "string",
    "provider": "github",
    "name": "string",
    "url": "http://example.com",
    "defaultBranch": "string"
  },
  "stackRoot": "string",
  "sourceRoot": "string",
  "createdAt": "2019-08-24T14:15:22Z"
}