PUT

Update Company

Updates a Company data.

Important

Calls to this method must include the cookie .LawPanel.AuthCookie in order to identify you at user level. For more details about authentication please check this link. To obtain the cookie you can use the method Login.

Request URL

Request headers

string
Subscription key which provides access to this API.

Request body

Payload must contain information about the Company to be updated.

Most of the properties are self-explanatory, but these:

  • string Required id: The ID of the Company to be updated.
  • string Optional client_type_id: The ID for the type of Company.To get details of different types available please check this link. If you don't include this value the default type will be "Client".
  • string Optional country_id: The ID for the address country. To get details of different countries available please check this link.

Loading...
                  {
  "type": "object",
  "properties": {
    "client": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "company_registration_number": {
          "type": "string"
        },
        "contact_name": {
          "type": "string"
        },
        "contact_email": {
          "type": "string"
        },
        "contact_number": {
          "type": "string"
        },
        "contact_address": {
          "type": "object",
          "properties": {
            "line1": {
              "type": "string"
            },
            "line2": {
              "type": "string"
            },
            "line3": {
              "type": "string"
            },
            "building": {
              "type": "string"
            },
            "floor_level": {
              "type": "string"
            },
            "postal_code": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "state_province": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "country_id": {
              "type": "string"
            }
          }
        },
        "billing_address": {
          "type": "object",
          "properties": {
            "line1": {
              "type": "string"
            },
            "line2": {
              "type": "string"
            },
            "line3": {
              "type": "string"
            },
            "building": {
              "type": "string"
            },
            "floor_level": {
              "type": "string"
            },
            "postal_code": {
              "type": "string"
            },
            "city": {
              "type": "string"
            },
            "state_province": {
              "type": "string"
            },
            "region": {
              "type": "string"
            },
            "country_id": {
              "type": "string"
            }
          }
        }
      }
    },
    "client_type_id": {
      "type": "string"
    }
  },
  "example": {
    "client": {
      "id": "08053072-6b7a-4938-90d8-aad8012ad39e",
      "name": "International Association for the Intellectual Property",
      "company_registration_number": "0303456",
      "contact_name": "John Doe",
      "contact_email": "john@doe.com",
      "contact_number": "+543875333953",
      "contact_address": {
        "line1": "Los Crespones",
        "line2": "749",
        "line3": "Tres Cerritos",
        "building": "Planta Baja",
        "floor_level": "-",
        "postal_code": "4400",
        "city": "Salta Capital",
        "state_province": "Salta",
        "region": "Noroeste Argentino",
        "country_id": "27cb8e50-0e8b-40cd-a656-a6720147e0a1"
      },
      "billing_address": {
        "line1": "Alsina",
        "line2": "151",
        "line3": "Centro",
        "building": "Torre A",
        "floor_level": "2",
        "postal_code": "4400",
        "city": "Salta Capital",
        "state_province": "Salta",
        "region": "Noroeste Argentino",
        "country_id": "27cb8e50-0e8b-40cd-a656-a6720147e0a1"
      }
    },
    "client_type_id": "604a3d85-5c5b-4364-b69c-a99201175b30"
  }
}
                  
              

Response 201

Returns information about the Company Updated.

Loading...
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "successful": {
      "type": "boolean"
    }
  }
}
* See getting started for more information on how to use this API. You can also check the API change history.