Update Company [PUT]
Operation
Updates a company.
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | ||
companyId | Integer | true | path parameter | The company to be updated | |
fieldNamesList | List<String> | false | request parameter | List of fields that has to be updated. If we don't receive that object, we update all Company fields. |
Example request
PUT https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/company/1453
Entity
companyEmailList companyAddressList companyPhoneList companyTaxAddress falseField Type Required Description id int true (only in UPDATE proccess) Id of the Company. name string true Name of the Company. code string true Generated code from the name of the company. taxId string true TaxId of the Company. List of CompanyEmail false List of CompanyAddress false List of CompanyPhone false CompanyTaxAddress false remark String false assignedUser User false only show: userName profileType profileType false companyCustomFieldValueList List of CompanyCustomFieldValue false customerProfileList List of CustomerProfile extendedName String false paymentType PaymentType false payment Payment false paymentMode PaymentMode false taxDocumentType TaxDocumentType false chainSource ChainSource false chainSegment ChainSegment false chainChannel ChainSegment false language Language false chainProfileGroup ChainProfileGroup false reservationPriceModelType ReservationPriceModelType false
Example Body
The body that will be sent in the operation
{ "id": 1453, "name": "Gabtype", "code": "GABTY1", "taxId": "844031000", "companyEmailList": [ { "id": 1452, "primary": true, "emailAddressType": { "id": 1, "code": "1", "name": "Personal", "nameI18n": "Personal" }, "email": "irobinsonrr@etsy.com", "remark": null } ], "companyAddressList": [ { "id": 1452, "primary": true, "communicationLocationType": { "id": 1, "code": "1", "name": "Home", "nameI18n": "Home" }, "street": "70 Sage Way", "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": "6", "name": "Home", "nameI18n": "Home" }, "phoneTechType": { "id": 1, "code": "1", "name": "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" }, "remark": "Company Remarks", "assignedUser": null, "profileType": { "id": 2, "code": "2", "name": "Company", "nameI18n": "Company", "colorCode": "#00ACC1" }, "companyCustomFieldValueList": [ { "id": 3, "code": "NATIONAL", "name": "National", "customFieldId": 5, "booleanValue": null, "numberValue": null, "stringValue": null, "dateValue": null, "selectValue": null, "multiSelectValueList": [] } ], "customerProfileList": null, "extendedName": null, "paymentType": { "id": 5, "code": "AG", "name": "Pay Agency Guest" }, "payment": null, "paymentMode": null, "taxDocumentType": { "id": 1, "code": "00", "name": "National Id Document", "nameI18n": "National Id Document" }, "chainSource": null, "chainSegment": null, "chainChannel": null, "language": null, "chainProfileGroup": null, "reservationPriceModelType": null }
Response
Property | Type | Required | Description |
---|---|---|---|
ResponseApiMessage | ResponseApiMessage | true | Description of the response of the success operation |
Example response
{ "httpStatus": "201", "userMessage": "Success", "technicalMessage": "Success company updated", "errorCode": "0", "id": 1 }