Skip to main content
PATCH
/
user_data
/
{user_data_id}
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.UserData.Update(ctx, "<id>", nil)
    if err != nil {
        log.Fatal(err)
    }
    if res.UserData != nil {
        // handle response
    }
}
{
  "data": {
    "id": "<string>",
    "type": "user_data",
    "attributes": {
      "description": "<string>",
      "content": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

user_data_id
string
required

Body

data
object
required

Response

200 - application/vnd.api+json

Success

data
object
meta
object