Updates an existing list by ID. Only included fields are modified.
Supports idempotency via the Idempotency-Key header.
Required scope: lists:update
Rate limit category: Write
Update a list
package main
import (
"context"
"fmt"
"github.com/Lightfld/lightfield-go"
"github.com/Lightfld/lightfield-go/option"
)
func main() {
client := githubcomlightfldlightfieldgo.NewClient(
option.WithAPIKey("My API Key"),
)
listUpdateResponse, err := client.List.Update(
context.TODO(),
"id",
githubcomlightfldlightfieldgo.ListUpdateParams{
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", listUpdateResponse.ID)
}
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}Returns Examples
{
"id": "id",
"createdAt": "createdAt",
"fields": {
"foo": {
"value": "string",
"valueType": "ADDRESS"
}
},
"httpLink": "httpLink"
}