Update a B2B Document

put

/ic/api/b2b/v1/b2bdocuments/{documentId}

Updates a B2B Document with the specified document id. To modify a document used by an active agreement, you need to deactivate it first.

Request

Supported Media Types
Path Parameters
Body ()

Update b2b document request details.

Example:

{"name": "Updated Document",	"desc": "updating document desciption ", "schema": "Schema123", "std": "X12", "txId": "100", "version": "4010", "businessIdentifiers":{ "bizIdName1": "/edi-xml-document/transaction-data/C3/C301", "bizIdName2": "/edi-xml-document/transaction-data/BGN/BGN01", "bizIdName3", "/edi-xml-document/transaction-data/Loop-NM1/N3/N301"}}
Root Schema : DocumentUI
Type: object
Show Source
Nested Schema : active
Type: array
Read Only: true
Show Source
Nested Schema : activeAgr
Type: array
Read Only: true
Show Source
Nested Schema : BusinessIdentifierUI
Type: object
Show Source
Nested Schema : inActive
Type: array
Read Only: true
Show Source
Nested Schema : inActiveAgr
Type: array
Read Only: true
Show Source
Nested Schema : IntegrationResourceUI
Type: object
Show Source
Nested Schema : AgreementUI
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

Successful operation
Body ()
Root Schema : DocumentUI
Type: object
Show Source
Nested Schema : active
Type: array
Read Only: true
Show Source
Nested Schema : activeAgr
Type: array
Read Only: true
Show Source
Nested Schema : BusinessIdentifierUI
Type: object
Show Source
Nested Schema : inActive
Type: array
Read Only: true
Show Source
Nested Schema : inActiveAgr
Type: array
Read Only: true
Show Source
Nested Schema : IntegrationResourceUI
Type: object
Show Source
Nested Schema : AgreementUI
Type: object
Show Source

400 Response

Bad request, malformed parameters or missing required data

412 Response

Pre condition failure, please ensure that the length of name is no longer that 50 characters, length of identifier is no longer than 32 characters, length of decsription is no longer than 1024 characters, length of identifier is no longer than 32 characters, Name and Identifier should not be named as 'Standard' or 'Default' and there must be a valid combination of std, version and txId

500 Response

Server error
Back to Top