Mutation
mutation CompleteServiceAuthorization($input: CompleteServiceAuthorizationInput!) {
completeServiceAuthorization(input: $input) {
serviceAuthorization {
id
serviceIntegration {
name
key
}
status
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceAuthorizationId": "id"
}
}Response
{
"data": {
"completeServiceAuthorization": {
"serviceAuthorization": {
"id": "id",
"serviceIntegration": {
"name": "string",
"key": "string"
},
"status": "PENDING_AUTH",
"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
completeServiceAuthorization
Finalize a service authorization after the user has completed the OAuth flow in the third-party service. For most services, pass the serviceAuthorizationId returned by startServiceAuthorization. For Jira, also provide the jira field with the refreshToken and siteId obtained from Atlassian’s OAuth callback. On success, the authorization transitions to CONNECTED status and is ready for use.
MUTATION
completeServiceAuthorization(input: CompleteServiceAuthorizationInput!): CompleteServiceAuthorizationOutput!Arguments
input
required
serviceAuthorization
error
Mutation
mutation CompleteServiceAuthorization($input: CompleteServiceAuthorizationInput!) {
completeServiceAuthorization(input: $input) {
serviceAuthorization {
id
serviceIntegration {
name
key
}
status
createdAt {
unixTimestamp
iso8601
}
createdBy {
__typename
... on UserActor {
__typename
}
}
updatedAt {
unixTimestamp
iso8601
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"serviceAuthorizationId": "id"
}
}Response
{
"data": {
"completeServiceAuthorization": {
"serviceAuthorization": {
"id": "id",
"serviceIntegration": {
"name": "string",
"key": "string"
},
"status": "PENDING_AUTH",
"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?

