Upsert remote. If remote with the same mountPath and type already exists the remote object is returned. If the type doesn't match the existing remote, a 409 error is returned. Otherwise, a new remote is created.
Security
ApiKey or UserCookie
Remote type. TODO: Add discriminator by type and add other fields for GIT and URL remote types.
Enum:"CICD""GIT""URL"
Example:"CICD"
- Mock serverhttps://redocly.com/_mock/docs/realm/scout/api/openapi/orgs/{orgId}/projects/{projectId}/remotes
- Production main server.https://app.cba.au.redocly.com/api/orgs/{orgId}/projects/{projectId}/remotes
- ApiKey
- UserCookie
curl -i -X POST \
https://redocly.com/_mock/docs/realm/scout/api/openapi/orgs/acme-inc/projects/my-project/remotes \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"mountPath": "apis/test/@v1",
"type": "CICD",
"autoSync": true,
"autoMerge": true,
"providerType": "GITHUB_CLOUD"
}'Remote created.
Remote type. TODO: Add discriminator by type and add other fields for GIT and URL remote types.
Enum:"CICD""GIT""URL"
Example:"CICD"
Git provider type.
Enum:"GITHUB_CLOUD""GITHUB_SERVER""GITLAB_CLOUD""GITLAB_SELF_MANAGED""BITBUCKET_CLOUD""BITBUCKET_DATACENTER""AZURE"
Response
{ "mountPath": "apis/test/@v1", "type": "CICD", "autoSync": true, "autoMerge": true, "createdAt": "2023-06-07T00:00:00Z", "updatedAt": "2023-06-07T00:00:00Z", "providerType": "GITHUB_CLOUD", "namespaceId": "string", "repositoryId": "string", "projectId": "string", "mountBranchName": "string", "contentPath": "string", "credentialId": "string", "branchName": "string", "contentType": "FILE", "id": "rem_01h2captefvs9bpg3v6twqqj9n" }