linear.api.* operation is listed below with parameter shapes and return types from the plugin Zod schemas.
New to Corsair? See API access, authentication, and error handling.
Comments
create
comments.create
Post a comment on an issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | — |
body | string | Yes | — |
parentId | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
body | string | Yes | — |
issue | object | Yes | — |
user | object | Yes | — |
parent | object | No | — |
editedAt | date | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
issue full type
issue full type
user full type
user full type
parent full type
parent full type
delete
comments.delete
Delete a comment [DESTRUCTIVE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
boolean
list
comments.list
List comments on an issue
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | — |
first | number | No | — |
after | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
nodes | object[] | Yes | — |
pageInfo | object | Yes | — |
nodes full type
nodes full type
pageInfo full type
pageInfo full type
update
comments.update
Update a comment
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
input | object | Yes | — |
input full type
input full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
body | string | Yes | — |
issue | object | Yes | — |
user | object | Yes | — |
parent | object | No | — |
editedAt | date | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
issue full type
issue full type
user full type
user full type
parent full type
parent full type
Issues
create
issues.create
Create a new issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Yes | — |
description | string | No | — |
teamId | string | Yes | — |
assigneeId | string | No | — |
priority | 0 | 1 | 2 | 3 | 4 | No | — |
estimate | number | No | — |
stateId | string | No | — |
projectId | string | No | — |
cycleId | string | No | — |
parentId | string | No | — |
labelIds | string[] | No | — |
subscriberIds | string[] | No | — |
dueDate | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
title | string | No | — |
description | string | No | — |
priority | 0 | 1 | 2 | 3 | 4 | No | — |
estimate | number | No | — |
sortOrder | number | No | — |
number | number | No | — |
identifier | string | No | — |
url | string | No | — |
state | object | No | — |
team | object | No | — |
assignee | object | No | — |
creator | object | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
state full type
state full type
team full type
team full type
assignee full type
assignee full type
creator full type
creator full type
delete
issues.delete
Permanently delete an issue [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
boolean
get
issues.get
Get a specific issue
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
title | string | Yes | — |
description | string | No | — |
priority | 0 | 1 | 2 | 3 | 4 | Yes | — |
estimate | number | No | — |
sortOrder | number | Yes | — |
number | number | Yes | — |
identifier | string | Yes | — |
url | string | Yes | — |
state | object | Yes | — |
team | object | Yes | — |
assignee | object | No | — |
creator | object | Yes | — |
project | object | No | — |
cycle | object | No | — |
labels | object | No | — |
subscribers | object | No | — |
dueDate | date | No | — |
startedAt | date | No | — |
completedAt | date | No | — |
canceledAt | date | No | — |
triagedAt | date | No | — |
snoozedUntilAt | date | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
parent | lazy | Yes | — |
state full type
state full type
team full type
team full type
assignee full type
assignee full type
creator full type
creator full type
project full type
project full type
cycle full type
cycle full type
labels full type
labels full type
subscribers full type
subscribers full type
list
issues.list
List issues in a team
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
teamId | string | No | — |
first | number | No | — |
after | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
nodes | object[] | Yes | — |
pageInfo | object | Yes | — |
nodes full type
nodes full type
pageInfo full type
pageInfo full type
update
issues.update
Update an existing issue
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
input | object | Yes | — |
input full type
input full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
title | string | No | — |
description | string | No | — |
priority | 0 | 1 | 2 | 3 | 4 | No | — |
estimate | number | No | — |
sortOrder | number | No | — |
number | number | No | — |
identifier | string | No | — |
url | string | No | — |
state | object | No | — |
team | object | No | — |
assignee | object | No | — |
creator | object | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
state full type
state full type
team full type
team full type
assignee full type
assignee full type
creator full type
creator full type
Projects
create
projects.create
Create a new project
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | — |
description | string | No | — |
icon | string | No | — |
color | string | No | — |
teamIds | string[] | Yes | — |
leadId | string | No | — |
state | planned | started | paused | completed | canceled | No | — |
priority | number | No | — |
startDate | string | No | — |
targetDate | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
description | string | No | — |
icon | string | No | — |
color | string | No | — |
state | backlog | planned | started | paused | completed | canceled | Yes | — |
priority | number | Yes | — |
sortOrder | number | No | — |
startDate | date | No | — |
targetDate | date | No | — |
completedAt | date | No | — |
canceledAt | date | No | — |
lead | object | No | — |
teams | object | Yes | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
lead full type
lead full type
teams full type
teams full type
delete
projects.delete
Permanently delete a project [DESTRUCTIVE · IRREVERSIBLE]
Risk: destructive · Irreversible
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
boolean
get
projects.get
Get a specific project
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
description | string | No | — |
icon | string | No | — |
color | string | No | — |
state | backlog | planned | started | paused | completed | canceled | Yes | — |
priority | number | Yes | — |
sortOrder | number | Yes | — |
startDate | date | No | — |
targetDate | date | No | — |
completedAt | date | No | — |
canceledAt | date | No | — |
lead | object | No | — |
teams | object | Yes | — |
createdAt | date | No | — |
updatedAt | date | No | — |
lead full type
lead full type
teams full type
teams full type
list
projects.list
List projects in a team
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
first | number | No | — |
after | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
nodes | object[] | Yes | — |
pageInfo | object | Yes | — |
nodes full type
nodes full type
pageInfo full type
pageInfo full type
update
projects.update
Update an existing project
Risk: write
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
input | object | Yes | — |
input full type
input full type
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
description | string | No | — |
icon | string | No | — |
color | string | No | — |
state | backlog | planned | started | paused | completed | canceled | Yes | — |
priority | number | Yes | — |
sortOrder | number | No | — |
startDate | date | No | — |
targetDate | date | No | — |
completedAt | date | No | — |
canceledAt | date | No | — |
lead | object | No | — |
teams | object | No | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
lead full type
lead full type
teams full type
teams full type
Teams
get
teams.get
Get a specific team
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
key | string | Yes | — |
description | string | No | — |
icon | string | No | — |
color | string | No | — |
private | boolean | Yes | — |
createdAt | date | No | — |
updatedAt | date | No | — |
archivedAt | date | No | — |
list
teams.list
List teams in the workspace
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
first | number | No | — |
after | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
nodes | object[] | Yes | — |
pageInfo | object | Yes | — |
nodes full type
nodes full type
pageInfo full type
pageInfo full type
Users
get
users.get
Get a specific user
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
name | string | Yes | — |
email | string | No | — |
displayName | string | Yes | — |
avatarUrl | string | No | — |
active | boolean | Yes | — |
admin | boolean | Yes | — |
createdAt | date | No | — |
updatedAt | date | No | — |
list
users.list
List users in the workspace
Risk: read
| Name | Type | Required | Description |
|---|---|---|---|
first | number | No | — |
after | string | No | — |
| Name | Type | Required | Description |
|---|---|---|---|
nodes | object[] | Yes | — |
pageInfo | object | Yes | — |
nodes full type
nodes full type
pageInfo full type
pageInfo full type