Creating Contract Workspaces Using the Contract Workspace Modification API

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

Prerequisites

If you have a system template ID that references a template containing all the details related to tasks, documents, and teams, you can use that template ID to create a procurement contract workspace. Available template IDs are displayed on the dashboard under Start of the navigation pathManage Next navigation step TemplatesEnd of the navigation path.

Context

The Contract Workspace Modification API enables you to create a contract workspace in SAP Ariba Contracts using the POST /contractworkspaces endpoint. You can create SAP Ariba Contracts projects (contract requests or contract workspaces) using project templates that can be pre-populated with team members, documents, tasks, references to integrated systems, and other project items. The available templates can change depending on the project information (attributes) you specify. Project templates can also contain conditions that determine the documents, tasks, and phases created according to the project attributes.

You can create a query body by specifying a project template ID and the properties required to be populated in the contract workspace.

Procedure

  1. On the dashboard, open Start of the navigation pathManage Next navigation step TemplatesEnd of the navigation path to view available template IDs.
  2. If the contract workspace does not already exist, construct a query body that can be used in the request to create the contract workspace. Many fields are populated using the domain body parameter, as follows:
  3. Invoke the POST /contractworkspaces endpoint to create a contract workspace with a system template ID. The template contains all the details related to tasks, documents, teams, and references to integrated systems.

    Request type: POST

    URL: {{runtime_url}}/contractworkspaces

    The following example creates a procurement contract workspace with the specified details:
    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, and 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 creates a 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.