Update Company [PUT]

Operation

Updates a company.

PUT
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/company/{companyId}


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter

companyIdIntegertruepath parameter
The company to be updated

Example request

PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/company/11


Entity


FieldTypeRequiredDescription
idintfalseId of the Company.
namestringtrueName of the Company.
codestringtrueGenerated code from the name of the company.
taxIdstringtrueTaxId of the Company.

companyEmailList

List of CompanyEmailfalse

companyAddressList

List of CompanyAddressfalse

companyPhoneList

List of CompanyPhonefalse

companyTaxAddress

CompanyTaxAddressfalse
remarkStringfalse
assignedUserUserfalseonly show: userName
profileTypeprofileType

companyCustomFieldValueListList of CompanyCustomFieldValue

customerProfileListList of CustomerProfile

Example Body

The body that will be sent in the operation

{
  "id": 11,
  "name": "Tesipro",
  "code": null,
  "taxId": "1234",
  "iataId": null,
  "companyEmailList": [
    {
      "id": 11,
      "primary": true,
      "emailAddressType": {
        "id": 1,
        "code": "1",
        "name": "Personal"
      },
      "email": "lrossre@microsoft.com",
      "remark": null
    }
  ],
  "companyAddressList": [
    {
      "id": 11,
      "primary": true,
      "communicationLocationType": {
        "id": 1,
        "code": "1",
        "name": "Home"
      },
      "street": "9 Colorado Junction",
      "city": "Sacramento",
      "stateProvName": "Ciudad Real",
      "stateProvCode": "ES-CR",
      "postalCode": "95818",
      "countryCode": "ES",
      "remark": "Address Remark"
    }
  ],
  "companyPhoneList": [
    {
      "id": 11,
      "primary": true,
      "phoneLocationType": {
        "id": 6,
        "code": "6",
        "name": "Home"
      },
      "phoneTechType": {
        "id": 1,
        "code": "1",
        "name": "Voice"
      },
      "countryAccessCode": "+34",
      "areaCityCode": "B",
      "phoneNumber": "1-(530)311-9303",
      "extension": "1",
      "remark": "Phone Remark"
    }
  ],
  "companyTaxAddress": {
    "id": 1,
    "communicationLocationType": null,
    "street": "9 Colorado Junction",
    "city": "Sacramento",
    "stateProvName": "Orense",
    "stateProvCode": "ES-OR",
    "postalCode": "95818",
    "countryCode": "ES",
    "remark": "Address Remark"
  },
  "remark": "Company Remarks",
  "profileType": {
	 "code": "2",
   	 "name": "Company",
     "nameI18n": "Company",
     "colorCode": "#00ACC1"
   }
}

Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation

Example response

{
  "httpStatus": "201",
  "userMessage": "Success",
  "technicalMessage": "Success company updated",
  "errorCode": "0",
  "id": 1
}