All URIs are relative to https://api.brevo.com/v3
Method | HTTP request | Description |
---|---|---|
CompaniesAttributesGet | Get /companies/attributes | Get company attributes |
CompaniesGet | Get /companies | Get all companies |
CompaniesIdDelete | Delete /companies/{id} | Delete a company |
CompaniesIdGet | Get /companies/{id} | Get a company |
CompaniesIdPatch | Patch /companies/{id} | Update a company |
CompaniesLinkUnlinkIdPatch | Patch /companies/link-unlink/{id} | Link and Unlink company with contacts and deals |
CompaniesPost | Post /companies | Create a company |
CompanyAttributes CompaniesAttributesGet(ctx, ) Get company attributes
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CompaniesList CompaniesGet(ctx, optional) Get all companies
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *CompaniesGetOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a CompaniesGetOpts struct
Name | Type | Description | Notes |
---|---|---|---|
filters | optional.String | Filter by attrbutes. If you have filter for owner on your side please send it as {"attributes.owner":"5b1a17d914b73d35a76ca0c7"} | |
linkedContactsIds | optional.Int64 | Filter by linked contacts ids | |
linkedDealsIds | optional.String | Filter by linked deals ids | |
page | optional.Int64 | Index of the first document of the page | |
limit | optional.Int64 | Number of documents per page | [default to 50] |
sort | optional.String | Sort the results in the ascending/descending order. Default order is descending by creation if `sort` is not passed | |
sortBy | optional.String | The field used to sort field names. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CompaniesIdDelete(ctx, id) Delete a company
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Company CompaniesIdGet(ctx, id) Get a company
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Company CompaniesIdPatch(ctx, id, body) Update a company
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ||
body | Body6 | Updated company details. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CompaniesLinkUnlinkIdPatch(ctx, id, body) Link and Unlink company with contacts and deals
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ||
body | Body7 | Linked / Unlinked contacts and deals ids. |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse2002 CompaniesPost(ctx, body) Create a company
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | Body5 | Company create data. |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]