Skip to content

Couldn't send data to Merge ATS #27

@anntdiv

Description

@anntdiv

Hi,
I'm testing Merge ATS SDK by sending Attachment using Python example code provided but got error:
Exception when calling AttachmentsApi->attachments_create: (400) Reason: Bad Request HTTP response headers: HTTPHeaderDict({'Date': 'Fri, 16 Jul 2021 11:52:34 GMT', 'Content-Type': 'application/json', 'Content-Length': '95', 'Connection': 'keep-alive', 'Allow': 'GET, POST', 'X-Frame-Options': 'DENY', 'Vary': 'Accept-Language, Cookie, Origin', 'Content-Language': 'en', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Set-Cookie': 'sessionid=38q4nnkz8mj0949h9sgjpdqvnfgh8nd8; expires=Fri, 30 Jul 2021 11:52:34 GMT; HttpOnly; Max-Age=1209600; Path=/; SameSite=Lax; Secure', 'CF-Cache-Status': 'DYNAMIC', 'Expect-CT': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"', 'Server': 'cloudflare', 'CF-RAY': '66fb066cce783d7c-HKG', 'alt-svc': 'h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400'}) HTTP response body: {"non_field_errors":["Merge does not yet support this operation for the provided integration"]}

Info:
Integration ATS: Breezy HR

Python code:
with MergeATSClient.ApiClient(configuration) as api_client:
api_instance = attachments_api.AttachmentsApi(api_client)
x_account_token = account_token # str | Token identifying the end user.
remote_user_id = remote_user_id # str | The ID of the RemoteUser deleting the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
run_async = True # bool | Whether or not third-party updates should be run asynchronously. (optional)
attachment_request = AttachmentRequest(
remote_id="11167",
file_name="Candidate Resume",
file_url="http://alturl.com/p749b",
candidate="2872ba14-4084-492b-be96-e5eee6fc33ef",
attachment_type="RESUME",
)

try:
    api_response = api_instance.attachments_create(x_account_token, remote_user_id, run_async=run_async, attachment_request=attachment_request)
    pprint(api_response)
except MergeATSClient.ApiException as e:
    print("Exception when calling AttachmentsApi->attachments_create: %s\n" % e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions