Rename a workspace or set its time zone
PATCH
/api/v1/workspaces/{workspaceId}
const url = 'https://api.crossmart.io/api/v1/workspaces/example';const options = { method: 'PATCH', headers: {'Content-Type': 'application/json'}, body: '{"name":"EU store","timeZone":"Asia/Jerusalem"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PATCH \ --url https://api.crossmart.io/api/v1/workspaces/example \ --header 'Content-Type: application/json' \ --data '{ "name": "EU store", "timeZone": "Asia/Jerusalem" }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
string
Example
EU storetimeZone
IANA time zone where the workspace’s day starts, for reports, such as Asia/Jerusalem
string
Example
Asia/JerusalemResponses
Section titled “Responses”Media typeapplication/json
object
id
required
string format: uuid
organizationId
required
string format: uuid
name
required
string
displayName
required
The name to show: the organization name while the workspace is named Default
string
slug
required
string
currency
required
ISO 4217 code of the catalog prices
string
timeZone
required
IANA time zone that reports follow; null until set
string
role
required
Your role here
string
customRole
required
The workspace’s own role, when role is CUSTOM
object
id
required
string format: uuid
name
required
string
permissions
required
What your role lets you do here. Check these, not the role, to adapt a UI.
Array<string>
Example
{ "currency": "USD", "timeZone": "Asia/Jerusalem", "role": "OWNER", "permissions": [ "workspace:view" ]}