Code Repos
Create
Action Logs
Bitbucket Server
Catalog News Articles
Catalog Technologies
Code Repos
Comment Replies
Diagram Contents
Diagrams
Flows
Health
Landscape Templates
Landscape Thumbnails
Model Connections
Model Objects
News
Organization Billing
Organization Icons
Organization Landscapes
Organizations
Organization Technologies
Organization User Invites
Organization Users
Share Link
Share Link Options
Support
User
User Notifications
User Goals
Version Reverts
Code Repos
Create
Create a code repo
POST
/
organizations
/
{organizationId}
/
code-repos
curl --request POST \
--url https://api.icepanel.io/v1/organizations/{organizationId}/code-repos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"azureDevopsAccountName": "<string>",
"azureDevopsAuthorizationId": "<string>",
"azureDevopsProjectId": "<string>",
"azureDevopsRepositoryId": "<string>",
"azureDevopsUrl": "<string>",
"bitbucketAuthorizationId": "<string>",
"bitbucketProjectId": "<string>",
"bitbucketRepositoryId": "<string>",
"bitbucketServerProjectId": 123,
"bitbucketServerProjectKey": "<string>",
"bitbucketServerRepositoryId": 123,
"bitbucketServerRepositorySlug": "<string>",
"bitbucketServerTokenId": "<string>",
"bitbucketServerUrl": "<string>",
"bitbucketUrl": "<string>",
"bitbucketWorkspaceId": "<string>",
"githubInstallId": "<string>",
"githubOwnerId": 123,
"githubOwnerLogin": "<string>",
"githubRepositoryId": 123,
"githubRepositoryName": "<string>",
"githubUrl": "<string>",
"gitlabAuthorizationId": "<string>",
"gitlabGroupId": 123,
"gitlabProjectId": 123,
"gitlabUrl": "<string>",
"name": "<string>",
"refs": {},
"type": "azure-devops",
"url": "<string>"
}'
{
"codeRepo": {
"azureDevopsAccountName": "<string>",
"azureDevopsAuthorizationId": "<string>",
"azureDevopsProjectId": "<string>",
"azureDevopsRepositoryId": "<string>",
"azureDevopsUrl": "<string>",
"bitbucketAuthorizationId": "<string>",
"bitbucketProjectId": "<string>",
"bitbucketRepositoryId": "<string>",
"bitbucketServerProjectId": 123,
"bitbucketServerProjectKey": "<string>",
"bitbucketServerRepositoryId": 123,
"bitbucketServerRepositorySlug": "<string>",
"bitbucketServerTokenId": "<string>",
"bitbucketServerUrl": "<string>",
"bitbucketUrl": "<string>",
"bitbucketWorkspaceId": "<string>",
"githubInstallId": "<string>",
"githubOwnerId": 123,
"githubOwnerLogin": "<string>",
"githubRepositoryId": 123,
"githubRepositoryName": "<string>",
"githubUrl": "<string>",
"gitlabAuthorizationId": "<string>",
"gitlabGroupId": 123,
"gitlabProjectId": 123,
"gitlabUrl": "<string>",
"name": "<string>",
"refs": {},
"type": "azure-devops",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "user",
"createdById": "<string>",
"id": "<string>",
"organizationId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "user",
"updatedById": "<string>"
}
}
Headers
Path Parameters
Body
application/json
Available options:
azure-devops
, bitbucket
, bitbucket-server
, github
, gitlab
Response
200
application/json
OK
Available options:
azure-devops
, bitbucket
, bitbucket-server
, github
, gitlab
Available options:
user
, api-key
, notification-key
, service
Available options:
user
, api-key
, notification-key
, service
curl --request POST \
--url https://api.icepanel.io/v1/organizations/{organizationId}/code-repos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"azureDevopsAccountName": "<string>",
"azureDevopsAuthorizationId": "<string>",
"azureDevopsProjectId": "<string>",
"azureDevopsRepositoryId": "<string>",
"azureDevopsUrl": "<string>",
"bitbucketAuthorizationId": "<string>",
"bitbucketProjectId": "<string>",
"bitbucketRepositoryId": "<string>",
"bitbucketServerProjectId": 123,
"bitbucketServerProjectKey": "<string>",
"bitbucketServerRepositoryId": 123,
"bitbucketServerRepositorySlug": "<string>",
"bitbucketServerTokenId": "<string>",
"bitbucketServerUrl": "<string>",
"bitbucketUrl": "<string>",
"bitbucketWorkspaceId": "<string>",
"githubInstallId": "<string>",
"githubOwnerId": 123,
"githubOwnerLogin": "<string>",
"githubRepositoryId": 123,
"githubRepositoryName": "<string>",
"githubUrl": "<string>",
"gitlabAuthorizationId": "<string>",
"gitlabGroupId": 123,
"gitlabProjectId": 123,
"gitlabUrl": "<string>",
"name": "<string>",
"refs": {},
"type": "azure-devops",
"url": "<string>"
}'
{
"codeRepo": {
"azureDevopsAccountName": "<string>",
"azureDevopsAuthorizationId": "<string>",
"azureDevopsProjectId": "<string>",
"azureDevopsRepositoryId": "<string>",
"azureDevopsUrl": "<string>",
"bitbucketAuthorizationId": "<string>",
"bitbucketProjectId": "<string>",
"bitbucketRepositoryId": "<string>",
"bitbucketServerProjectId": 123,
"bitbucketServerProjectKey": "<string>",
"bitbucketServerRepositoryId": 123,
"bitbucketServerRepositorySlug": "<string>",
"bitbucketServerTokenId": "<string>",
"bitbucketServerUrl": "<string>",
"bitbucketUrl": "<string>",
"bitbucketWorkspaceId": "<string>",
"githubInstallId": "<string>",
"githubOwnerId": 123,
"githubOwnerLogin": "<string>",
"githubRepositoryId": 123,
"githubRepositoryName": "<string>",
"githubUrl": "<string>",
"gitlabAuthorizationId": "<string>",
"gitlabGroupId": 123,
"gitlabProjectId": 123,
"gitlabUrl": "<string>",
"name": "<string>",
"refs": {},
"type": "azure-devops",
"url": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": "user",
"createdById": "<string>",
"id": "<string>",
"organizationId": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": "user",
"updatedById": "<string>"
}
}