import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
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: process.env['SGP_API_KEY'], // This is the default and can be omitted
});
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 name of the Studio Project
The description of the Studio Project
The unique identifier of the entity.
The date and time when the entity was created in ISO format.
The ID of the account that owns the given entity.
The user who originally created the entity.
The type of identity that created the entity.
user, service_account