Create

  • POST
  • /workspaces
  • /:domain
  • /projects

Create a project in a workspace. Every user can add new projects, unless restricted by the admin in the workspace settings.

Request

REQUIRED SCOPES
WORKSPACE
url PARAMETERS
domainrequired string
The workspace domain.
POST PARAMETERS
display_namerequired string
Full name of the project.
nameoptional string
Name ID of the project. Generated from the display_name if not provided.
integrationoptional Integration
The integration. Required when adding the integrated project.
external_project_idoptional string
Repo slug of the Bitbucket, GitHub or GitLab project. Required when adding the integrated project.
git_lab_project_idoptional string
ID of the project in GitLab.
custom_repo_urloptional string
SSH or HTTPS url of the git repository. Required when adding the project integrated with custom git repository.
custom_repo_useroptional string
Username used to authorize access to the git repository. Required when adding the project integrated with custom git repository.
custom_repo_passoptional string
Password used to authorize access to the git repository. Required when adding the project integrated with custom git repository and the provided custom_repo_url is the HTTPS url.
accessoptional string
Defines whether a project is public or private. Available values: PUBLIC, PRIVATE (set by default).
fetch_submodulesoptional boolean
Defines whether the submodules are fetched during the executions in this project.
fetch_submodules_env_keyoptional string
Name of the key that will be used to authorize while fetching the submodules. Required when fetch_submodules is set to true.
allow_pull_requestsoptional boolean
Enables/disables pull requests in the project. Available only for projects synchronized with GitHub or GitHub Enterprise repository.
without_repooptional boolean
If set to true, the project is created without any repository attached.

Last modified on Sep 23, 2024

{
  "name": "landing-page",
  "display_name": "Landing page",
  "access": "PUBLIC",
  "fetch_submodules": true,
  "fetch_submodules_env_key": "id_workspace",
  "allow_pull_requests": true
}
{
  "url": "https://api.buddy.works/workspaces/buddy/projects/landing-page",
  "html_url": "https://app.buddy.works/buddy/landing-page",
  "name": "landing-page",
  "display_name": "Landing page",
  "status": "ACTIVE",
  "create_date": "2016-03-02T11:10:28.864Z",
  "created_by": {
    "url": "https://api.buddy.works/workspaces/buddy/member/1",
    "html_url": "https://app.buddy.works/buddy/profile/1",
    "id": 1,
    "name": "Mike Benson",
    "avatar_url": "https://app.buddy.works/image-server/user/0/0/0/0/0/0/1/d643744fbe5ebf2906a4d075a5b97110/w/32/32/AVATAR.png"
  },
  "http_repository": "https://app.buddy.works/buddy/landing-page",
  "ssh_repository": "buddy@app.buddy.works:buddy/landing-page",
  "default_branch": "master",
  "access": "PUBLIC",
  "fetch_submodules": true,
  "fetch_submodules_env_key": "id_workspace",
  "allow_pull_requests": true
}