Update a category

patch

/crmRestApi/resources/11.13.18.05/categories/{CategoryId}

Request

Path Parameters
Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
  • Title: Business Unit
    The unique identifier of the business unit associated with the category.
  • Title: Business Unit Name
    Maximum Length: 255
    The name of the business unit associated with the category.
  • Title: Category Name
    Maximum Length: 400
    The name of the category.
  • Title: Visible in Customer Self-Service
    Maximum Length: 1
    Default Value: true
    Indicates if the category is visible in the customer self-service portal.
  • Title: Enabled
    Maximum Length: 1
    Default Value: true
    Indicates whether the category is enabled. If enabled, the value is Y, else the value is N.
  • Title: Original System
    Maximum Length: 255
    The reference to the original system from which the category was imported (if imported).
  • Title: Parent Category Code
    Maximum Length: 290
    The public unique identifier of the parent category.
  • Title: Parent Category ID
    The unique identifier of the parent category. The value is NULL, if the category is the root category.
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : categories-item-response
Type: object
Show Source
  • Title: Business Unit
    The unique identifier of the business unit associated with the category.
  • Title: Business Unit Name
    Maximum Length: 255
    The name of the business unit associated with the category.
  • Title: Category Code
    Maximum Length: 290
    The public unique identifier of the category.
  • Title: Category
    Read Only: true
    The unique identifier of the category.
  • Title: Category ID Hierarchy
    Read Only: true
    Maximum Length: 4000
    The hierarchy of the category identifiers in string format. For example: 132787 > 567754.
  • Title: Category Name
    Maximum Length: 400
    The name of the category.
  • Title: Category Short Name
    Maximum Length: 240
    The short name of the category. This value is auto-generated from CategoryName. However, you can edit the name to make it a unique value, if required.
  • Title: Created By
    Read Only: true
    Maximum Length: 64
    The user who created the category.
  • Title: Creation Date
    Read Only: true
    The date and time when the category was created.
  • Title: Visible in Customer Self-Service
    Maximum Length: 1
    Default Value: true
    Indicates if the category is visible in the customer self-service portal.
  • Title: Can Delete
    Read Only: true
    Indicates if the category has been deleted. The default value is false.
  • Title: Depth
    Read Only: true
    The depth at which the service category occurs in the category hierarchy.
  • Title: Enabled
    Maximum Length: 1
    Default Value: true
    Indicates whether the category is enabled. If enabled, the value is Y, else the value is N.
  • Title: Hierarchy
    Read Only: true
    Maximum Length: 4000
    The hierarchy of the category in a string format. For example Roaming > Technical Issue.
  • Title: Last Updated Date
    Read Only: true
    The date and time when the category was last updated.
  • Title: Last Updated By
    Read Only: true
    Maximum Length: 64
    The user who last updated the category.
  • Title: Last Update Login
    Read Only: true
    Maximum Length: 32
    The session login associated with the user who last updated the row.
  • Title: Leaf Node
    Read Only: true
    Maximum Length: 12
    Indicates whether the current category has any children.
  • Links
  • Title: Original System
    Maximum Length: 255
    The reference to the original system from which the category was imported (if imported).
  • Title: Parent Category Code
    Maximum Length: 290
    The public unique identifier of the parent category.
  • Title: Parent Category ID
    The unique identifier of the parent category. The value is NULL, if the category is the root category.
  • Title: Root Category Code
    Read Only: true
    Maximum Length: 4000
    Root Category Code
  • Title: Stripe Code
    Maximum Length: 30
    The code indicating the application stripe of the service request category. A list of accepted values is defined in the lookup ORA_SVC_STRIPE_CD.
  • Title: Can Update
    Read Only: true
    Indicates if the category has been updated. The default value is false.
Back to Top

Examples

The following example shows how to update a category by submitting a PATCH request on the REST resource.

cURL Command

curl -u <username:password> \
 -X PATCH https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163  \
 -H 'Content-Type: application/vnd.oracle.adf.resourceitem+json'  | json_pp

Example of Request Body

The following example shows the contents of the request body in JSON format.

{

"CategoryName": "66966478"

}

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 Created
Date: Fri, 12 Aug 2016 13:02:50 GMT
Server: Oracle-HTTP-Server-11g
Content-Type: application/vnd.oracle.adf.resourceitem+json
Content-Language: en

Example of Response Body

The following example shows the contents of the response body in JSON format.

{
    "CategoryId": 300100558464163,
    "ParentCategoryId": 300100558461305,
    "CategoryName": "66966478",
    "CategoryShortName": "ADULT",
    "CategoryCode": "ADULT-ORA_SVC_CRM-204",
    "ParentCategoryCode": "WELFARE-ORA_SVC_CRM-204",
    "EnabledFlag": true,
    "CreatedBy": "chris.warner",
    "CreationDate": "2022-06-07T14:05:29.149+00:00",
    "LastUpdatedBy": "SALES_ADMIN",
    "LastUpdateDate": "2022-08-09T08:27:26+00:00",
    "LastUpdateLogin": "E5B2B43EEACE7A09E0531C5CF00A8A06",
    "OriginalSystemReference": "300100558464163",
    "StripeCd": "ORA_SVC_CRM",
    "CSSFlag": true,
    "UpdateFlag": true,
    "DeleteFlag": true,
    "BUOrgId": 204,
    "BusinessUnitName": "Vision Operations",
    "Depth": 2,
    "Hierarchy": "Cases > Welfare > Adult",
    "LeafNodeFlag": true,
    "CategoryIdHierarchy": "300100543373684 > 300100558461305 > 300100558464163",
    "links": [
        {
            "rel": "self",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163",
            "name": "categories",
            "kind": "item",
            "properties": {
                "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
            }
        },
        {
            "rel": "canonical",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163",
            "name": "categories",
            "kind": "item"
        },
        {
            "rel": "lov",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163/lov/BusinessUnitLOV",
            "name": "BusinessUnitLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163/lov/StripeCdLOV",
            "name": "StripeCdLOV",
            "kind": "collection"
        },
        {
            "rel": "lov",
            "href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/categories/300100558464163/lov/YesNoLookupPVO",
            "name": "YesNoLookupPVO",
            "kind": "collection"
        }
    ]
}
Back to Top