createProject
Create one or more new projects
/Projects
Usage and SDK Samples
using System;
using System.Diagnostics;
using Xero.NetStandard.OAuth2.Api;
using Xero.NetStandard.OAuth2.Client;
using Xero.NetStandard.OAuth2.Model;
namespace Example
{
public class CreateProjectExample
{
public async Task Main()
{
var accessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new ProjectApi();
var xeroTenantId = "xeroTenantId_example";
var idempotencyKey = "KEY_VALUE";
try {
var result = await apiInstance.CreateProjectAsync(accessToken, xeroTenantId, projectCreateOrUpdate, idempotencyKey);
Console.WriteLine(result);
}
catch (Exception e)
{
Console.WriteLine("Exception when calling apiInstance.CreateProject: " + e.Message );
}
}
}
}
Scopes
projects | Grant read-write access to projects |
Parameters
Name | Description |
---|---|
Xero-Tenant-Id* |
String
Xero identifier for Tenant
Required
|
Idempotency-Key |
String
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
Name | Description |
---|---|
projectCreateOrUpdate * |
ProjectCreateOrUpdate
Create a new project with ProjectCreateOrUpdate object
Required
|