Update Specific Host Company or Partner Organization Details

patch

/rest/v19/companies/{companyLoginName}

This endpoint replaces specific host company or partner organization details with that specified in the web services 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 (supportedLanguages are mandatory only for host company update).
Show Source
Nested Schema : TimeZone of the company
Type: object
Title: TimeZone of the company
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 specific host company or partner organization details with that specified in the web services request by submitting a PATCH request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X PATCH -H "Authorization: Bearer <token>" -H "Content-type: application/json" -H "Accept: application/json"
https://sitename.oracle.com/rest/v19/companies/visionServices

Request Body Sample

{
  "maximumUser": 20,
  "access": "denied"
}

Response Body Sample

{
  "name": "Vision Services",
  "login": "visionServices",
  "subscriptionPlan": "FullAccessWithESales",
  "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@visionservices.com",
  "maximumUser": 20,
  "access": "denied" "supportedLanguages": {
    "items": [{
        "languageCode": "ar_SA",
        "languageName": "Arabic [Saudi Arabia]",
        "iso2LanguageCode": "ar",
        "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
      }
    ]
  },
  "links": [{
      "rel": "self",
      "href": "http://sitename.oracle.com/rest/v19/companies/visionServices"
    }, {
      "rel": "child",
      "name": "styleSheets",
      "href": "http://sitename.oracle.com/rest/v19/companies/visionServices/styleSheets"
    }, {
      "rel": "child",
      "name": "users",
      "href": "http://sitename.oracle.com/rest/v19/companies/visionServices/users"
    }
  ]
}
Back to Top