Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Operation

Updates a company.

Rw ui textbox macro
typewarning

Only accessible with permission of pms.integration.profile


Style
table {
width: 100%;
}
body.page-gadget {
padding-top: 20px;
}
.separator{
margin: 5px 0;
}



Div
style background-color: khaki; color: black; display: inline-block; padding: 5px; border-radius: 3px;

PUT



Div
stylebackground-color: #0a2b1d; padding: 10px 1em; display: inline-block; color: white; border-radius: 3px;

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
fieldNamesListList<String>falserequest parameter
List of fields that has to be updated. If we don't receive that object, we update all Company fields.


Example request

Code Block
languagepowershell
themeDJango
PUT https://prodpublicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/company/111453



Entity

Insert excerpt
Company
Company
nopaneltrue

Example Body

The body that will be sent in the operation

Code Block
themeDJango
{
    	"id": 111453,
	    "name": "TesiproGabtype",
	"taxId    "code": "1234GABTY1",
    "iataIdtaxId":null,
	 "844031000",
    "companyEmailList": [
        {
		
            "id": 111452,
		
            "primary": true,
		
            "emailAddressType": {
			
                "id": 1,
			
                "code": "1",
			"name"                "name": "Personal",
                "nameI18n": "Personal"
		            },
		            "email": "awarrenfa@smugmugirobinsonrr@etsy.com",
		
            "remark": null
	}        }
    ],
	    "companyAddressList": [{
		
        {
            "id": 111452,
		            "primary": true,
		
            "communicationLocationType": {
			
                "id": 1,
			
                "code": "1",
			
                "name": "Home"
		},
		,
                "nameI18n": "Home"
            },
            "street": "6221170 ColemanSage PlaceWay",
		"city": "Newport News",
		"stateProvName": "Palencia",
		"stateProv": {
			"id": 37,
			
            "city": "Ogden",
            "stateProvName": "La Coruña",
            "stateProvCode": "ES-C",
            "postalCode": "84403",
            "countryCode": "ES",
            "remark": "Address Remark"
        }
    ],
    "companyPhoneList": [
        {
            "id": 1452,
            "primary": true,
            "phoneLocationType": {
                "id": 6,
                "code": "ES-P6",
			                "name": "Palencia",
			"countryHome",
                "nameI18n": "Home"
            },
            "phoneTechType": {
				
                "id": 199,
				1,
                "code": "ESP1",
				                "name": "SPAIN"
			}
		},
		"postalCode": "23612",
		"country": {
			"id": 199,
			"code": "ESP",
			"name": "SPAIN"
		},
		"Voice",
                "nameI18n": "Voice"
            },
            "countryAccessCode": "+34",
            "areaCityCode": "B",
            "phoneNumber": "1-(801)295-4667",
            "extension": "1",
            "remark": "Phone Remark"
        }
    ],
    "companyTaxAddress": {
        "id": 1004,
        "communicationLocationType": null,
        "street": "70 Sage Way",
        "city": "Ogden",
        "stateProvName": "Jaén",
        "stateProvCode": "ES-J",
        "municipalityName": null,
        "municipalityCode": null,
        "postalCode": "84403",
        "countryCode": "ES",
        "remark": "Address Remark"
	}],
	"companyPhoneList    },
    "remark": "Company Remarks",
    "assignedUser": null,
    "profileType": [{
		"id": 11,
		"primary": true,
		"phoneLocationType": {
			        "id": 2,
        "code": "2",
        "name": "Company",
        "nameI18n": "Company",
        "colorCode": "#00ACC1"
    },
    "companyCustomFieldValueList": [
        {
            "id": 6,
			3,
            "code": "6NATIONAL",
			"name": "Home"
		},
		"phoneTechType": {
			"id": 1,
			            "name": "National",
            "customFieldId": 5,
            "booleanValue": null,
            "numberValue": null,
            "stringValue": null,
            "dateValue": null,
            "selectValue": null,
            "multiSelectValueList": []
        }
    ],
    "customerProfileList": null,
    "extendedName": null,
    "paymentType": {
        "id": 5,
        "code": "1AG",
			
        "name": "VoicePay Agency Guest"
		    },
    		"countryAccessCodepayment": "+34",
		"areaCityCode": "B",
		"phoneNumber": "1-(757)802-6554",
		"extension": "1",
		"remark": "Phone Remark"
	}],
	"companyTaxAddressnull,
    "paymentMode": null,
    "taxDocumentType": {
        "id": 1,
        "code": "00",
        "name": "National Id Document",
        "nameI18n": "National Id Document"
    },
    "chainSource": null,
    "chainSegment": null,
    "chainChannel": null,
	"remark    "language": null,
   "Company Remarks" "chainProfileGroup": null,
    "reservationPriceModelType": null
}


Response

PropertyTypeRequiredDescription
ResponseApiMessageResponseApiMessagetrueDescription of the response of the success operation


Example response

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