This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tested locally + wrote integration tests
- Loading branch information
Showing
22 changed files
with
533 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,8 @@ paths: | |
$ref: paths/accounts.yaml | ||
'/accounts/{account_id}': | ||
$ref: paths/accounts@{account_id}.yaml | ||
'/accounts/_upsert': | ||
$ref: paths/[email protected] | ||
'/contacts': | ||
$ref: paths/contacts.yaml | ||
'/contacts/_search': | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
post: | ||
operationId: upsertAccount | ||
summary: Upsert account | ||
description: | | ||
Upsert an account. If the account matching the given criteria does not exist, it will be created. If the account does exist, it will be updated. | ||
Only supported for Salesforce, Hubspot, and Pipedrive. | ||
tags: | ||
- Accounts | ||
security: | ||
- x-api-key: [] | ||
parameters: [] | ||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
record: | ||
$ref: ../components/schemas/create_update_account.yaml | ||
upsert_on: | ||
type: object | ||
description: The criteria to upsert on. If both name and domain are specified, it would perform an AND operation. If more than one account is found that matches, then an error will be thrown. | ||
properties: | ||
name: | ||
type: string | ||
description: The name of the account to upsert on. Supported for all providers. | ||
domain: | ||
type: string | ||
description: The domain of the account to upsert on. Only supported for Outreach and Salesloft. | ||
required: | ||
- record | ||
- upsert_on | ||
responses: | ||
'201': | ||
description: Account upserted | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
errors: | ||
$ref: ../../../common/components/schemas/errors.yaml | ||
record: | ||
$ref: ../../../common/components/schemas/created_model.yaml | ||
warnings: | ||
$ref: ../../../common/components/schemas/warnings.yaml | ||
parameters: | ||
- $ref: ../../../common/components/parameters/header/x-customer-id.yaml | ||
- $ref: ../../../common/components/parameters/header/x-provider-name.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
1c0c438
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
supaglue-docs – ./docs
supaglue-docs-git-main-supaglue.vercel.app
supaglue-docs-supaglue.vercel.app
docs.supaglue.com