Skip to content

Perforce scmInstances

Request

Updates an instance of Perforce SCM.

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

ID of the project

Example:projectId=1
instanceIdinteger, (int64), >= 0required

ID of the SCM instance

Example:instanceId=0
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 PUT \
  'https://codeinsightapi.redocly.app/_mock/swagger/scmInstances/Perforce?projectId=1&instanceId=0' \
  -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

Ok