Update All Host Company or Partner Organization Details

put

/rest/v16/companies/{companyLoginName}

This endpoint replaces all host company or partner organization details with that specified in the request.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Company Details
Type: object
Title: Company Details
Show Source
Nested Schema : Currency
Type: object
Title: Currency
Base currency of the company. Value holds the currency code.
Show Source
Nested Schema : Base Language
Type: object
Title: Base Language
Base language of the company. Value holds the language code.
Show Source
Nested Schema : Date/Time Format
Type: object
Title: Date/Time Format
Company preferred date time format.
Show Source
Nested Schema : Number Format
Type: object
Title: Number Format
Preferred number format of the company.
Show Source
Nested Schema : Supported Currencies
Type: object
Title: Supported Currencies
Currencies that are supported by the company.
Show Source
Nested Schema : Supported Languages
Type: object
Title: Supported Languages
Languages that are supported by the company (supported languages are mandatory only for host company updates).
Show Source
Nested Schema : Time Zone
Type: object
Title: Time Zone
Company preferred timezone.
Show Source
Nested Schema : Units
Type: object
Title: Units
Company preferred units.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Currency Details
Type: object
Title: Currency Details
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : language
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

Company details.
Body ()
Root Schema : Company Details
Type: object
Title: Company Details
Show Source
Nested Schema : Currency
Type: object
Title: Currency
Base currency of the company. Value holds currency code.
Show Source
Nested Schema : Base Language
Type: object
Title: Base Language
Base language of the company. Value holds the language code.
Show Source
Nested Schema : Date/Time Format
Type: object
Title: Date/Time Format
Company preferred date time format.
Show Source
Nested Schema : Number Format
Type: object
Title: Number Format
Preferred number format of the company.
Show Source
Nested Schema : Style Sheets
Type: object
Title: Style Sheets
StyleSheets of the company.
Show Source
Nested Schema : Supported Currencies
Type: object
Title: Supported Currencies
Currencies that are supported by the company.
Show Source
Nested Schema : Supported Languages
Type: object
Title: Supported Languages
Languages that are supported by the company (supported languages are mandatory only for host company updates).
Show Source
Nested Schema : TimeZone of the company
Type: object
Title: TimeZone of the company
Company preferred timezone.
Show Source
Nested Schema : Translations
Type: object
Title: Translations
Translations of the company.
Show Source
Nested Schema : Units
Type: object
Title: Units
Company preferred units.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : companyStyleSheet-collection
Type: object
Show Source
Nested Schema : Style Sheet Collection
Type: array
Title: Style Sheet Collection
List of style sheets.
Show Source
Nested Schema : Style Sheet
Type: object
Title: Style Sheet
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Currency Details
Type: object
Title: Currency Details
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : language
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Company Translations
Type: object
Title: Company Translations
Show Source
Nested Schema : Company Translations List
Type: array
Title: Company Translations List
Show Source
Nested Schema : Company Translation
Type: object
Title: Company Translation
Show Source
Nested Schema : Translation Language
Type: object
Title: Translation Language
Show Source
Back to Top

Examples

The following example shows how to replace all host company or partner organization details with that specified in the request by submitting a PUT request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X PUT -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/companies/visionServices

Request Body Sample

}
"supportedCurrencies": {
  "items": [{
      "currencyCode": "ALL",
      "isEnabled": true
    }, {
      "currencyCode": "AUD",
      "isEnabled": false
    }, {
      "currencyCode": "CAD",
      "isEnabled": true
    }, {
      "currencyCode": "CNY",
      "isEnabled": true
    }
  ]
}, "baseCurrency": {
  "value": "USD",
  "displayValue": "US Dollar"
}, "maximumUsers": 11
}

Response Body Sample

{
  "name": "Vision Services",
  "login": "visionServices",
  "baseLanguage": {
    "value": "en",
    "displayValue": "English"
  },
  "units": {
    "value": 1,
    "displayValue": "English"
  },
  "numberFormat": {
    "value": 0,
    "displayValue": "####.##"
  },
  "dateTimeFormat": {
    "value": 0,
    "displayValue": "MM/dd/yyyy h:mm a"
  },
  "timeZone": {
    "value": "America/Chicago",
    "displayValue": "(GMT-6:00 GMT-5:00) Chicago"
  },
  "baseCurrency": {
    "value": "USD",
    "displayValue": "US Dollar"
  },
  "country": "United States",
  "email": "noreply@yourcompany.com",
  "supportedLanguages": {
    "items": [{
        "languageCode": "ar_SA",
        "languageName": "Arabic [Saudi Arabia]",
        "iso2LanguageCode": "ar",
        "isBaseLanguage": false,
        "isEnabled": true
      }, {
        "languageCode": "zh_CN",
        "languageName": "Chinese (Simplified) [China]",
        "iso2LanguageCode": "zh",
        "isBaseLanguage": false,
        "isEnabled": true
      }, {
        "languageCode": "zh_TW",
        "languageName": "Chinese (Traditional) [Taiwan]",
        "iso2LanguageCode": "zh",
        "isBaseLanguage": false,
        "isEnabled": true
      }, {
        "languageCode": "cs_CZ",
        "languageName": "Czech [Czech Republic]",
        "iso2LanguageCode": "cs",
        "isBaseLanguage": false,
        "isEnabled": true
      }
    ]
  },
  "supportedCurrencies": {
    "items": [{
        "currencyCode": "ALL",
        "currencyName": "Lek",
        "precision": 2,
        "isBaseCurrency": false,
        "isEnabled": true
      }, {
        "currencyCode": "AUD",
        "currencyName": "Australian Dollar",
        "precision": 2,
        "isBaseCurrency": false,
        "isEnabled": false
      }
    ]"maximumUsers": 11
  },
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices"
    }, {
      "rel": "child",
      "name": "styleSheets",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/styleSheets"
    }, {
      "rel": "child",
      "name": "users",
      "href": "http://sitename.oracle.com/rest/v16/companies/visionServices/users"
    }
  ]
}
Back to Top