> ## Documentation Index
> Fetch the complete documentation index at: https://plivo.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Update a profile

> Modify business profile information for 10DLC registration

This API lets you update certain information in a profile.

#### API Endpoint

```text POST theme={null}
https://api.plivo.com/v1/Account/{auth_id}/Profile/{profile_uuid}/
```

### Arguments

You can update only these fields of a profile. You can pass one or more of the fields during the update.

<table><tbody><tr><td><strong>entity\_type<br />string</strong></td><td><p>Filter by entity\_type.</p><p>Allowed values: `PRIVATE`, `PUBLIC`, `NON_PROFIT`, `GOVERNMENT`, `INDIVIDUAL`.</p></td></tr><tr><td><strong>company\_name<br />string</strong></td><td><p>Legal name of the company.</p></td></tr><tr><td><strong>vertical<br />string</strong></td><td><p>Filter by vertical.</p><p>Allowed values:`PROFESSIONAL`,`REAL_ESTATE`, `HEALTHCARE`, `HUMAN_RESOURCES`, `ENERGY`, `ENTERTAINMENT`, `RETAIL`, `TRANSPORTATION`,`AGRICULTURE`, `INSURANCE`, `POSTAL`, `EDUCATION`, `HOSPITALITY`, `FINANCIAL`, `POLITICAL`, `GAMBLING`, `LEGAL`, `CONSTRUCTION`, `NGO`, `MANUFACTURING`, `GOVERNMENT`, `TECHNOLOGY`, `COMMUNICATION`.</p></td></tr><tr><td><strong>address <br />object</strong></td><td><p>Postal address of the company.</p></td></tr><tr><td><strong>authorized\_contact <br />object</strong></td><td><p>Details of the authorized contact person at the company. You must provide at least one contact.</p></td></tr><tr><td><strong>website<br />string</strong></td><td><p>Business website.</p></td></tr><tr><td><strong>plivo\_subaccount<br />string</strong></td><td><p>Subaccount mapped to the profile.</p></td></tr></tbody></table>

### Returns

api\_id for the request, the respective profile\_uuid, and success message

