Mutation
mutation CreateMyLinearIntegration($input: CreateMyLinearIntegrationInput!) {
createMyLinearIntegration(input: $input) {
integration {
integrationId
linearOrganisationName
linearOrganisationId
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "string",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMyLinearIntegration": {
"integration": {
"integrationId": "id",
"linearOrganisationName": "string",
"linearOrganisationId": "id",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createMyLinearIntegration
Connects the current user’s Plain account to their Linear account by exchanging an OAuth authorization code. Obtain the authorization code by directing the user through the URL returned by myLinearInstallationInfo. The redirectUrl must match the one used when generating the installation URL. Each workspace can only be connected to one Linear organisation; attempting to connect a second organisation returns an error.
MUTATION
createMyLinearIntegration(input: CreateMyLinearIntegrationInput!): CreateMyLinearIntegrationOutput!Arguments
input
required
Returns
integration
error
Mutation
mutation CreateMyLinearIntegration($input: CreateMyLinearIntegrationInput!) {
createMyLinearIntegration(input: $input) {
integration {
integrationId
linearOrganisationName
linearOrganisationId
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"authCode": "string",
"redirectUrl": "string"
}
}Response
{
"data": {
"createMyLinearIntegration": {
"integration": {
"integrationId": "id",
"linearOrganisationName": "string",
"linearOrganisationId": "id",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

