Updating Contract Workspaces Using the Contract Workspace Modification API

The Contract Workspace Modification API can be implemented in a client application to use this procedure to update procurement contract workspaces in SAP Ariba Contracts.

Prerequisites

You have the unique identifier of the contract workspace you want to update.

Context

The Contract Workspace Modification API enables you to update a contract workspace in SAP Ariba Contracts using the PATCH /contractworkspaces endpoint.

You can construct a query body by specifying a contract workspace ID and the properties to be updated in the contract workspace.

Procedure

  1. Determine the fields you want to modify, and construct a query body that can be used in the request to update the contract workspace. Many fields are populated using the domain body parameter, as follows:
  2. Invoke the PATCH /contractworkspaces endpoint to update the existing contract workspace, providing the contract workspace fields for updating the contract.

    Request type: PATCH

    URL: {{runtime_url}}/contractworkspaces

    The following table describes the query parameters available with this endpoint.

    Parameter

    Description

    user and passwordAdapter

    These parameters specify your API credentials.

    realm

    This parameter specifies the unique identifier for your SAP Ariba site.

    silentUpdate

    This parameter specifies whether the contract workspace must be updated without changing the last modified date. This parameter is used by the integrated systems to update the integratedSystemRef and blockPublish fields of published contract workspaces. This is an optional parameter.

    The following example updates a contract workspace with the specified details:
    In the preceding example, the parameter silentUpdate is set to true in the endpoint which implies that the updates are performed without changing the last modified date of the contract workspace.
    accessControl

    Use the accessControl object to specify access control permission for the contract workspace. For a list of access control values available in SAP Ariba Contracts, see About the PermissionBitVec element in contract exports. However, the availability of these access control groups depends on the site configurations. Some of these groups may not be available to you.

    relatedID

    Use the relatedID object to specify a related ID. For example, the ID for a related record or document, such as an outline agreement or a contract in an external system.

    blockPublish

    Use the blockPublish object to specify if the contract workspace can be published after creation.

    integratedSystemRefs
    Use the integratedSystemRefs object to specify external systems (such as Icertis, SAP Fieldglass) to be integrated with the contract workspace.
    eventInternalId
    The predecessor sourcing project ID to associate with the contract.

Results

If the request is successful, the API updates the contract workspace with the specified details in SAP Ariba Contracts. For a list of response codes, refer to Error Messages Returned by the Contract Workspace Management APIs.

Next Steps

Open the contract in SAP Ariba Contracts and verify the details.