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
- Mock serverhttps://codeinsightapi.redocly.app/_mock/swagger/scmInstances/Perforce
- Code Insight REST API Serverhttps://codeinsightapi.redocly.app/codeinsight/api/scmInstances/Perforce
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"
}'