Integrations
Preview

Connect ServiceNow or Jira

Connects the organization's ServiceNow instance or Jira site, or replaces its credentials. The credentials are checked with the system before anything is kept, and the password or token goes to the secret store: it is never returned. The address must be https and cannot name a private, loopback or l

PUT
/change-systems/{system}
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

system*string
Value in"servicenow""jira"
Idempotency-Key?string

Makes retries safe. A repeated key with the same request returns the first result and sets Idempotent-Replayed: true. The same key with a different request answers 409 idempotency.key_reused, and while the first request is still running 409 idempotency.in_progress. Results are kept for 24 hours. Server errors and refusals for lack of sign-in or permission are not kept, so a retry runs again.

Match^[A-Za-z0-9_.:-]+$
Length1 <= length <= 255
application/json
  1. body
baseUrl*string

The instance or site, such as https://acme.service-now.com or https://acme.atlassian.net.

Length8 <= length <= 512
username*string

The service account, or for Jira the account's email.

Length1 <= length <= 254
secret*string

The account's password (ServiceNow) or API token (Jira). Kept in the secret store, never returned.

Length1 <= length <= 1024
approvedStatuses?array<>

Jira only. The statuses that mean approved. Empty means Approved. ServiceNow says it in its own approval field.

Itemsitems <= 20

Response Body

The connection.

application/json
  1. response
system*string
Value in"servicenow""jira"
baseUrl*string
username*string
approvedStatuses*array<string>
pushPath*string

Where the system pushes to, relative to the API address, such as /api/v1/webhooks/change/3f2....

pushSecret?string

The secret pushes are signed with. Present only in the answer to the first connection; keep it, it is not shown again.

connectedAt*string
Formatdate-time
Example Request
curl -X PUT 'https://wardn.example.com/api/v1/change-systems/servicenow' \  -H 'Content-Type: application/json' \  -d '{  "baseUrl": "stringst",  "username": "string",  "secret": "string"}'
Example Response
{  "system": "servicenow",  "baseUrl": "string",  "username": "string",  "approvedStatuses": [    "string"  ],  "pushPath": "string",  "pushSecret": "string",  "connectedAt": "2019-08-24T14:15:22Z"}