Project settings

Updates the project settings of the plug-in.

put/projects/{projectKey}/settings

Path parameters

projectKeystring required

Request body

allowUsersToChooseTemplateboolean

true if a user is allowed to choose another template than the default when creating a new repository

cronExpressionstring

the cron expression to use for resetting the settings of associated repositories to the one of the configured template (use null to deactivate the periodic reset)

forkTemplateSyncEnabledboolean

Sync settings from template to new repository forks

gitMirrorType'MIRROR' | 'WITHOUTHISTORY'

Configure how the repository template content should be copied to the new repository.

repoMirrorEnabledboolean

true if you want the content of a template being mirrored to a repository on its creation

templateFeatureEnabledboolean

Enables/disables repository templates for project

Response

Project settings updated

allowUsersToChooseTemplateboolean

true if a user is allowed to choose another template than the default when creating a new repository

cronExpressionstring

the cron expression to use for resetting the settings of associated repositories to the one of the configured template (use null to deactivate the periodic reset)

forkTemplateSyncEnabledboolean

Sync settings from template to new repository forks

gitMirrorType'MIRROR' | 'WITHOUTHISTORY'

Configure how the repository template content should be copied to the new repository.

repoMirrorEnabledboolean

true if you want the content of a template being mirrored to a repository on its creation

templateFeatureEnabledboolean

Enables/disables repository templates for project

Changes

Changed in 3 of the 4 revisions of this API.1425

    • added the new optional request property settingsToUse/autoDecline

      new-optional-request-property

    • added the new optional request property settingsToUse/autoMergeSettings

      new-optional-request-property

    • added the new optional request property settingsToUse/codeInsights

      new-optional-request-property

    • added the new optional request property settingsToUse/jiraIssues

      new-optional-request-property

    • added the new optional request property settingsToUse/requiredBuild

      new-optional-request-property

    • added the new optional request property settingsToUse/requiredTasks

      new-optional-request-property

    • added the new optional request property settingsToUse/secretScanning

      new-optional-request-property

    • added the new optional request property settingsToUse/workflowBranches

      new-optional-request-property

    • added the optional property settingsToUse/autoDecline to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/autoMergeSettings to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/codeInsights to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/jiraIssues to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/requiredBuild to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/requiredTasks to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/secretScanning to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/workflowBranches to the response with the 200 status

      response-optional-property-added

  • c973497aa59f142See the full diff
    • removed the media type application/json for the response with the status 400

      response-media-type-removed

    • removed the request property settingsToUse/defaultReviewers

      request-property-removed

    • removed the request property settingsToUse/reviewerGroups

      request-property-removed

    • removed the optional property settingsToUse/defaultReviewers from the response with the 200 status

      response-optional-property-removed

    • removed the optional property settingsToUse/reviewerGroups from the response with the 200 status

      response-optional-property-removed

    • added the new optional request property settingsToUse/defaultReviewersAndReviewerGroups

      new-optional-request-property

    • added the optional property settingsToUse/defaultReviewersAndReviewerGroups to the response with the 200 status

      response-optional-property-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the new optional request property settingsToUse/defaultReviewers

      new-optional-request-property

    • added the new optional request property settingsToUse/pullRequestTemplate

      new-optional-request-property

    • added the new optional request property settingsToUse/reviewerGroups

      new-optional-request-property

    • added the non-success response with the status 400

      response-non-success-status-added

    • added the optional property settingsToUse/defaultReviewers to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/pullRequestTemplate to the response with the 200 status

      response-optional-property-added

    • added the optional property settingsToUse/reviewerGroups to the response with the 200 status

      response-optional-property-added