Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Workspaces-Global Variables

Number of APIs: 2


1. Get global variables

GET {{baseUrl}}/workspaces/{{workspaceId}}/global-variables

Gets a workspace's global [variables]



2. Update global variables

PUT {{baseUrl}}/workspaces/{{workspaceId}}/global-variables

Updates and replaces a workspace's global [variables] This endpoint replaces all existing global variables with the variables you pass in the request body:

  • key — A string value that contains the variable's name.

  • type — A string value that contains the [type] of variable. Accepts default or secret.

  • value — A string value that contains the variable's value.

  • enabled — A boolean value that, if true, enables the variable.



ENDPOINTS