Перейти к содержанию

Получение роли

Возвращает информацию о конкретной роли.

GET /cwm/public/api/v1/workspaces/{workspace}/roles/{roleId}

Параметры и описание запроса

workspace (обязательный)

Ключ или идентификатор пространства /cwm/public/api/v1/workspaces/KEY/workitems /cwm/public/api/v1/workspaces/f5ce1753-ced5-4992-beb9-7408c1a56cf8/workitems

roleId

Идентификатор роли f5ce1753-ced5-4992-beb9-7408c1a56cf8

Тело успешного ответа 200

{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "string",
  "author": {
    "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "displayName": "string",
    "username": "string",
    "email": "string"
  },
  "isSystem": true,
  "permissions": [
    "WorkspaceContentRead"
  ]
}

Описание возвращаемой модели роли

id

Идентификатор роли

name

Наименование роли

author

Создатель роли

isSystem

Признак системной неизменяемой роли

permissions

Список разрешений роли.

Возможные значения: WorkspaceContentRead, WorkspaceEdit, WorkspaceAccessEdit, WorkspaceIntegrationsEdit, WorkspaceDelete, WorkspaceWorkitemTypesEdit, WorkspaceAttributesEdit, WorkspaceWorkflowsEdit, WorkspaceAutomationRulesEdit, WorkspaceFolderCreate, WorkspaceFolderEdit, WorkspaceFolderDelete, WorkspaceViewCreate, WorkspaceViewEdit, WorkspaceViewDelete, WorkitemCreate, WorkitemAssignEdit, WorkitemStatusEdit, WorkitemStatusEditForce, WorkitemAttributesEdit, WorkitemAttachmentsCreate, WorkitemAttachmentsDelete, WorkitemCommentsCreate, WorkitemCommentsEdit, WorkitemCommentsDelete, WorkitemCommentsForceDelete, WorkitemRelationsCreate, WorkitemRelationsDelete, WorkitemDelete, WorkitemMove, WorkitemTimeTrackCreateEditDelete, WorkitemTimeTrackEditDeleteForce, WorkspaceTimeTrackReport, WorkspaceExport, ExtensionsEdit, WorkitemSharing.