FindByName() [OrganizationManager]
Get an organization by name
Description
Get an organization by organization name.
Package Details
Interface
IOrganizationManager
Syntax
await OrganizationManager.FindByName(string name)
Returns
Task<Organization>
API
GET
/api/v1/organizations/{id}
Parameters
Parameter | Description | Parameter Type |
---|---|---|
id | The name of the organization | path |
Returns
On success, 200 Ok
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
var orgName = "ACME Corporation";
var organization = await _organizationManager.FindByName(orgName);