curl --request PUT \
--url https://api.example.com/v1/workspaces \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"id": 123,
"name": "<string>",
"plan": {
"id": "<string>",
"name": "<string>",
"price": 123,
"maxUsersNumber": 123,
"maxRecordsNumber": 123,
"maxAutomationsNumber": 123,
"maxStorage": 123
},
"promocode": {
"id": "<string>",
"partner": {
"id": "<string>",
"name": "<string>",
"promocodes": "<array>"
},
"discount": 123,
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
},
"dashboards": [
{
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"representations": [
{
"id": 123,
"dashboard": "<unknown>",
"dataset": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": [
{
"id": 123,
"dataset": "<unknown>",
"name": "<string>",
"color": 123,
"position": 123
}
],
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": "<array>"
},
"representationType": {
"id": "<string>",
"isAggregated": true,
"position": 123
},
"name": "<string>",
"parameters": "<string>",
"position": 123
}
]
}
],
"datasets": [
{
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": [
{
"id": 123,
"dataset": "<unknown>",
"name": "<string>",
"color": 123,
"position": 123
}
],
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": "<array>"
}
]
}
'{
"id": 123,
"dataset": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": "<array>",
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": [
{
"id": 123,
"dashboard": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"representations": "<array>"
},
"dataset": "<unknown>",
"representationType": {
"id": "<string>",
"isAggregated": true,
"position": 123
},
"name": "<string>",
"parameters": "<string>",
"position": 123
}
]
},
"name": "<string>",
"color": 123,
"position": 123
}Updates an existing workspace.
curl --request PUT \
--url https://api.example.com/v1/workspaces \
--header 'Content-Type: application/json-patch+json' \
--data '
{
"id": 123,
"name": "<string>",
"plan": {
"id": "<string>",
"name": "<string>",
"price": 123,
"maxUsersNumber": 123,
"maxRecordsNumber": 123,
"maxAutomationsNumber": 123,
"maxStorage": 123
},
"promocode": {
"id": "<string>",
"partner": {
"id": "<string>",
"name": "<string>",
"promocodes": "<array>"
},
"discount": 123,
"created": "2023-11-07T05:31:56Z",
"expires": "2023-11-07T05:31:56Z"
},
"dashboards": [
{
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"representations": [
{
"id": 123,
"dashboard": "<unknown>",
"dataset": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": [
{
"id": 123,
"dataset": "<unknown>",
"name": "<string>",
"color": 123,
"position": 123
}
],
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": "<array>"
},
"representationType": {
"id": "<string>",
"isAggregated": true,
"position": 123
},
"name": "<string>",
"parameters": "<string>",
"position": 123
}
]
}
],
"datasets": [
{
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": [
{
"id": 123,
"dataset": "<unknown>",
"name": "<string>",
"color": 123,
"position": 123
}
],
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": "<array>"
}
]
}
'{
"id": 123,
"dataset": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"states": "<array>",
"properties": [
{
"id": 123,
"dataset": "<unknown>",
"propertyType": {
"id": "<string>",
"isAutomatic": true,
"isPlural": true,
"isSortable": true,
"position": 123
},
"name": "<string>",
"isUsedAsTitle": true,
"isRequired": true,
"parameters": "<string>",
"position": 123,
"options": [
{
"id": 123,
"property": "<unknown>",
"text": "<string>",
"color": 123
}
]
}
],
"representations": [
{
"id": 123,
"dashboard": {
"id": 123,
"name": "<string>",
"isDisabled": true,
"position": 123,
"path": "<string>",
"representations": "<array>"
},
"dataset": "<unknown>",
"representationType": {
"id": "<string>",
"isAggregated": true,
"position": 123
},
"name": "<string>",
"parameters": "<string>",
"position": 123
}
]
},
"name": "<string>",
"color": 123,
"position": 123
}