| 205 | } |
| 206 | |
| 207 | func (s *Session) CreateOrg(ctx context.Context, orgName string) (*Organization, error) { |
| 208 | orgInput := CreateOrgJSONRequestBody{ |
| 209 | Name: orgName, |
| 210 | } |
| 211 | |
| 212 | var orgOutput Organization |
| 213 | if err := s.post(ctx, "/orgs", orgInput, &orgOutput); err != nil { |
| 214 | return nil, err |
| 215 | } |
| 216 | return &orgOutput, nil |
| 217 | } |
| 218 | |
| 219 | func (s *Session) CreateService(ctx context.Context, orgSlug, serviceName, serverType string, localhostPort *int) (*Service, error) { |
| 220 | serviceInput := CreateServiceJSONRequestBody{ |