**Solved, Just remade the connector from start to finish.
Looks like a bug with the way the Microsoft page generates the swagger.
It works if I setup everything correctly initially, But if I make a connector and then edit it, the update is additive, it doesn't remove the old code. I have 2 connectors that look identical in the edit UI, but the backend code thats generated is different.
swagger: '2.0'
info:
title: Zendesk Sandbox API
description: |-
Custom Connector used to make API calls to the Zendesk Sandbox Environment.
Functions (GetTicket)
version: '1.0'
host: mySubDomain.zendesk.com
basePath: /api/v2
schemes:
- https
paths:
/tickets/{ticket_id}.json:
get:
responses:
'200':
description: default
schema:
type: object
properties:
ticket:
type: object
properties:
assignee_id:
type: integer
format: int32
description: assignee_id
collaborator_ids:
type: array
items:
type: integer
format: int32
description: collaborator_ids
created_at:
type: string
description: created_at
custom_fields:
type: array
items:
type: object
properties:
id:
type: integer
format: int32
description: id
value:
type: string
description: value
description: custom_fields
custom_status_id:
type: integer
format: int32
description: custom_status_id
description:
type: string
description: description
due_at:
type: string
description: due_at
external_id:
type: string
description: external_id
follower_ids:
type: array
items:
type: integer
format: int32
description: follower_ids
from_messaging_channel:
type: boolean
description: from_messaging_channel
generated_timestamp:
type: integer
format: int32
description: generated_timestamp
group_id:
type: integer
format: int32
description: group_id
has_incidents:
type: boolean
description: has_incidents
id:
type: integer
format: int32
description: id
organization_id:
type: integer
format: int32
description: organization_id
priority:
type: string
description: priority
problem_id:
type: integer
format: int32
description: problem_id
raw_subject:
type: string
description: raw_subject
recipient:
type: string
description: recipient
requester_id:
type: integer
format: int32
description: requester_id
satisfaction_rating:
type: object
properties:
comment:
type: string
description: comment
id:
type: integer
format: int32
description: id
score:
type: string
description: score
description: satisfaction_rating
sharing_agreement_ids:
type: array
items:
type: integer
format: int32
description: sharing_agreement_ids
status:
type: string
description: status
subject:
type: string
description: subject
submitter_id:
type: integer
format: int32
description: submitter_id
tags:
type: array
items:
type: string
description: tags
type:
type: string
description: type
updated_at:
type: string
description: updated_at
url:
type: string
description: url
via:
type: object
properties:
channel:
type: string
description: channel
description: via
description: ticket
default:
description: default
schema:
type: object
properties:
statusCode:
type: integer
format: int32
description: statusCode
headers:
type: object
properties:
Cache-Control:
type: string
description: Cache-Control
Transfer-Encoding:
type: string
description: Transfer-Encoding
Via:
type: string
description: Via
ETag:
type: string
description: ETag
x-zendesk-api-version:
type: string
description: x-zendesk-api-version
x-zendesk-application-version:
type: string
description: x-zendesk-application-version
X-Frame-Options:
type: string
description: X-Frame-Options
x-zendesk-private-db-runtime:
type: string
description: x-zendesk-private-db-runtime
x-rate-limit:
type: string
description: x-rate-limit
ratelimit-limit:
type: string
description: ratelimit-limit
x-rate-limit-remaining:
type: string
description: x-rate-limit-remaining
ratelimit-remaining:
type: string
description: ratelimit-remaining
ratelimit-reset:
type: string
description: ratelimit-reset
x-zendesk-private-zendesk-ratelimit-account-wide-api-requests:
type: string
description: >-
x-zendesk-private-zendesk-ratelimit-account-wide-api-requests
x-zendesk-private-zendesk-ratelimit-api-requests:
type: string
description: x-zendesk-private-zendesk-ratelimit-api-requests
Strict-Transport-Security:
type: string
description: Strict-Transport-Security
zendesk-route:
type: string
description: zendesk-route
x-zendesk-private-auth-info:
type: object
properties:
via:
type: string
description: via
token:
type: object
properties:
id:
type: integer
format: int32
description: id
description: token
description: x-zendesk-private-auth-info
x-zendesk-origin-server:
type: string
description: x-zendesk-origin-server
X-Request-ID:
type: string
description: X-Request-ID
x-runtime:
type: string
description: x-runtime
x-envoy-upstream-service-time:
type: string
description: x-envoy-upstream-service-time
zendesk-service:
type: string
description: zendesk-service
x-zendesk-api-gateway:
type: string
description: x-zendesk-api-gateway
x-kong-upstream-latency:
type: string
description: x-kong-upstream-latency
x-kong-proxy-latency:
type: string
description: x-kong-proxy-latency
x-zendesk-zorg:
type: string
description: x-zendesk-zorg
Vary:
type: string
description: Vary
x-envoy-decorator-operation:
type: string
description: x-envoy-decorator-operation
cf-cache-status:
type: string
description: cf-cache-status
Report-To:
type: object
properties:
endpoints:
type: array
items:
type: object
properties:
url:
type: string
description: url
description: endpoints
group:
type: string
description: group
max_age:
type: integer
format: int32
description: max_age
description: Report-To
NEL:
type: object
properties:
success_fraction:
type: number
format: float
description: success_fraction
report_to:
type: string
description: report_to
max_age:
type: integer
format: int32
description: max_age
description: NEL
Set-Cookie:
type: string
description: Set-Cookie
CF-RAY:
type: string
description: CF-RAY
x-ms-environment-id:
type: string
description: x-ms-environment-id
x-ms-tenant-id:
type: string
description: x-ms-tenant-id
x-ms-dlp-re:
type: string
description: x-ms-dlp-re
x-ms-dlp-gu:
type: string
description: x-ms-dlp-gu
x-ms-apihub-cached-response:
type: string
description: x-ms-apihub-cached-response
x-ms-apihub-obo:
type: string
description: x-ms-apihub-obo
Date:
type: string
description: Date
Content-Type:
type: string
description: Content-Type
Content-Length:
type: string
description: Content-Length
description: headers
body:
type: object
properties:
ticket:
type: object
properties:
url:
type: string
description: url
id:
type: integer
format: int32
description: id
via:
type: object
properties:
channel:
type: string
description: channel
source:
type: object
properties:
from:
type: object
properties: {}
description: from
to:
type: object
properties: {}
description: to
rel:
type: string
description: rel
description: source
description: via
created_at:
type: string
description: created_at
updated_at:
type: string
description: updated_at
generated_timestamp:
type: integer
format: int32
description: generated_timestamp
type:
type: string
description: type
subject:
type: string
description: subject
raw_subject:
type: string
description: raw_subject
description:
type: string
description: description
priority:
type: string
description: priority
status:
type: string
description: status
requester_id:
type: integer
format: int32
description: requester_id
submitter_id:
type: integer
format: int32
description: submitter_id
assignee_id:
type: integer
format: int32
description: assignee_id
group_id:
type: integer
format: int32
description: group_id
collaborator_ids:
type: array
items: {}
description: collaborator_ids
follower_ids:
type: array
items: {}
description: follower_ids
email_cc_ids:
type: array
items: {}
description: email_cc_ids
has_incidents:
type: boolean
description: has_incidents
is_public:
type: boolean
description: is_public
tags:
type: array
items:
type: string
description: tags
custom_fields:
type: array
items:
type: object
properties:
id:
type: integer
format: int32
description: id
description: custom_fields
satisfaction_rating:
type: object
properties:
score:
type: string
description: score
description: satisfaction_rating
sharing_agreement_ids:
type: array
items: {}
description: sharing_agreement_ids
custom_status_id:
type: integer
format: int32
description: custom_status_id
encoded_id:
type: string
description: encoded_id
fields:
type: array
items:
type: object
properties:
id:
type: integer
format: int32
description: id
value:
type: string
description: value
description: fields
followup_ids:
type: array
items: {}
description: followup_ids
ticket_form_id:
type: integer
format: int32
description: ticket_form_id
deleted_ticket_form_id:
type: integer
format: int32
description: deleted_ticket_form_id
brand_id:
type: integer
format: int32
description: brand_id
allow_channelback:
type: boolean
description: allow_channelback
allow_attachments:
type: boolean
description: allow_attachments
from_messaging_channel:
type: boolean
description: from_messaging_channel
description: ticket
deleted_ticket_forms:
type: array
items:
type: object
properties:
id:
type: integer
format: int32
description: id
raw_name:
type: string
description: raw_name
raw_display_name:
type: string
description: raw_display_name
end_user_visible:
type: boolean
description: end_user_visible
position:
type: string
description: position
ticket_field_ids:
type: array
items:
type: integer
format: int32
description: ticket_field_ids
active:
type: boolean
description: active
default:
type: boolean
description: default
in_all_brands:
type: boolean
description: in_all_brands
restricted_brand_ids:
type: array
items: {}
description: restricted_brand_ids
end_user_conditions:
type: array
items: {}
description: end_user_conditions
agent_conditions:
type: array
items: {}
description: agent_conditions
url:
type: string
description: url
name:
type: string
description: name
display_name:
type: string
description: display_name
created_at:
type: string
description: created_at
updated_at:
type: string
description: updated_at
deleted_at:
type: string
description: deleted_at
description: deleted_ticket_forms
description: body
summary: Get Ticket
description: Get a specific ticket using ID
operationId: GetTicket
x-ms-visibility: important
parameters:
- name: ticket_id
in: path
required: true
type: string
x-ms-openai-data:
openai-enabled: false
operations:
- operationId: GetTicket
x-ms-require-user-confirmation: false
definitions: {}
parameters: {}
responses: {}
securityDefinitions:
basic-auth:
type: basic
security:
- basic-auth: []
tags: []