Create JIRA Authentications
The following mutation creates a JIRA Authentication for a given account:
- Query
- cURL
mutation CreateJIRAAuthentication($accountId: ObjectID!, $name: String!, $cloudId: String!, $jiraUrl: String, $refreshToken: String!) {
createJiraAuthentication(
input: {
accountId: $accountId
name: $name
cloudId: $cloudId
jiraUrl: $jiraUrl
refreshToken: $refreshToken
}
) {
jiraAuthentication {
id
name
cloudId
jiraUrl
createdAt
updatedAt
}
}
}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"mutation CreateJIRAAuthentication($accountId: ObjectID!, $name: String!, $cloudId: String!, $jiraUrl: String, $refreshToken: String!) { createJiraAuthentication( input: { accountId: $accountId name: $name cloudId: $cloudId jiraUrl: $jiraUrl refreshToken: $refreshToken } ) { jiraAuthentication { id name cloudId jiraUrl createdAt updatedAt } } }"}' https://api.lumar.io/graphql