Skip to content

Perforce scmInstances

Request

Create a new instance of Perforce SCM.
url - URL in the format: <protocol>:<host>:<port>/<depot>,or else configured P4PORT will be taken a default url.
userName/password - userName/password or else configured P4USER/P4PASSWD will be taken a default.
branchSpec - branchSpec(<Depot>/<ProjectPath>)
changeListNum/label - changeListNum/label Or leave blank to sync to the head revision.

Security
bearerAuth
Query
projectIdinteger, (int64), >= 1required

ID of the project

Example:projectId=1
Bodyapplication/jsonrequired
urlstring, [ 0 .. 2400 ] characters

url

userNamestring, [ 0 .. 255 ] characters

userName

Example:"abc"
passwordstring, [ 0 .. 255 ] characters

password

Example:"abc"
branchSpecstring, [ 0 .. 255 ] characters

branchSpec

changeListNumstring, [ 0 .. 255 ] characters

changeListNum

labelstring, [ 0 .. 255 ] characters

label

curl -i -X POST \
  'https://codeinsightapi.redocly.app/_mock/swagger/scmInstances/Perforce?projectId=1' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "url": "string",
    "userName": "abc",
    "password": "abc",
    "branchSpec": "string",
    "changeListNum": "string",
    "label": "string"
  }'

Responses

Created