Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
ProjectSettings
ProjectSettings

/rest/templates4stash/1.0/projects/{

...

project_key}/settings

Section


Column
width50%


Expand
titleGet project settings

Returns the project settings of the plug-in.

Responses

Status
colourGreen
titleSTATUS 200
 - application/json Project settings found

Example:

Code Block
languagejs
{
  "templateFeatureEnabled": true,
  "allowUsersToChooseTemplate": false,
  "defaultTemplateRepositoryId": null,
  "repoMirrorEnabled": false,
  "settingsToUse": {
    "repositoryDetails": true,
    "repositoryHooks": false,
    "repositoryHooksToIgnore": [
      "com.atlassian.bitbucket.server.bitbucket-bundled-hooks:force-push-hook"
    ],
    "repositoryPermissions": false,
    "branchPermissions": false,
    "pullRequestSettings": true,
    "webhooks": true,
    "accessKeys": true
  },
  "cronExpression": "0 0 3 1/1 * ? *"
}


Status
colourRed
titleSTATUS 401
 The currently authenticated user does not have PROJECT_ADMIN settings for this project

Status
colourRed
titleSTATUS 404
 The given project does not exist or there are no settings for this project



Column
width50%
GET /rest/templates4stash/1.0/projects/{project_key}/settings


...