import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const studioProject = await client.studioProjects.create({
account_id: 'account_id',
description: 'description',
name: 'name',
studio_api_key: 'studio_api_key',
});
console.log(studioProject.id);
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user"
}
Creates a studio project
This API can be used to create a studio project. To use this API, review the request schema and pass in all fields that are required to create a studio project.
import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const studioProject = await client.studioProjects.create({
account_id: 'account_id',
description: 'description',
name: 'name',
studio_api_key: 'studio_api_key',
});
console.log(studioProject.id);
{
"name": "<string>",
"description": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"account_id": "<string>",
"created_by_user_id": "<string>",
"created_by_identity_type": "user"
}
Successful Response
The response is of type object
.