# Instance Org Actions Details on the various actions that can be performed on the Instance Org resource, including the expected parameters and the potential responses. ##### Contents * [Delete](#delete) * [Get](#get) * [Patch](#patch)
## Delete Deletes an organization ```ruby result = client.instance_org.delete( instanceId: my_instance_id, orgId: my_org_id) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.User, instanceOrg.*, or instanceOrg.delete. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 | | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Success](_schemas.md#success) | If organization was successfully deleted | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if organization was not found |
## Get Retrieves information on an organization ```ruby result = client.instance_org.get( instanceId: my_instance_id, orgId: my_org_id) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.Instance.read, all.User, all.User.read, instanceOrg.*, or instanceOrg.get. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 | | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 | | summaryInclude | string | N | Comma-separated list of summary fields to include in org summary | | payloadCount | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Instance Organization](_schemas.md#instance-organization) | A single organization | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if organization was not found |
## Patch Updates information about an organization ```ruby result = client.instance_org.patch( instanceId: my_instance_id, orgId: my_org_id, organization: my_organization) puts result ``` #### Authentication The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.User, instanceOrg.*, or instanceOrg.patch. #### Available Parameters | Name | Type | Required | Description | Default | Example | | ---- | ---- | -------- | ----------- | ------- | ------- | | instanceId | string | Y | ID associated with the instance | | 575ec8687ae143cd83dc4a97 | | orgId | string | Y | ID associated with the organization | | 575ed6e87ae143cd83dc4aa8 | | summaryInclude | string | N | Comma-separated list of summary fields to include in org summary | | payloadCount | | organization | [Instance Owned Organization Patch](_schemas.md#instance-owned-organization-patch) | Y | Object containing new organization properties | | [Instance Owned Organization Patch Example](_schemas.md#instance-owned-organization-patch-example) | | losantdomain | string | N | Domain scope of request (rarely needed) | | example.com | #### Successful Responses | Code | Type | Description | | ---- | ---- | ----------- | | 200 | [Instance Organization](_schemas.md#instance-organization) | Updated organization information | #### Error Responses | Code | Type | Description | | ---- | ---- | ----------- | | 400 | [Error](_schemas.md#error) | Error if malformed request | | 404 | [Error](_schemas.md#error) | Error if organization was not found |