Update Workspace
PATCH
/api/workspace
const url = 'http://localhost:8000/api/workspace';const options = { method: 'PATCH', headers: { cookie: 'factory_session=<factory_session>', 'Content-Type': 'application/json' }, body: '{"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url http://localhost:8000/api/workspace \ --header 'Content-Type: application/json' \ --cookie factory_session=<factory_session> \ --data '{ "name": "example" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
UpdateWorkspace
object
name
required
Name
string
Example generated
{ "name": "example"}Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Response Update Workspace Api Workspace Patch
object
key
additional properties
any
Example generated
{}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}