> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pinkfish.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# bitbucket-workspaces

> Workspaces, projects, issues

**Server path:** `/bitbucket-workspaces` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                                                                            | Description                                     |
| --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------- |
| [`bitbucket_workspaces_create_issue`](#bitbucket_workspaces_create_issue)                                       | Create an issue                                 |
| [`bitbucket_workspaces_create_issue_comment`](#bitbucket_workspaces_create_issue_comment)                       | Create a comment on an issue                    |
| [`bitbucket_workspaces_create_project`](#bitbucket_workspaces_create_project)                                   | Create a project in a workspace                 |
| [`bitbucket_workspaces_delete_issue`](#bitbucket_workspaces_delete_issue)                                       | Delete an issue                                 |
| [`bitbucket_workspaces_delete_project`](#bitbucket_workspaces_delete_project)                                   | Delete a project for a workspace                |
| [`bitbucket_workspaces_get_current_user`](#bitbucket_workspaces_get_current_user)                               | Get current user                                |
| [`bitbucket_workspaces_get_issue`](#bitbucket_workspaces_get_issue)                                             | Get an issue                                    |
| [`bitbucket_workspaces_get_project`](#bitbucket_workspaces_get_project)                                         | Get a project for a workspace                   |
| [`bitbucket_workspaces_get_workspace`](#bitbucket_workspaces_get_workspace)                                     | Get a workspace                                 |
| [`bitbucket_workspaces_list_issue_comments`](#bitbucket_workspaces_list_issue_comments)                         | List comments on an issue                       |
| [`bitbucket_workspaces_list_issues`](#bitbucket_workspaces_list_issues)                                         | List issues                                     |
| [`bitbucket_workspaces_list_projects`](#bitbucket_workspaces_list_projects)                                     | List projects in a workspace                    |
| [`bitbucket_workspaces_list_repository_permissions`](#bitbucket_workspaces_list_repository_permissions)         | List all repository permissions for a workspace |
| [`bitbucket_workspaces_list_user_workspace_permissions`](#bitbucket_workspaces_list_user_workspace_permissions) | List workspaces for the current user            |
| [`bitbucket_workspaces_list_workspace_members`](#bitbucket_workspaces_list_workspace_members)                   | List users in a workspace                       |
| [`bitbucket_workspaces_list_workspace_permissions`](#bitbucket_workspaces_list_workspace_permissions)           | List user permissions in a workspace            |
| [`bitbucket_workspaces_list_workspaces`](#bitbucket_workspaces_list_workspaces)                                 | List workspaces for user                        |
| [`bitbucket_workspaces_search_code`](#bitbucket_workspaces_search_code)                                         | Search for code in a workspace                  |
| [`bitbucket_workspaces_update_issue`](#bitbucket_workspaces_update_issue)                                       | Update an issue                                 |
| [`bitbucket_workspaces_update_project`](#bitbucket_workspaces_update_project)                                   | Update a project for a workspace                |

***

## bitbucket\_workspaces\_create\_issue

Create an issue

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                   |
| ------------ | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `repo_slug`  | string  | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace`  | string  | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |
| `assignee`   | object  | No       | —       | The assignee value                                                                                                                            |
| `component`  | object  | No       | —       | The component value                                                                                                                           |
| `content`    | object  | No       | —       | The content value                                                                                                                             |
| `created_on` | string  | No       | —       | Created On                                                                                                                                    |
| `edited_on`  | string  | No       | —       | Edited On                                                                                                                                     |
| `id`         | integer | No       | —       | The id value                                                                                                                                  |
| `kind`       | string  | No       | —       | The kind value                                                                                                                                |
| `links`      | object  | No       | —       | The links value                                                                                                                               |
| `milestone`  | object  | No       | —       | The milestone value                                                                                                                           |
| `priority`   | string  | No       | —       | The priority value                                                                                                                            |
| `reporter`   | object  | No       | —       | The reporter value                                                                                                                            |
| `repository` | object  | No       | —       | The repository value                                                                                                                          |
| `state`      | string  | No       | —       | The state value                                                                                                                               |
| `title`      | string  | No       | —       | The title value                                                                                                                               |
| `type`       | string  | Yes      | —       | The type value                                                                                                                                |
| `updated_on` | string  | No       | —       | Updated On                                                                                                                                    |
| `version`    | object  | No       | —       | The version value                                                                                                                             |
| `votes`      | integer | No       | —       | The votes value                                                                                                                               |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "assignee": {
        "description": "The assignee value"
      },
      "component": {
        "description": "The component value"
      },
      "content": {
        "type": "object",
        "description": "The content value",
        "properties": {
          "raw": {
            "type": "string",
            "description": "The text as it was typed by a user."
          },
          "markup": {
            "type": "string",
            "description": "The type of markup language the raw content is to be interpreted in.",
            "enum": [
              "markdown",
              "creole",
              "plaintext"
            ]
          },
          "html": {
            "type": "string",
            "description": "The user's content rendered as HTML."
          }
        }
      },
      "created_on": {
        "type": "string",
        "description": "Created On"
      },
      "edited_on": {
        "type": "string",
        "description": "Edited On"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "kind": {
        "type": "string",
        "description": "The kind value",
        "enum": [
          "bug",
          "enhancement",
          "proposal",
          "task"
        ]
      },
      "links": {
        "type": "object",
        "description": "The links value",
        "properties": {
          "self": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "html": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "comments": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "attachments": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "watch": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "vote": {
            "type": "object",
            "description": "A link to a resource related to this object."
          }
        }
      },
      "milestone": {
        "description": "The milestone value"
      },
      "priority": {
        "type": "string",
        "description": "The priority value",
        "enum": [
          "trivial",
          "minor",
          "major",
          "critical",
          "blocker"
        ]
      },
      "reporter": {
        "description": "The reporter value"
      },
      "repository": {
        "description": "The repository value"
      },
      "state": {
        "type": "string",
        "description": "The state value",
        "enum": [
          "submitted",
          "new",
          "open",
          "resolved",
          "on hold",
          "invalid",
          "duplicate",
          "wontfix",
          "closed"
        ]
      },
      "title": {
        "type": "string",
        "description": "The title value"
      },
      "type": {
        "type": "string",
        "description": "The type value"
      },
      "updated_on": {
        "type": "string",
        "description": "Updated On"
      },
      "version": {
        "description": "The version value"
      },
      "votes": {
        "type": "integer",
        "description": "The votes value"
      }
    },
    "required": [
      "PCID",
      "repo_slug",
      "workspace",
      "type"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_create\_issue\_comment

Create a comment on an issue

**Parameters:**

| Parameter    | Type    | Required | Default | Description                                                                                                                                   |
| ------------ | ------- | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `issue_id`   | string  | Yes      | —       | The issue id                                                                                                                                  |
| `repo_slug`  | string  | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace`  | string  | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |
| `content`    | object  | No       | —       | The content value                                                                                                                             |
| `created_on` | string  | No       | —       | Created On                                                                                                                                    |
| `deleted`    | boolean | No       | —       | The deleted value                                                                                                                             |
| `id`         | integer | No       | —       | The id value                                                                                                                                  |
| `inline`     | object  | No       | —       | The inline value                                                                                                                              |
| `issue`      | object  | No       | —       | The issue value                                                                                                                               |
| `links`      | object  | No       | —       | The links value                                                                                                                               |
| `parent`     | object  | No       | —       | Circular schema reference: #/components/schemas/comment                                                                                       |
| `type`       | string  | Yes      | —       | The type value                                                                                                                                |
| `updated_on` | string  | No       | —       | Updated On                                                                                                                                    |
| `user`       | object  | No       | —       | The user value                                                                                                                                |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "issue_id": {
        "type": "string",
        "description": "The issue id"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "content": {
        "type": "object",
        "description": "The content value",
        "properties": {
          "raw": {
            "type": "string",
            "description": "The text as it was typed by a user."
          },
          "markup": {
            "type": "string",
            "description": "The type of markup language the raw content is to be interpreted in.",
            "enum": [
              "markdown",
              "creole",
              "plaintext"
            ]
          },
          "html": {
            "type": "string",
            "description": "The user's content rendered as HTML."
          }
        }
      },
      "created_on": {
        "type": "string",
        "description": "Created On"
      },
      "deleted": {
        "type": "boolean",
        "description": "The deleted value"
      },
      "id": {
        "type": "integer",
        "description": "The id value"
      },
      "inline": {
        "type": "object",
        "description": "The inline value",
        "properties": {
          "from": {
            "type": "integer",
            "description": "The comment's anchor line in the old version of the file. If the comment is a multi-line comment, this is the ending line number in the old version of the file."
          },
          "to": {
            "type": "integer",
            "description": "The comment's anchor line in the new version of the file. If the comment is a multi-line comment, this is the ending line number in the new version of the file."
          },
          "start_from": {
            "type": "integer",
            "description": "The starting line number in the old version of the file, if the comment is a multi-line comment. This is null otherwise."
          },
          "start_to": {
            "type": "integer",
            "description": "The starting line number in the new version of the file, if the comment is a multi-line comment. This is null otherwise."
          },
          "path": {
            "type": "string",
            "description": "The path of the file this comment is anchored to."
          }
        },
        "required": [
          "path"
        ]
      },
      "issue": {
        "description": "The issue value"
      },
      "links": {
        "type": "object",
        "description": "The links value",
        "properties": {
          "self": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "html": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "code": {
            "type": "object",
            "description": "A link to a resource related to this object."
          }
        }
      },
      "parent": {
        "type": "object",
        "description": "Circular schema reference: #/components/schemas/comment"
      },
      "type": {
        "type": "string",
        "description": "The type value"
      },
      "updated_on": {
        "type": "string",
        "description": "Updated On"
      },
      "user": {
        "description": "The user value"
      }
    },
    "required": [
      "PCID",
      "issue_id",
      "repo_slug",
      "workspace",
      "type"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_create\_project

Create a project in a workspace

**Parameters:**

| Parameter                    | Type    | Required | Default | Description                                                                                                                                                                                              |
| ---------------------------- | ------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace`                  | string  | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.                                                                  |
| `created_on`                 | string  | No       | —       | Created On                                                                                                                                                                                               |
| `description`                | string  | No       | —       | The description value                                                                                                                                                                                    |
| `has_publicly_visible_repos` | boolean | No       | —       | Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories.                                                                     |
| `is_private`                 | boolean | No       | —       | Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories. |
| `key`                        | string  | No       | —       | The project's key.                                                                                                                                                                                       |
| `links`                      | object  | No       | —       | The links value                                                                                                                                                                                          |
| `name`                       | string  | No       | —       | The name of the project.                                                                                                                                                                                 |
| `owner`                      | object  | No       | —       | The owner value                                                                                                                                                                                          |
| `type`                       | string  | Yes      | —       | The type value                                                                                                                                                                                           |
| `updated_on`                 | string  | No       | —       | Updated On                                                                                                                                                                                               |
| `uuid`                       | string  | No       | —       | The project's immutable id.                                                                                                                                                                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "created_on": {
        "type": "string",
        "description": "Created On"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "has_publicly_visible_repos": {
        "type": "boolean",
        "description": "Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories."
      },
      "is_private": {
        "type": "boolean",
        "description": "Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories."
      },
      "key": {
        "type": "string",
        "description": "The project's key."
      },
      "links": {
        "type": "object",
        "description": "The links value",
        "properties": {
          "html": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "avatar": {
            "type": "object",
            "description": "A link to a resource related to this object."
          }
        }
      },
      "name": {
        "type": "string",
        "description": "The name of the project."
      },
      "owner": {
        "description": "The owner value"
      },
      "type": {
        "type": "string",
        "description": "The type value"
      },
      "updated_on": {
        "type": "string",
        "description": "Updated On"
      },
      "uuid": {
        "type": "string",
        "description": "The project's immutable id."
      }
    },
    "required": [
      "PCID",
      "workspace",
      "type"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_delete\_issue

Delete an issue

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `issue_id`  | string | Yes      | —       | The issue id                                                                                                                                  |
| `repo_slug` | string | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "issue_id": {
        "type": "string",
        "description": "The issue id"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "issue_id",
      "repo_slug",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_delete\_project

Delete a project for a workspace

**Parameters:**

| Parameter     | Type   | Required | Default | Description                                                                                                                             |
| ------------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `project_key` | string | Yes      | —       | The project in question. This is the actual `key` assigned to the project.                                                              |
| `workspace`   | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "project_key": {
        "type": "string",
        "description": "The project in question. This is the actual `key` assigned to the project."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "project_key",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_get\_current\_user

Get current user

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_get\_issue

Get an issue

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `issue_id`  | string | Yes      | —       | The issue id                                                                                                                                  |
| `repo_slug` | string | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "issue_id": {
        "type": "string",
        "description": "The issue id"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "issue_id",
      "repo_slug",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_get\_project

Get a project for a workspace

**Parameters:**

| Parameter     | Type   | Required | Default | Description                                                                                                                             |
| ------------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `project_key` | string | Yes      | —       | The project in question. This is the actual `key` assigned to the project.                                                              |
| `workspace`   | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "project_key": {
        "type": "string",
        "description": "The project in question. This is the actual `key` assigned to the project."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "project_key",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_get\_workspace

Get a workspace

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                             |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_issue\_comments

List comments on an issue

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `issue_id`  | string | Yes      | —       | The issue id                                                                                                                                  |
| `repo_slug` | string | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |
| `q`         | string | No       | —       | Query string to narrow down the response as per filtering and sorting.                                                                        |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "issue_id": {
        "type": "string",
        "description": "The issue id"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "q": {
        "type": "string",
        "description": "Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering)."
      }
    },
    "required": [
      "PCID",
      "issue_id",
      "repo_slug",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_issues

List issues

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `repo_slug` | string | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "repo_slug",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_projects

List projects in a workspace

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                             |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_repository\_permissions

List all repository permissions for a workspace

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                             |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |
| `q`         | string | No       | —       | Query string to narrow down the response as per filtering and sorting.                                                                  |
| `sort`      | string | No       | —       | Name of a response property sort the result by as per filtering and sorting.                                                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "q": {
        "type": "string",
        "description": "Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering)."
      },
      "sort": {
        "type": "string",
        "description": "Name of a response property sort the result by as per [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results)."
      }
    },
    "required": [
      "PCID",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_user\_workspace\_permissions

List workspaces for the current user

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                         |
| --------- | ------ | -------- | ------- | ----------------------------------------------------------------------------------- |
| `q`       | string | No       | —       | Query string to narrow down the response. See filtering and sorting for details.    |
| `sort`    | string | No       | —       | Name of a response property to sort results. See filtering and sorting for details. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "q": {
        "type": "string",
        "description": "Query string to narrow down the response. See [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering) for details."
      },
      "sort": {
        "type": "string",
        "description": "Name of a response property to sort results. See [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results) for details."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_workspace\_members

List users in a workspace

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                             |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_workspace\_permissions

List user permissions in a workspace

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                             |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`. |
| `q`         | string | No       | —       | Query string to narrow down the response as per filtering and sorting.                                                                  |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "q": {
        "type": "string",
        "description": "Query string to narrow down the response as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering)."
      }
    },
    "required": [
      "PCID",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_list\_workspaces

List workspaces for user

**Parameters:**

| Parameter | Type   | Required | Default | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| --------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `role`    | string | No       | —       | Filters the workspaces based on the authenticated user's role on each workspace.              \* **member**: returns a list of all the workspaces which the caller is a member of                 at least one workspace group or repository             \* **collaborator**: returns a list of workspaces which the caller has write access                 to at least one repository in the workspace             \* **owner**: returns a list of workspaces which the caller has administrator access |
| `q`       | string | No       | —       | Query string to narrow down the response. See filtering and sorting for details.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `sort`    | string | No       | —       | Name of a response property to sort results. See filtering and sorting for details.                                                                                                                                                                                                                                                                                                                                                                                                                       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "role": {
        "type": "string",
        "description": "Filters the workspaces based on the authenticated user's role on each workspace.              * **member**: returns a list of all the workspaces which the caller is a member of                 at least one workspace group or repository             * **collaborator**: returns a list of workspaces which the caller has write access                 to at least one repository in the workspace             * **owner**: returns a list of workspaces which the caller has administrator access",
        "enum": [
          "owner",
          "collaborator",
          "member"
        ]
      },
      "q": {
        "type": "string",
        "description": "Query string to narrow down the response. See [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering) for details."
      },
      "sort": {
        "type": "string",
        "description": "Name of a response property to sort results. See [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results) for details."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_search\_code

Search for code in a workspace

**Parameters:**

| Parameter      | Type    | Required | Default | Description                                                             |
| -------------- | ------- | -------- | ------- | ----------------------------------------------------------------------- |
| `workspace`    | string  | Yes      | —       | The workspace to search in; either the slug or the UUID in curly braces |
| `search_query` | string  | Yes      | —       | The search query                                                        |
| `page`         | integer | No       | —       | Which page of the search results to retrieve                            |
| `pagelen`      | integer | No       | —       | How many search results to retrieve per page                            |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "workspace": {
        "type": "string",
        "description": "The workspace to search in; either the slug or the UUID in curly braces"
      },
      "search_query": {
        "type": "string",
        "description": "The search query"
      },
      "page": {
        "type": "integer",
        "description": "Which page of the search results to retrieve"
      },
      "pagelen": {
        "type": "integer",
        "description": "How many search results to retrieve per page"
      }
    },
    "required": [
      "PCID",
      "workspace",
      "search_query"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_update\_issue

Update an issue

**Parameters:**

| Parameter   | Type   | Required | Default | Description                                                                                                                                   |
| ----------- | ------ | -------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `issue_id`  | string | Yes      | —       | The issue id                                                                                                                                  |
| `repo_slug` | string | Yes      | —       | This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `&#123;repository UUID&#125;`. |
| `workspace` | string | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "issue_id": {
        "type": "string",
        "description": "The issue id"
      },
      "repo_slug": {
        "type": "string",
        "description": "This can either be the repository slug or the UUID of the repository, surrounded by curly-braces, for example: `{repository UUID}`."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      }
    },
    "required": [
      "PCID",
      "issue_id",
      "repo_slug",
      "workspace"
    ]
  }
  ```
</Expandable>

***

## bitbucket\_workspaces\_update\_project

Update a project for a workspace

**Parameters:**

| Parameter                    | Type    | Required | Default | Description                                                                                                                                                                                              |
| ---------------------------- | ------- | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_key`                | string  | Yes      | —       | The project in question. This is the actual `key` assigned to the project.                                                                                                                               |
| `workspace`                  | string  | Yes      | —       | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `&#123;workspace UUID&#125;`.                                                                  |
| `created_on`                 | string  | No       | —       | Created On                                                                                                                                                                                               |
| `description`                | string  | No       | —       | The description value                                                                                                                                                                                    |
| `has_publicly_visible_repos` | boolean | No       | —       | Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories.                                                                     |
| `is_private`                 | boolean | No       | —       | Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories. |
| `key`                        | string  | No       | —       | The project's key.                                                                                                                                                                                       |
| `links`                      | object  | No       | —       | The links value                                                                                                                                                                                          |
| `name`                       | string  | No       | —       | The name of the project.                                                                                                                                                                                 |
| `owner`                      | object  | No       | —       | The owner value                                                                                                                                                                                          |
| `type`                       | string  | Yes      | —       | The type value                                                                                                                                                                                           |
| `updated_on`                 | string  | No       | —       | Updated On                                                                                                                                                                                               |
| `uuid`                       | string  | No       | —       | The project's immutable id.                                                                                                                                                                              |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "project_key": {
        "type": "string",
        "description": "The project in question. This is the actual `key` assigned to the project."
      },
      "workspace": {
        "type": "string",
        "description": "This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example: `{workspace UUID}`."
      },
      "created_on": {
        "type": "string",
        "description": "Created On"
      },
      "description": {
        "type": "string",
        "description": "The description value"
      },
      "has_publicly_visible_repos": {
        "type": "boolean",
        "description": "Indicates whether the project contains publicly visible repositories. Note that private projects cannot contain public repositories."
      },
      "is_private": {
        "type": "boolean",
        "description": "Indicates whether the project is publicly accessible, or whether it is private to the team and consequently only visible to team members. Note that private projects cannot contain public repositories."
      },
      "key": {
        "type": "string",
        "description": "The project's key."
      },
      "links": {
        "type": "object",
        "description": "The links value",
        "properties": {
          "html": {
            "type": "object",
            "description": "A link to a resource related to this object."
          },
          "avatar": {
            "type": "object",
            "description": "A link to a resource related to this object."
          }
        }
      },
      "name": {
        "type": "string",
        "description": "The name of the project."
      },
      "owner": {
        "description": "The owner value"
      },
      "type": {
        "type": "string",
        "description": "The type value"
      },
      "updated_on": {
        "type": "string",
        "description": "Updated On"
      },
      "uuid": {
        "type": "string",
        "description": "The project's immutable id."
      }
    },
    "required": [
      "PCID",
      "project_key",
      "workspace",
      "type"
    ]
  }
  ```
</Expandable>
