Skip to content
Start here

Modify organization profile.

client.Organizations.OrganizationProfile.Update(ctx, organizationID, body) error
PUT/organizations/{organization_id}/profile

Partially updates the business profile (name, email, phone, address, and external metadata) associated with this organization’s customer record, creating the profile if it does not exist. Changes apply to every account and organization sharing that profile. Omitted, empty, or null fields are left unchanged. Each profile field is limited to 1,000 UTF-8 bytes. Only available to members of the organization.

Security

API Email + API Key

The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

Example:X-Auth-Email: user@example.com

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

Example:X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194
ParametersExpand Collapse
organizationID string
body OrganizationProfileUpdateParams
BusinessAddress param.Field[string]Optional
BusinessEmail param.Field[string]Optional
BusinessName param.Field[string]Optional
BusinessPhone param.Field[string]Optional
ExternalMetadata param.Field[string]Optional

Modify organization profile.

package main

import (
  "context"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/organizations"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
    option.WithAPIEmail("user@example.com"),
  )
  err := client.Organizations.OrganizationProfile.Update(
    context.TODO(),
    "a7b9c3d2e8f4a1b5c6d0e9f2a3b7c4d8",
    organizations.OrganizationProfileUpdateParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples