action getpostman_update_workspace { label: "Update Workspace" description: "This endpoint allows you to update a workspace and update it's association to entities like `collections`, `environments`, `mocks` and `monitors` using their `uid`.\n\nOn successful updation of the workspace, the response returns the workspcae `name` and `id`.\n\n> Requires API Key as `X-Api-Key` request header or `apikey` URL query parameter.\n\n**Note** : The endpoint expects you to send the desired state of the workspace in terms of the associated entities so be careful when trying to update these entities.\n\nFor eg. if your workspace has collections A and B, and in the update call, you send C's uid in the collections array, then A and B would be removed from the workspace and C would be added." provider: getpostman method: PUT path: "/workspaces/{workspace_id}" encoding: json input: { type: "object" properties: { workspace: { type: "object" properties: { collections: { type: "array" items: { type: "object" properties: { id: { type: "string" } name: { type: "string" } uid: { type: "string" } } } } description: { type: "string" } environments: { type: "array" items: { type: "object" properties: { id: { type: "string" } name: { type: "string" } uid: { type: "string" } } } } mocks: { type: "array" items: { type: "object" properties: { id: { type: "string" } } } } monitors: { type: "array" items: { type: "object" properties: { id: { type: "string" } } } } name: { type: "string" } } } } } output: { type: "object" properties: { workspace: { type: "object" properties: { id: { type: "string" } name: { type: "string" } } } } } }