-
Notifications
You must be signed in to change notification settings - Fork 4
AddOrganizationAsync
Rasmus Wulff Jensen edited this page Nov 1, 2023
·
3 revisions
Create a new Organization (Workspace)
/// <summary>
/// Create a new Organization (Workspace)
/// </summary>
/// <param name="newOrganization">the new Organization</param>
/// <param name="cancellationToken">Cancellation Token</param>
/// <returns>The New Organization</returns>
public async Task<Organization> AddOrganizationAsync(Organization newOrganization, CancellationToken cancellationToken = default) {...}
var newOrganization = new Organization(displayName: "My Cool Workspace");
newOrganization.Description = "This is my workspace where I do cool things"; //Optional
newOrganization.Name = "myuniquelowercaseonlyname"; //Optional - If not provided Trello will auto-generate one based on displayName and a random number
newOrganization.Website = "https://www.mywebsite.com"; //Optional
Organization addedOrganization = await _trelloClient.AddOrganizationAsync(newOrganization);
If you are looking for info on a specific method in TrelloDotNet then expand the Pages above and input the 'MethodName' (Example: 'AddCardAsync')