Environments
Create Environment
Environments
Create Environment
POST
/
v1
/
accounts
/
{account_id}
/
environments
curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/environments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"environment": {
"displayName": "<string>",
"baseImageRef": "<string>",
"shared": true,
"annotations": {}
},
"environmentId": "<string>"
}'
{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"connection": {
"nodePoolId": "<string>",
"numRanks": 123,
"role": "<string>",
"zone": "<string>",
"useLocalStorage": true
},
"baseImageRef": "<string>",
"imageRef": "<string>",
"snapshotImageRef": "<string>",
"shared": true,
"annotations": {},
"updateTime": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The Account Id
Body
application/json
Response
200 - application/json
A successful response.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.fireworks.ai/v1/accounts/{account_id}/environments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"environment": {
"displayName": "<string>",
"baseImageRef": "<string>",
"shared": true,
"annotations": {}
},
"environmentId": "<string>"
}'
{
"name": "<string>",
"displayName": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"createdBy": "<string>",
"state": "STATE_UNSPECIFIED",
"status": {
"code": "OK",
"message": "<string>"
},
"connection": {
"nodePoolId": "<string>",
"numRanks": 123,
"role": "<string>",
"zone": "<string>",
"useLocalStorage": true
},
"baseImageRef": "<string>",
"imageRef": "<string>",
"snapshotImageRef": "<string>",
"shared": true,
"annotations": {},
"updateTime": "2023-11-07T05:31:56Z"
}