Skip to main content
PUT
/
workspaces
/
{workspace_token}
Update workspace
curl --request PUT \
  --url https://api.vantage.sh/v2/workspaces/{workspace_token} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "enable_currency_conversion": true,
  "currency": "AED",
  "exchange_rate_date": "daily_rate"
}
'
{
  "token": "wrkspc_a44f83d3e85be91d",
  "name": "My Workspace (Edited)",
  "created_at": "2024-10-01T01:00:56Z",
  "enable_currency_conversion": true,
  "currency": "EUR",
  "exchange_rate_date": "daily_rate"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

workspace_token
string
required

Body

application/json
name
string

Name of the workspace.

enable_currency_conversion
boolean
default:true

Enable currency conversion for the workspace.

currency
enum<string>

Currency code for the workspace.

Available options:
AED,
AFN,
ALL,
AMD,
ANG,
AOA,
ARS,
AUD,
AWG,
AZN,
BAM,
BBD,
BDT,
BGN,
BHD,
BIF,
BMD,
BND,
BOB,
BRL,
BSD,
BTC,
BTN,
BWP,
BYN,
BYR,
BZD,
CAD,
CDF,
CHF,
CLF,
CLP,
CNY,
COP,
CRC,
CUC,
CUP,
CVE,
CZK,
DJF,
DKK,
DOP,
DZD,
EGP,
ERN,
ETB,
EUR,
FJD,
FKP,
GBP,
GEL,
GGP,
GHS,
GIP,
GMD,
GNF,
GTQ,
GYD,
HKD,
HNL,
HRK,
HTG,
HUF,
IDR,
ILS,
IMP,
INR,
IQD,
IRR,
ISK,
JEP,
JMD,
JOD,
JPY,
KES,
KGS,
KHR,
KMF,
KPW,
KRW,
KWD,
KYD,
KZT,
LAK,
LBP,
LKR,
LRD,
LSL,
LTL,
LVL,
LYD,
MAD,
MDL,
MGA,
MKD,
MMK,
MNT,
MOP,
MRO,
MUR,
MVR,
MWK,
MXN,
MYR,
MZN,
NAD,
NGN,
NIO,
NOK,
NPR,
NZD,
OMR,
PAB,
PEN,
PGK,
PHP,
PKR,
PLN,
PYG,
QAR,
RON,
RSD,
RUB,
RWF,
SAR,
SBD,
SCR,
SDG,
SEK,
SGD,
SHP,
SLL,
SOS,
SRD,
SSP,
STD,
STN,
SVC,
SYP,
SZL,
THB,
TJS,
TMT,
TND,
TOP,
TRY,
TTD,
TWD,
TZS,
UAH,
UGX,
USD,
UYU,
UZS,
VEF,
VND,
VUV,
WST,
XAF,
XCD,
XDR,
XOF,
XPF,
YER,
ZAR,
ZMW,
ZWL
exchange_rate_date
enum<string>
default:daily_rate

The date to use for currency conversion.

Available options:
daily_rate,
end_of_billing_period_rate

Response

Workspace model

token
string
name
string

The name of the Workspace.

Example:

"Acme Corp."

created_at
string

The date and time, in UTC, the Workspace was created. ISO 8601 Formatted.

Example:

"2023-08-04T00:00:00Z"

enable_currency_conversion
boolean

Whether or not currency conversion is enabled for the Workspace.

currency
string

The currency code for the Workspace that will be used for currency conversion.

Example:

"USD"

exchange_rate_date
string

The exchange rate date that will be used to convert currency for your cost data.