API ReferenceConnections

Update specific connection

Updates a connection for the authenticated user, identified by the connection ID. Processes associated files and links, optionally waiting for processing to complete if specified.

PUT
/api/connections/{id}

Authorization

AuthorizationRequiredBearer <token>

Bearer token authentication required

In: header

Request Body

multipart/form-dataRequired
linksarray<string>

Array of links to process

filesarray<file>

Array of files to upload and process

metadatastring

Optional. A string containing JSON metadata, e.g., "{"name":"mine"}"

Path Parameters

idRequiredstring

The unique identifier of the connection to update

Query Parameters

waitboolean

If true, waits for the processing operation to complete before returning. Defaults to false if omitted.

curl -X PUT "https://app.dcup.dev/api/connections/123" \
  -H "Authorization: Bearer <token>" \
  -F links="https://example/file.pdf" \
  -F files="invoice.pdf" \
  -F metadata="{\"type\":\"my work doc\"}"

Connection updated successfully

{
  "code": "ok",
  "message": "Connection successfully updated"
}