Code
stringlengths 103
85.9k
| Summary
listlengths 0
94
|
---|---|
Please provide a description of the function:def oauth_client_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/oauth_clients#create-client"
api_path = "/api/v2/oauth/clients.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def oauth_client_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/oauth_clients#delete-client"
api_path = "/api/v2/oauth/clients/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def oauth_client_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/oauth_clients#show-client"
api_path = "/api/v2/oauth/clients/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def oauth_token_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/oauth_tokens#create-token"
api_path = "/api/v2/oauth/tokens.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def oauth_token_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/oauth_tokens#revoke-token"
api_path = "/api/v2/oauth/tokens/{id}"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def oauth_token_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/oauth_tokens#show-token"
api_path = "/api/v2/oauth/tokens/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#create-organization"
api_path = "/api/v2/organizations.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#delete-organization"
api_path = "/api/v2/organizations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def organization_field_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_fields#create-organization-fields"
api_path = "/api/v2/organization_fields.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_field_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_fields#delete-organization-field"
api_path = "/api/v2/organization_fields/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def organization_field_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_fields#show-organization-field"
api_path = "/api/v2/organization_fields/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_fields_reorder(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_fields#reorder-organization-field"
api_path = "/api/v2/organization_fields/reorder.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_membership_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_memberships#create-membership"
api_path = "/api/v2/organization_memberships.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_membership_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_memberships#delete-membership"
api_path = "/api/v2/organization_memberships/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def organization_membership_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_memberships#show-membership"
api_path = "/api/v2/organization_memberships/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_memberships_create_many(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_memberships#create-many-memberships"
api_path = "/api/v2/organization_memberships/create_many.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_organization_memberships(self, organization_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_memberships#list-memberships"
api_path = "/api/v2/organizations/{organization_id}/organization_memberships.json"
api_path = api_path.format(organization_id=organization_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_related(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#show-organizations-related-information"
api_path = "/api/v2/organizations/{id}/related.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_requests(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#list-requests"
api_path = "/api/v2/organizations/{id}/requests.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#show-organization"
api_path = "/api/v2/organizations/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_subscription_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_subscriptions#create-organization-subscription"
api_path = "/api/v2/organization_subscriptions.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organization_subscription_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_subscriptions#delete-organization-subscription"
api_path = "/api/v2/organization_subscriptions/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def organization_subscription_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_subscriptions#show-organization-subscription"
api_path = "/api/v2/organization_subscriptions/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_subscriptions(self, organization_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organization_subscriptions#list-organization-subscriptions"
api_path = "/api/v2/organizations/{organization_id}/subscriptions.json"
api_path = api_path.format(organization_id=organization_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_tags(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tags#show-tags"
api_path = "/api/v2/organizations/{id}/tags.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def organization_tags_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tags#remove-tags"
api_path = "/api/v2/organizations/{id}/tags.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def organization_tickets(self, organization_id, external_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tickets#allowed-for"
api_path = "/api/v2/organizations/{organization_id}/tickets.json"
api_path = api_path.format(organization_id=organization_id)
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if external_id:
api_query.update({
"external_id": external_id,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def organization_users(self, id, permission_set=None, role=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/users#list-users"
api_path = "/api/v2/organizations/{id}/users.json"
api_path = api_path.format(id=id)
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if permission_set:
api_query.update({
"permission_set": permission_set,
})
if role:
api_query.update({
"role": role,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def organizations_create_many(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#create-many-organizations"
api_path = "/api/v2/organizations/create_many.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organizations_create_or_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#create-or-update-organization"
api_path = "/api/v2/organizations/create_or_update.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def organizations_search(self, external_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#search-organizations-by-external-id"
api_path = "/api/v2/organizations/search.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if external_id:
api_query.update({
"external_id": external_id,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def organizations_show_many(self, external_ids=None, ids=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/organizations#show-many-organizations"
api_path = "/api/v2/organizations/show_many.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if external_ids:
api_query.update({
"external_ids": external_ids,
})
if ids:
api_query.update({
"ids": ids,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def problems_autocomplete(self, data, text=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tickets#autocomplete-problems"
api_path = "/api/v2/problems/autocomplete.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if text:
api_query.update({
"text": text,
})
return self.call(api_path, query=api_query, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def push_notification_devices_destroy_many(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/push_notification_devices#bulk-unregister-push-notification-devices"
api_path = "/api/v2/push_notification_devices/destroy_many.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def recipient_address_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/support_addresses#create-support-address"
api_path = "/api/v2/recipient_addresses.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def recipient_address_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/support_addresses#delete-recipient-address"
api_path = "/api/v2/recipient_addresses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def recipient_address_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/support_addresses#show-support-address"
api_path = "/api/v2/recipient_addresses/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def request_comment_show(self, request_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#getting-comments"
api_path = "/api/v2/requests/{request_id}/comments/{id}.json"
api_path = api_path.format(request_id=request_id, id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def request_comments(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#listing-comments"
api_path = "/api/v2/requests/{id}/comments.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def request_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#create-request"
api_path = "/api/v2/requests.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def request_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#show-request"
api_path = "/api/v2/requests/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def requests_list(self, status=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#list-requests"
api_path = "/api/v2/requests.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if status:
api_query.update({
"status": status,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def requests_search(self, cc_id=None, organization_id=None, query=None, status=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/requests#search-requests"
api_path = "/api/v2/requests/search.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if cc_id:
api_query.update({
"cc_id": cc_id,
})
if organization_id:
api_query.update({
"organization_id": organization_id,
})
if query:
api_query.update({
"query": query,
})
if status:
api_query.update({
"status": status,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def resource_collection_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/resource_collections#create-a-resource-collection"
api_path = "/api/v2/resource_collections.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def resource_collection_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/resource_collections#delete-a-resource-collection"
api_path = "/api/v2/resource_collections/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def resource_collection_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/resource_collections#retrieve-a-resource-collection"
api_path = "/api/v2/resource_collections/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def resource_collections_update(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/resource_collections#update-a-resource-collection"
api_path = "/api/v2/resource_collections.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def role_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/roles#create-role"
api_path = "/api/v2/roles"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def role_delete(self, role_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/roles#delete-role"
api_path = "/api/v2/roles/{role_id}"
api_path = api_path.format(role_id=role_id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def role_show(self, role_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/roles#get-role"
api_path = "/api/v2/roles/{role_id}"
api_path = api_path.format(role_id=role_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def role_update(self, role_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/roles#update-role"
api_path = "/api/v2/roles/{role_id}"
api_path = api_path.format(role_id=role_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def satisfaction_rating_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/satisfaction_ratings#show-satisfaction-rating"
api_path = "/api/v2/satisfaction_ratings/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def satisfaction_ratings_list(self, score=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/satisfaction_ratings#list-satisfaction-ratings"
api_path = "/api/v2/satisfaction_ratings.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if score:
api_query.update({
"score": score,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def satisfaction_reason_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/satisfaction_reasons#show-reason-for-satisfaction-rating"
api_path = "/api/v2/satisfaction_reasons/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def search(self, query=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/search#list-search-results"
api_path = "/api/v2/search.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if query:
api_query.update({
"query": query,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def sharing_agreement_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sharing_agreements#create-sharing-agreement"
api_path = "/api/v2/sharing_agreements.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def sharing_agreement_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sharing_agreements#delete-a-sharing-agreement"
api_path = "/api/v2/sharing_agreements/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def sharing_agreement_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sharing_agreements#show-a-sharing-agreement"
api_path = "/api/v2/sharing_agreements/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def shortcut_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/shortcuts#create-shortcut"
api_path = "/api/v2/shortcuts"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def shortcut_delete(self, shortcut_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/shortcuts#delete-shortcut"
api_path = "/api/v2/shortcuts/{shortcut_id}"
api_path = api_path.format(shortcut_id=shortcut_id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def shortcut_show(self, shortcut_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/shortcuts#get-shortcut"
api_path = "/api/v2/shortcuts/{shortcut_id}"
api_path = api_path.format(shortcut_id=shortcut_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def shortcut_update(self, shortcut_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/shortcuts#update-shortcut"
api_path = "/api/v2/shortcuts/{shortcut_id}"
api_path = api_path.format(shortcut_id=shortcut_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def skill_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#create-skill"
api_path = "/api/v2/skills"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def skill_delete(self, skill_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#delete-skill-by-id"
api_path = "/api/v2/skills/{skill_id}"
api_path = api_path.format(skill_id=skill_id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def skill_show(self, skill_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#get-skill-by-id"
api_path = "/api/v2/skills/{skill_id}"
api_path = api_path.format(skill_id=skill_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def skill_update(self, skill_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#update-skill-by-id"
api_path = "/api/v2/skills/{skill_id}"
api_path = api_path.format(skill_id=skill_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def skills_name_delete(self, name, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#delete-skill-by-name"
api_path = "/api/v2/skills/name/{name}"
api_path = api_path.format(name=name)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def skills_name_show(self, name, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#get-skill-by-name"
api_path = "/api/v2/skills/name/{name}"
api_path = api_path.format(name=name)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def skills_name_update(self, name, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/skills#update-skill-by-name"
api_path = "/api/v2/skills/name/{name}"
api_path = api_path.format(name=name)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def skip_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_skips#record-a-new-skip-for-the-current-user"
api_path = "/api/v2/skips.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def slas_policies_reorder(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sla_policies#reorder-sla-policies"
api_path = "/api/v2/slas/policies/reorder.json"
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def slas_policy_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sla_policies#create-sla-policy"
api_path = "/api/v2/slas/policies"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def slas_policy_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sla_policies#delete-sla-policy"
api_path = "/api/v2/slas/policies/{id}"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def slas_policy_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/sla_policies#get-sla-policy"
api_path = "/api/v2/slas/policies/{id}"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def stream_agent_show(self, metric_key, department_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/apis#get-single-agent-status"
api_path = "/stream/agents/{metric_key}"
api_path = api_path.format(metric_key=metric_key)
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if department_id:
api_query.update({
"department_id": department_id,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def stream_agents_list(self, department_id=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/apis#get-all-agents-status"
api_path = "/stream/agents"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if department_id:
api_query.update({
"department_id": department_id,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def stream_chat_show(self, metric_key, department_id=None, window=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/apis#get-single-chat-metric"
api_path = "/stream/chats/{metric_key}"
api_path = api_path.format(metric_key=metric_key)
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if department_id:
api_query.update({
"department_id": department_id,
})
if window:
api_query.update({
"window": window,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def stream_chats_list(self, department_id=None, window=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/apis#get-all-chat-metrics"
api_path = "/stream/chats"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if department_id:
api_query.update({
"department_id": department_id,
})
if window:
api_query.update({
"window": window,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def stream_chats_missed_chats_list(self, window=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/chat/apis#example-response"
api_path = "/stream/chats/missed_chats"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if window:
api_query.update({
"window": window,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def suspended_ticket_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/suspended_tickets#delete-suspended-ticket"
api_path = "/api/v2/suspended_tickets/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def suspended_ticket_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/suspended_tickets#show-suspended-ticket"
api_path = "/api/v2/suspended_tickets/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def target_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/targets#create-target"
api_path = "/api/v2/targets.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def target_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/targets#delete-target"
api_path = "/api/v2/targets/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def target_failure_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/target_failures#show-target-failure"
api_path = "/api/v2/target_failures/{id}"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def target_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/targets#show-target"
api_path = "/api/v2/targets/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_audit_show(self, ticket_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_audits#show-audit"
api_path = "/api/v2/tickets/{ticket_id}/audits/{id}.json"
api_path = api_path.format(ticket_id=ticket_id, id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_audits(self, ticket_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_audits#list-audits-for-a-ticket"
api_path = "/api/v2/tickets/{ticket_id}/audits.json"
api_path = api_path.format(ticket_id=ticket_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_audits_list(self, cursor=None, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_audits#list-all-ticket-audits"
api_path = "/api/v2/ticket_audits.json"
api_query = {}
if "query" in kwargs.keys():
api_query.update(kwargs["query"])
del kwargs["query"]
if cursor:
api_query.update({
"cursor": cursor,
})
return self.call(api_path, query=api_query, **kwargs) | [] |
Please provide a description of the function:def ticket_collaborators(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tickets#list-collaborators-for-a-ticket"
api_path = "/api/v2/tickets/{id}/collaborators.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_comment_attachment_redact(self, ticket_id, comment_id, attachment_id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/attachments#redact-comment-attachment"
api_path = "/api/v2/tickets/{ticket_id}/comments/{comment_id}/attachments/{attachment_id}/redact.json"
api_path = api_path.format(ticket_id=ticket_id, comment_id=comment_id, attachment_id=attachment_id)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def ticket_comment_make_private(self, ticket_id, id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_comments#make-comment-private"
api_path = "/api/v2/tickets/{ticket_id}/comments/{id}/make_private.json"
api_path = api_path.format(ticket_id=ticket_id, id=id)
return self.call(api_path, method="PUT", data=data, **kwargs) | [] |
Please provide a description of the function:def ticket_comments(self, ticket_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_comments#list-comments"
api_path = "/api/v2/tickets/{ticket_id}/comments.json"
api_path = api_path.format(ticket_id=ticket_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tickets#create-ticket"
api_path = "/api/v2/tickets.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def ticket_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/tickets#delete-ticket"
api_path = "/api/v2/tickets/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def ticket_field_create(self, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#create-ticket-field"
api_path = "/api/v2/ticket_fields.json"
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def ticket_field_delete(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#delete-ticket-field"
api_path = "/api/v2/ticket_fields/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, method="DELETE", **kwargs) | [] |
Please provide a description of the function:def ticket_field_option_create(self, field_id, id, data, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#create-or-update-a-ticket-field-option"
api_path = "/api/v2/ticket_fields/{field_id}/options/{id}.json"
api_path = api_path.format(field_id=field_id, id=id)
return self.call(api_path, method="POST", data=data, **kwargs) | [] |
Please provide a description of the function:def ticket_field_option_show(self, field_id, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#show-a-ticket-field-option"
api_path = "/api/v2/ticket_fields/{field_id}/options/{id}.json"
api_path = api_path.format(field_id=field_id, id=id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_field_options(self, field_id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#list-ticket-field-options"
api_path = "/api/v2/ticket_fields/{field_id}/options.json"
api_path = api_path.format(field_id=field_id)
return self.call(api_path, **kwargs) | [] |
Please provide a description of the function:def ticket_field_show(self, id, **kwargs):
"https://developer.zendesk.com/rest_api/docs/core/ticket_fields#show-ticket-field"
api_path = "/api/v2/ticket_fields/{id}.json"
api_path = api_path.format(id=id)
return self.call(api_path, **kwargs) | [] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.