All URIs are relative to https://sandbox.caplinked.com/api/v1
| Method | HTTP request | Description |
|---|---|---|
| delete_organization_memberships | DELETE /organization/memberships | Remove organization admin membership |
| get_organization | GET /organization | Get organization information |
| get_organization_memberships | GET /organization/memberships | Show all organization members |
| post_organization_memberships | POST /organization/memberships | Add organization admin membership |
| put_organization | PUT /organization | Update organization information |
| put_organization_support_information | PUT /organization/support_information | Update support information of organization |
delete_organization_memberships(user_id)
Remove organization admin membership
Remove organization admin membership
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
user_id = 56 # int | ID of user to be removed as an organization admin
try:
# Remove organization admin membership
api_instance.delete_organization_memberships(user_id)
except ApiException as e:
print("Exception when calling OrganizationApi->delete_organization_memberships: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | int | ID of user to be removed as an organization admin |
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization get_organization()
Get organization information
Get organization information
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
try:
# Get organization information
api_response = api_instance.get_organization()
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationApi->get_organization: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
User get_organization_memberships()
Show all organization members
Show all organization members
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
try:
# Show all organization members
api_response = api_instance.get_organization_memberships()
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationApi->get_organization_memberships: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OrganizationMembership post_organization_memberships(user_id)
Add organization admin membership
Add organization admin membership
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
user_id = 56 # int | ID of user to be added as an organization admin
try:
# Add organization admin membership
api_response = api_instance.post_organization_memberships(user_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationApi->post_organization_memberships: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| user_id | int | ID of user to be added as an organization admin |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Organization put_organization(name=name, description=description, location=location, billing_email=billing_email, url=url)
Update organization information
Update organization information
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
name = 'name_example' # str | Name of the organization to update (optional)
description = 'description_example' # str | Description of the organization to update (optional)
location = 'location_example' # str | Location of the organization to update (optional)
billing_email = 'billing_email_example' # str | Billing email address of the organization to update (optional)
url = 'url_example' # str | Website of the organization to update (optional)
try:
# Update organization information
api_response = api_instance.put_organization(name=name, description=description, location=location, billing_email=billing_email, url=url)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationApi->put_organization: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| name | str | Name of the organization to update | [optional] |
| description | str | Description of the organization to update | [optional] |
| location | str | Location of the organization to update | [optional] |
| billing_email | str | Billing email address of the organization to update | [optional] |
| url | str | Website of the organization to update | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SupportInformation put_organization_support_information(phone_number=phone_number, email=email, website=website)
Update support information of organization
Update support information of organization
from __future__ import print_function
import time
import caplinked
from caplinked.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = caplinked.OrganizationApi()
phone_number = 'phone_number_example' # str | Support phone number of the organization to update (optional)
email = 'email_example' # str | Support email of the organization to update (optional)
website = 'website_example' # str | Support website of the organization to update (optional)
try:
# Update support information of organization
api_response = api_instance.put_organization_support_information(phone_number=phone_number, email=email, website=website)
pprint(api_response)
except ApiException as e:
print("Exception when calling OrganizationApi->put_organization_support_information: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| phone_number | str | Support phone number of the organization to update | [optional] |
| str | Support email of the organization to update | [optional] | |
| website | str | Support website of the organization to update | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]