| 278 | } |
| 279 | |
| 280 | func (c *Client) Organization(ctx context.Context, id uuid.UUID) (Organization, error) { |
| 281 | // OrganizationByName uses the exact same endpoint. It accepts a name or uuid. |
| 282 | // We just provide this function for type safety. |
| 283 | return c.OrganizationByName(ctx, id.String()) |
| 284 | } |
| 285 | |
| 286 | // CreateOrganization creates an organization and adds the user making the request as an owner. |
| 287 | func (c *Client) CreateOrganization(ctx context.Context, req CreateOrganizationRequest) (Organization, error) { |