Skip to content

Add an export to an integration

POST
/api/tenant/{tenantId}/Integrations/{id}/export
curl --request POST \
--url https://api.nimles.com/work-management/api/tenant/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/Integrations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/export \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "workItemIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "authorization": "example", "forceWorkItemIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "keepExternalWorkItemIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'

Exports the requested work items to the integration’s external system, creating new items or updating previously-exported ones (dedup via the item mapping), preserving hierarchy. The caller forwards the resolved per-user credential so items are created as the signed-in user.

id
required
string format: uuid

The integration to export through.

tenantId
required
string format: uuid

Your tenant id.

The work item ids and the resolved credential.

Media typeapplication/json
object
workItemIds
Array<string>
nullable
authorization
string
nullable
forceWorkItemIds
Array<string>
nullable
keepExternalWorkItemIds
Array<string>
nullable

Example generated

{
"workItemIds": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"authorization": "example",
"forceWorkItemIds": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"keepExternalWorkItemIds": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
}

OK

Media typeapplication/json
object
fields
object
key
additional properties
string
data
Array<object>
nullable
object
nimlesId
required
string format: uuid
title
required
string
nullable
success
required
boolean
operation
required
string
nullable
externalId
string
nullable
externalUrl
string
nullable
conflict
boolean
error
string
nullable

Example generated

{
"data": [
{
"nimlesId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"title": "example",
"success": true,
"operation": "example",
"externalId": "example",
"externalUrl": "example",
"conflict": true,
"error": "example"
}
]
}

Unauthorized: no bearer token, or one that is expired or not for this API.

Forbidden: the caller holds no role that allows this action at this scope. The body is empty, or a problem whose detail names the action.

Media typeapplication/json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Not found: no such item in the tenant.

Media typeapplication/problem+json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Conflict: the item kept changing under concurrent writes; read it again and retry.

Media typeapplication/problem+json

An RFC 9457 problem.

object
detail
string
nullable
instance
string
nullable
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"detail": "example",
"instance": "example",
"status": 1,
"title": "example",
"type": "example"
}

Unprocessable: the body or the change is invalid. The errors are keyed by member.

Media typeapplication/problem+json

A validation problem: the messages by member (or by JSON Pointer for a patch).

object
errors
object
key
additional properties
Array<string>
status
integer format: int32
nullable
title
string
nullable
type
string
nullable
key
additional properties

Example generated

{
"errors": {
"additionalProperty": [
"example"
]
},
"status": 1,
"title": "example",
"type": "example"
}