zendesk / zendesk/sunshine-conversations-python
400 errors when creating a new custom integration
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Description
Running:
with sunshine_conversations_client.ApiClient(self.__sunco_config) as api_client:
api_instance = sunshine_conversations_client.IntegrationsApi(api_client)
integration = sunshine_conversations_client.Integration(
type="custom"
)
try:
api_response = api_instance.create_integration(self.__sunco_app_id, integration)
pprint(api_response)
except sunshine_conversations_client.ApiException as e:
print("Exception when calling IntegrationsApi->create_integration: %s\n" % e)
Results in:
HTTP response body: {"errors":[{"code":"bad_request","title":"should have required property 'webhooks'"}]}
As far as I can tell webhooks is not required when creating a new custom integration, it is not clear to me where I should even be setting this.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the IntegrationsApi.create_integration entry point and the Integration model used in the report's example. Trace how the custom integration request is built and validated, then compare that behavior with the API's requirement for webhooks. Done means the reported custom-integration request behaves consistently with the documented requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100