API documentation | API docs for agents | OpenAPI 3.1
PATCH /api/v1/edi/connections/{connectionId}
ark.update_edi_partner_connection
Updates an EDI partner connection status, transport identifiers, routing identifiers, and setup notes.
- Availability
- Expanded preview
- Scopes
edi:write- ARK permissions
canAdminEdi- Team visibility
- Not entity-scoped
- Idempotency-Key
- Required for this write
- Approval
- No MCP approval on REST API-token calls
- Rate limit
- API credential and organization budgets
Parameters
connectionIdpathstringrequired- format: uuid
Idempotency-Keyheaderstringrequired- Required for external write operations. Reuse the same key only for exact retries of the same request body.
- min length: 1; max length: 255
Request body
partnerDisplayNamestringmin length: 1; max length: 200
requestNotesstring | nullmax length: 5000
onboardingStatusstringone of: requested, internal_review, testing, active, suspended, error, archived
transportStatusstringone of: pending, configured, testing, active, suspended, error
assignmentStatusstringone of: active, suspended, archived
serverKeystring | nullmax length: 200
agreementIdstring | nullmax length: 200
connectorIdstring | nullmax length: 200
inboundAs2Identitystring | nullmax length: 200
outboundAs2Identitystring | nullmax length: 200
isaSenderIdstring | nullmax length: 50
isaReceiverIdstring | nullmax length: 50
gsSenderIdstring | nullmax length: 50
gsReceiverIdstring | nullmax length: 50
routingDiscriminatorstring | nullmax length: 100
Example request
Shell
curl -X PATCH 'https://arktms.com/api/v1/edi/connections/<connectionId>' \
-H "Authorization: Bearer $ARK_API_TOKEN" \
-H "Idempotency-Key: <unique-key>" \
-H "Content-Type: application/json" \
-d '{}'Success response
Updated EDI partner connection
objectstringrequiredokbooleanrequiredapi_versionstringrequiredrequest_idstringrequireddataobjectrequireddata.connectionobjectrequireddata.messagestringrequiredErrors
HTTP 400- Invalid request
HTTP 401- Authentication required
HTTP 403- Permission, scope, team, or entitlement denied
HTTP 404- Resource not found
HTTP 409- Idempotency conflict or in-progress retry