Mutation
mutation CreateWorkspaceCursorIntegration($input: CreateWorkspaceCursorIntegrationInput!) {
createWorkspaceCursorIntegration(input: $input) {
integration {
id
tokenPreview
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"token": "string"
}
}Response
{
"data": {
"createWorkspaceCursorIntegration": {
"integration": {
"id": "id",
"tokenPreview": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
createWorkspaceCursorIntegration
Creates a Cursor integration for the workspace using the provided API token. Only one integration can be active at a time; call deleteWorkspaceCursorIntegration before creating a new one. Requires the workspaceCursorIntegration:create permission.
MUTATION
createWorkspaceCursorIntegration(input: CreateWorkspaceCursorIntegrationInput!): CreateWorkspaceCursorIntegrationOutput!Arguments
input
integration
error
Mutation
mutation CreateWorkspaceCursorIntegration($input: CreateWorkspaceCursorIntegrationInput!) {
createWorkspaceCursorIntegration(input: $input) {
integration {
id
tokenPreview
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
updatedBy {
__typename
... on UserActor {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"token": "string"
}
}Response
{
"data": {
"createWorkspaceCursorIntegration": {
"integration": {
"id": "id",
"tokenPreview": "string",
"createdAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"createdBy": {
"__typename": "UserActor"
},
"updatedAt": {
"unixTimestamp": "string",
"iso8601": "string"
},
"updatedBy": {
"__typename": "UserActor"
}
},
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

