cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/projects/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"goal": "<string>"
}
'import requests
url = "http://studio.premai.io/api/v1/public/projects/create"
payload = {
"name": "<string>",
"goal": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', goal: '<string>'})
};
fetch('http://studio.premai.io/api/v1/public/projects/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Projects API
Create Project
Create a new Prem project to organise datasets, snapshots, and fine-tuning workflows.
POST
/
api
/
v1
/
public
/
projects
/
create
cURL
curl --request POST \
--url http://studio.premai.io/api/v1/public/projects/create \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"goal": "<string>"
}
'import requests
url = "http://studio.premai.io/api/v1/public/projects/create"
payload = {
"name": "<string>",
"goal": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', goal: '<string>'})
};
fetch('http://studio.premai.io/api/v1/public/projects/create', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
success response
Was this page helpful?