Youniton Docs

Integrations & imports

Jira CSV import, repository connections, provider settings and connected apps.

#Start a Jira CSV import into one project (beta, behind the jira_csv_import flag)

POST/imports
Session (app only)Idempotency-KeyF-INT-09

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201A draft import; upload the CSV with purpose import_source and target import(id).application/json
Errors403404One problem shape

#The import's state, progress, counts and first row errors

GET/imports/{importId}
Session (app only)F-INT-09

Path parameters

importIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The import.application/json
Errors403404One problem shape

#Cancel a queued or running import or dry run; committed batches stay

POST/imports/{importId}/cancel
Session (app only)F-INT-09

Path parameters

importIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200Cancelled (or already finished — the current state is returned).application/json
Errors403404One problem shape

#Check the uploaded CSV against the mapping — counts and row errors, nothing written

POST/imports/{importId}/dry-run
Session (app only)Idempotency-KeyF-INT-09

XM-1241: the request reads its files within integrations.import.checkTimeBudgetSeconds (one parse of the CSV, the options of the fields to create, the archive's directory); when the budget is spent, 422 integration.import_check_too_large (budgetSeconds) before anything is created — split the export. One check at a time per import and integrations.import.checksPerMinute per tenant (429 rate_limit.exceeded, limiter jira-check-import or jira-check, Retry-After; 503 service.unavailable when the counter store fails). An archive that holds none of the attachment ids the export names is 422 integration.import_file_invalid (reason layout) at /attachmentsFileId.

Path parameters

importIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

202The dry run is queued.application/json
Errors403404409422429503One problem shape

#The profile of a file uploaded for the import, for the mapping step — rows, statuses, custom-field columns (R13; XM-1080)

GET/imports/{importId}/profile
Session (app only)F-INT-09

Read on each request from the import's own file and never stored. Holds cell values: operators are refused (403 proposal.not_proposable) before the file is opened. One profile at a time per import and integrations.import.profilesPerMinute per tenant (429 rate_limit.exceeded, limiter jira-profile-import or jira-profile, Retry-After; 503 service.unavailable when the counter store fails). The file is read once within integrations.import.profileTimeBudgetSeconds; when the budget is spent, 422 integration.import_profile_too_large (reason time, budgetSeconds); an answer larger than integrations.import.profileAnswerMaxBytes is 422 integration.import_profile_too_large (reason size, maxBytes) — the dry run still takes the file (XM-1080 fix rounds 1 and 2). One column for each field name, compared case-insensitively; unlistedColumns counts the later spellings.

Path parameters

importIdrequiredstring (uuid)

Query parameters

fileIdrequiredstring (uuid)

The import_source file uploaded for import(importId).

sourcestring

F-INT-09.R14 (XM-1387): the format the Admin chose in the Format choice. Absent: the source is detected by the upload's shape. No adapter, more than one, or a chosen format that does not recognise the upload answers 422 integration.import_file_invalid (reason source_unknown, source_ambiguous or source_mismatch, with candidates).

One of: jira_csv jira_rest_export

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The profile (Cache-Control no-store).application/json
Errors403404409422429503One problem shape

#The whole row report as CSV (row, jira_key, column, code, reason, worklog_id, date, minutes) under the exports' CSV safety rule (XM-112, XM-1387)

GET/imports/{importId}/report
Session (app only)F-INT-09

Path parameters

importIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The CSV file (Content-Disposition attachment), UTF-8 with a byte-order mark, lines ended by CRLF; every cell guarded against spreadsheet formulas. Made from the import's row, so it is gone 30 days after the import ended.text/csv
Errors403404One problem shape

#Run the import checked by the last dry run (same file and mapping), optionally fetching attachments

POST/imports/{importId}/run
Session (app only)Idempotency-KeyF-INT-09

Path parameters

importIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

202The import is queued.application/json
Errors403404409422One problem shape

#The tenant's allowed Git providers, self-managed instances, rotation default and linking switch

GET/integrations/provider-settings
Session (app only)F-INT-01

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200The provider settings with in-use counts.application/json
Errors403404One problem shape

#Replace the provider settings (allowed providers, instances, rotation default and lead, linking by ticket key)

PUT/integrations/provider-settings
Session (app only)If-MatchF-INT-01

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Saved (or unchanged); the new version.application/json
Errors401403404409412422428One problem shape

#The account's person-level grants across its tenants (v1 — the calendar feeds)

GET/me/connected-apps
Session (app only)F-INT-08

Responses

200The grants.application/json

#Disconnect a connected app — revokes the calendar feed at once

DELETE/me/connected-apps/{connectedAppId}
Session (app only)F-INT-08

Path parameters

connectedAppIdrequiredstring (uuid)

Responses

204Disconnected (or already gone).

No body.

Errors401404One problem shape

#The project-centric repositories table — every project, its live connections, or a "No repository" row

GET/repository-connections
Session (app only)F-INT-02

Query parameters

filter[presence]string

One of: all with_repository without_repository needs_attention · Default: "all"

filter[projectKey]string

Pattern ^[A-Z][A-Z0-9]{1,9}$

filter[archived]boolean

Default: false

qstring

Min length 2 · Max length 100

page[number]integer

Default: 1 · Min 1

page[size]integer

One of: 10 20 25 30 50 100 · Default: 25

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Responses

200One page of rows with exact counts per filter.application/json
Errors400403404One problem shape

#Connect the chosen repository with a consumed token check; the member becomes the connection's owner

POST/repository-connections
Session (app only)Idempotency-KeyF-INT-03

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Idempotency-Keyrequiredstring

Durable command receipt key (05-api §7.2); the generated client sends one UUIDv7 per user intent.

Min length 8 · Max length 128 · Pattern ^[A-Za-z0-9._:-]+$

Request body application/jsonrequired

Loading the schema…

Responses

201Connected; a manual hook's URL and secret are returned once.application/json
Errors403404409422502One problem shape

#Set a connection's own rotation period (shorter than the tenant default) or reset it to the default

PATCH/repository-connections/{connectionId}
Session (app only)If-MatchF-INT-04

Path parameters

connectionIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Changed; the due date recomputed.application/json
Errors403404409412422One problem shape

#Disconnect a repository from its project; links stay as frozen history

DELETE/repository-connections/{connectionId}
Session (app only)If-MatchF-INT-02

Path parameters

connectionIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Responses

204Disconnected (or already disconnected).

No body.

Errors403404412428One problem shape

#Designate the connection's accountable owner (Admins); resumes a connection paused for "owner needed"

PUT/repository-connections/{connectionId}/owner
Session (app only)If-MatchF-INT-04

Path parameters

connectionIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Transferred.application/json
Errors403404409412422One problem shape

#Replace a connection's access token and webhook secret together; resumes a paused or expired connection

PUT/repository-connections/{connectionId}/token
Session (app only)If-MatchF-INT-04

Path parameters

connectionIdrequiredstring (uuid)

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

If-Matchrequiredstring

The resource version in quotes (05-api §7.1); missing answers 428, different answers 412.

Pattern ^"[0-9]+"$

Request body application/jsonrequired

Loading the schema…

Responses

200Replaced; a manual hook's new secret is returned once.application/json
Errors403404409412422428502One problem shape

#Verify a pasted access token with the provider and list the repositories it can read; the token is held 10 minutes

POST/repository-connections/token-checks
Session (app only)F-INT-03

Headers

X-Kanso-Tenantrequiredstring (uuid)

The tenant id of the call (05-api §8.3); unknown, foreign or inactive answers 404 tenant.not_found.

Request body application/jsonrequired

Loading the schema…

Responses

200The verified token's facts and repositories; never the token.application/json
Errors403404409422502One problem shape

Was this helpful?