All URIs are relative to https://api.attio.com
| Method | HTTP request | Description |
|---|---|---|
| V2ListsGet | Get /v2/lists | List all lists |
| V2ListsListGet | Get /v2/lists/{list} | Get a list |
| V2ListsListPatch | Patch /v2/lists/{list} | Update a list |
| V2ListsPost | Post /v2/lists | Create a list |
V2ListsGet200Response V2ListsGet(ctx).Execute()
List all lists
package main
import (
"context"
"fmt"
"os"
libattio "github.com/sid6mathur/libattio"
)
func main() {
configuration := libattio.NewConfiguration()
apiClient := libattio.NewAPIClient(configuration)
resp, r, err := apiClient.ListsAPI.V2ListsGet(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ListsAPI.V2ListsGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V2ListsGet`: V2ListsGet200Response
fmt.Fprintf(os.Stdout, "Response from `ListsAPI.V2ListsGet`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiV2ListsGetRequest struct via the builder pattern
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2ListsPost200Response V2ListsListGet(ctx, list).Execute()
Get a list
package main
import (
"context"
"fmt"
"os"
libattio "github.com/sid6mathur/libattio"
)
func main() {
list := "33ebdbe9-e529-47c9-b894-0ba25e9c15c0" // string |
configuration := libattio.NewConfiguration()
apiClient := libattio.NewAPIClient(configuration)
resp, r, err := apiClient.ListsAPI.V2ListsListGet(context.Background(), list).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ListsAPI.V2ListsListGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V2ListsListGet`: V2ListsPost200Response
fmt.Fprintf(os.Stdout, "Response from `ListsAPI.V2ListsListGet`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| list | string |
Other parameters are passed through a pointer to a apiV2ListsListGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2ListsPost200Response V2ListsListPatch(ctx, list).V2ListsListPatchRequest(v2ListsListPatchRequest).Execute()
Update a list
package main
import (
"context"
"fmt"
"os"
libattio "github.com/sid6mathur/libattio"
)
func main() {
list := "33ebdbe9-e529-47c9-b894-0ba25e9c15c0" // string |
v2ListsListPatchRequest := *libattio.NewV2ListsListPatchRequest(*libattio.NewV2ListsListPatchRequestData()) // V2ListsListPatchRequest |
configuration := libattio.NewConfiguration()
apiClient := libattio.NewAPIClient(configuration)
resp, r, err := apiClient.ListsAPI.V2ListsListPatch(context.Background(), list).V2ListsListPatchRequest(v2ListsListPatchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ListsAPI.V2ListsListPatch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V2ListsListPatch`: V2ListsPost200Response
fmt.Fprintf(os.Stdout, "Response from `ListsAPI.V2ListsListPatch`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| list | string |
Other parameters are passed through a pointer to a apiV2ListsListPatchRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
v2ListsListPatchRequest | V2ListsListPatchRequest | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
V2ListsPost200Response V2ListsPost(ctx).V2ListsPostRequest(v2ListsPostRequest).Execute()
Create a list
package main
import (
"context"
"fmt"
"os"
libattio "github.com/sid6mathur/libattio"
)
func main() {
v2ListsPostRequest := *libattio.NewV2ListsPostRequest(*libattio.NewV2ListsPostRequestData("Enterprise Sales", "enterprise_sales", "people", "read-and-write", []libattio.V2ListsPostRequestDataWorkspaceMemberAccessInner{*libattio.NewV2ListsPostRequestDataWorkspaceMemberAccessInner("50cf242c-7fa3-4cad-87d0-75b1af71c57b", "read-and-write")})) // V2ListsPostRequest |
configuration := libattio.NewConfiguration()
apiClient := libattio.NewAPIClient(configuration)
resp, r, err := apiClient.ListsAPI.V2ListsPost(context.Background()).V2ListsPostRequest(v2ListsPostRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ListsAPI.V2ListsPost``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `V2ListsPost`: V2ListsPost200Response
fmt.Fprintf(os.Stdout, "Response from `ListsAPI.V2ListsPost`: %v\n", resp)
}Other parameters are passed through a pointer to a apiV2ListsPostRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| v2ListsPostRequest | V2ListsPostRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]