Workspaces
Update Workspace
Modifies the configuration and metadata of an existing security workspace, allowing for dynamic adjustments to workspace settings and properties.
PATCH
/
api
/
workspaces
/
{id}
Update Workspace
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/workspaces/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Workspace",
"description": "This is my workspace",
"archivedAt": {}
}
'import requests
url = "https://{baseUrl}/api/v1/api/workspaces/{id}"
payload = {
"name": "My Workspace",
"description": "This is my workspace",
"archivedAt": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My Workspace', description: 'This is my workspace', archivedAt: {}})
};
fetch('https://{baseUrl}/api/v1/api/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"My Workspace\",\n \"description\": \"This is my workspace\",\n \"archivedAt\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Success"
}⌘I
Update Workspace
curl --request PATCH \
--url https://{baseUrl}/api/v1/api/workspaces/{id} \
--header 'Content-Type: application/json' \
--data '
{
"name": "My Workspace",
"description": "This is my workspace",
"archivedAt": {}
}
'import requests
url = "https://{baseUrl}/api/v1/api/workspaces/{id}"
payload = {
"name": "My Workspace",
"description": "This is my workspace",
"archivedAt": {}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'My Workspace', description: 'This is my workspace', archivedAt: {}})
};
fetch('https://{baseUrl}/api/v1/api/workspaces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/api/v1/api/workspaces/{id}"
payload := strings.NewReader("{\n \"name\": \"My Workspace\",\n \"description\": \"This is my workspace\",\n \"archivedAt\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"message": "Success"
}