Toggl.Api now supports project creation

We just updated the Panoramic Data Toggl.Api nuget package (NuGet Gallery | Toggl.Api 9.0.55) to support Toggl Project creation in c#.

Here’s how you can use it in an async function

var dto = new ProjectCreationDto
{
	IsActive = true,
	IsPrivate = false,
	IsShared = false,
	Name = "My Project Name"

return await client.Projects.CreateAsync(WorkspaceId, dto, cancellationToken).ConfigureAwait(false);

Just use the ProjectCreationDto.
There are lots of other properties on t here that you can set, and a few of them are “required”, i.e. must be set when doing a new() on the ProjectCreationDto.

Remember, you must have the correct privileges in Toggl (your API key) in order to create projects, else you’ll receive a Forbidden / exception.

Enjoy and send us any feedback you might have.

2 Likes