DUET PlatformDocs
API referenceInbound sync

Sync issues

available
POST
/integrations/v1/issues/sync

Updates the status, priority, or assignee of up to 200 existing DUET issues. This endpoint doesn't create issues.

Authorization

Bearer
headerAuthorizationBearer <token>

Header Parameters

x-duet-signature*string

The signature, in the form t=<Unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>">. Sign it with your subscription secret. DUET rejects the call when t differs from DUET's clock by more than 300 seconds.

Request Body

application/json
  1. body
organization_id*string
Length1 <= length
project_id*string
Length1 <= length
delivery_id*string

An ID that is unique to the call. DUET treats a repeated delivery_id within 15 minutes as already applied.

Length1 <= length <= 200
issues*array<>
Items1 <= items <= 200

Response Body

DUET applied the call, or had already applied it (duplicate is true).

application/json
  1. response
ok*true
Value intrue
applied*integer

The number of items that DUET created or updated.

results*array<>

The outcome for each item. DUET applies each item independently, so an unknown ID doesn't fail the whole call.

duplicate?boolean

Whether DUET already applied a call with this delivery_id. When true, DUET changes nothing and the call still succeeds.

Example Request
curl -X POST 'https://api.enurgen.com/integrations/v1/issues/sync' \  -H 'x-duet-signature: string' \  -H 'Content-Type: application/json' \  -d '{  "organization_id": "string",  "project_id": "string",  "delivery_id": "string",  "issues": [    {      "issue_id": "string"    }  ]}'
Example Response
{  "ok": true,  "applied": 0,  "results": [    {      "external_id": "string",      "issue_id": "string",      "status": "created",      "reason": "string"    }  ],  "duplicate": true}