Update repository

This chapter provides you with information on how to update existing Tricentis Tosca Test Data Service repositories.

If you want to update an existing repository, you need to send a request message with Tricentis Tosca API Scan. To do so, follow the steps below: 

  1. Launch the Tosca API Scan window.

  2. In the API Scan window, right-click the project root element. Select Create Folder from the context menu. Right-click the newly created folder and select Create Message from the context menu.

    Alternatively, you can create a message directly on the project root element.

  3. Select PUT from the Method dropdown menu.

Select method

  1. Define the endpoint in the Endpoint entry field. Add the name of the repository you want to update.

Define endpoint

  1. Expand the Headers section. Enter Content-Type in the Name column and application/json in the Value column.

Edit headers

  1. Enter the request properties with their respective values in the Payload section.

    The screenshot and example below show the appropriate message format:

Update values

Request example: 

{

"description": "description updated",

"location": "%PROGRAMDATA%\\Tricentis\\TestDataService\\data.db",

"name": "data",

"type": "Sqlite"

}

  1. Click on the Run button in the top menu.

If you want to check whether the updates were accepted, retrieve the repository.