curl --request POST \
--url https://us.api.flexprice.io/v1/environments \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"type": "<string>"
}
'{
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"type": "<string>",
"updated_at": "<string>"
}Use when setting up a new environment (e.g. production, staging) for the tenant. Ideal for separating billing or config per environment.
curl --request POST \
--url https://us.api.flexprice.io/v1/environments \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"name": "<string>",
"type": "<string>"
}
'{
"created_at": "<string>",
"id": "<string>",
"name": "<string>",
"type": "<string>",
"updated_at": "<string>"
}