<RequestExample>
  ```py Python theme={null}
  import sys
  sys.path.append("../plivo-python")
  import plivo

  client = plivo.RestClient("<auth_id>", "<auth_token>")
  param = {"company_name": "google", "website": "www.example.com"}
  response = client.profile.update("<profile_uuid>", param)
  print(response)
  ```

  ```ruby Ruby theme={null}
  require "rubygems"
  require "/etc/plivo-ruby/lib/plivo.rb"
  include Plivo

  api = RestClient.new("<auth_id>", "<auth_token>")

  begin
  	# Update Profile
  	puts('Update Profile')
  	response=api.profile.update("<profile_uuid>", 
  		company_name: "Name of Company",
  	    website: "www.plivo.com");

  	puts response
  rescue PlivoRESTError => e
  	puts 'Exception: ' + e.message
  end
  ```

  ```js Node theme={null}
  let plivo = require('plivo');

  var params = { "company_name": "twitter.com" }
  var client = new plivo.Client("<auth_id>", "<auth_token>");
  client.profile.update("<profile_uuid>", params)
      .then(function (response) {
          console.log(response);
      })
      .catch(function (error) {
          console.log(error);
      });
  ```

  ```php PHP theme={null}
  <?php

  require '/etc/plivo-php/vendor/autoload.php';
  use Plivo\RestClient;
  $client = new RestClient("<auth_id>", "<auth_token>");
  $address = array(
      "street" => "123",
      "city" => "Band",
      "state" => "NY",
      "postal_code" => "10008",
      "country" => "US"
  );

  $client
      ->client
      ->setTimeout(60);
  try
  {
      $res = $client
          ->profile
          ->update("<profile_uuid>", ['address' => $address, 'vertical' => "PROFESSIONAL"]);
      print_r($res);
  }
  catch(PlivoRestException $ex)
  {
      print_r($ex);
  }

  ?>
  ```

  ```java Java theme={null}
  package com.plivo.examples;

  import com.plivo.api.Plivo;
  import com.plivo.api.models.profile.Profile;

  public class PlivoTest {

      public static void main(String[] args) {

          Plivo.init("<auth_id>", "<auth_token>");

          // Update Profile
          try {
              Profile response = Profile.update("<Profile_UUID>")
                  .companyName("new company name")
                  .vertical("PROFESSIONAL")
                  .update();
              System.out.println(response);
          } catch (Exception e) {
              e.printStackTrace();
          }
      }
  }
  ```

  ```csharp .NET theme={null}
  // Available in versions >= 5.9.0 (https://github.com/plivo/plivo-dotnet/releases/tag/v5.9.0)

  using System;
  using System.Collections.Generic;
  using Plivo;
  using Plivo.Exception;
  using Plivo.Resource.Profile;

  namespace dotnet_project
  {
      class Ten_dlc
      {
          static void Main(string[] args)
          {

              var api = new PlivoApi("<auth_id>", "<auth_token>");

              // Update a Profile
              try
              {
                  AuthorizedContact contact = new AuthorizedContact();
                  contact.Email = "test@gmail.com";
                  Address address = new Address();
                  address.PostalCode = "560099";
                  var response = api.Profile.Update("f8ca5a50-50b8-438d-8068-28427b1c0e90", "Update Name");
                  Console.WriteLine(response);
              }
              catch (PlivoRestException e)
              {
                  Console.WriteLine("Exception: " + e.Message);
              }


          }
      }
  }
  ```

  ```go Go theme={null}
  package main

  import (
          "fmt"
          "os"

          plivo "github.com/plivo/plivo-go/v7"
  )

  var client *plivo.Client

  func initClient(authID, authToken string) {
          var er error
          copts := &plivo.ClientOptions{}
          client, er = plivo.NewClient(authID, authToken, copts)
          if er != nil {
                  panic(er)
          }
  }

  func main() {
          initClient("<auth_id>", "<auth_token>")
          //Update Profile
          input := plivo.UpdateProfileRequestParams{
                  Website: "www.google1.com",
                  EntityType: "PRIVATE",
                  Address: &plivo.Address{
                          Street:      "Street Name",
                          City:        "City Name",
                          State:       "NY",
                          PostalCode: "10001",
                          Country:     "US",
                  },
          }
          response, err := client.Profile.Update("<profile_uuid>", input)
          if err != nil {
                  fmt.Printf("Error occurred while updating profile. error:%+v\n", err)
                  os.Exit(1)
          } else {
                  fmt.Printf("%+v\n", response)
          }
  }
  ```

  ```sh cURL theme={null}
  curl -i --user auth_id:auth_token \
      -H 'Content-Type: application/json' \
      -d '{
          "vertical":"ENTERTAINMENT"    
      }' \
      https://api.plivo.com/v1/Account/{auth_id}/Profile/{profile_uuid}/
  ```
</RequestExample>

### Response

```json theme={null}
{
    "api_id": "752e99d0-baf3-11ec-ac74-0242ac110002",
    "profile": {
        "address": {
            "city": "New York",
            "country": "US",
            "postal_code": "10001",
            "state": "NY",
            "street": "123"
        },
        "alt_business_id": "ABC",
        "alt_business_id_type": "DUNS",
        "authorized_contact": {
            "email": "edith@example.com",
            "first_name": "edith",
            "last_name": "sam",
            "phone": "12125557778",
            "seniority": "admin",
            "title": "Sam"
        },
        "company_name": "ABC Inc.12345",
        "customer_type": "RESELLER",
        "ein": "12125552222",
        "ein_issuing_country": "US",
        "entity_type": "PUBLIC",
        "plivo_subaccount": "SA2025RK4E639VJFZAMM",
        "primary_profile": "c780f9d0-e3c9-4d13-87f7-b898654569b0",
        "profile_alias": "edith_sam",
        "profile_type": "SECONDARY",
        "profile_uuid": "f19c4773-4ae6-4b75-92ea-9cf3ea4227d6",
        "stock_exchange": "NYSE",
        "stock_symbol": "HIBYE",
        "vertical": "ENTERTAINMENT",
        "website": "hibye.com"
    }
}
```
