Get a classification code
get
/crmRestApi/resources/11.13.18.05/classCodes/{classCodesUniqID}
Request
Path Parameters
-
classCodesUniqID(required): string
This is the hash key of the attributes which make up the composite key--- TreeCode, TreeNodeId, TreeStructureCode and TreeVersionId ---for the Class Codes resource and used to uniquely identify an instance of Class Codes. The client should not generate the hash key value. Instead, the client should query on the Class Codes collection resource with a filter on the primary key values in order to navigate to a specific instance of Class Codes.
For example: classCodes?q=TreeCode=<value1>;TreeNodeId=<value2>;TreeStructureCode=<value3>;TreeVersionId=<value4>
Query Parameters
-
dependency: string
This parameter specifies dependencies which are fields that are set before and rolled back after generating the response. Generally they are used to preview the effects of an attribute change. The fields specified in this parameter are always set in the resource instance in question. When a child resource collection is requested and the parameter is set, the fields will be set in the parent resource instance before generating the resource collection payload. The value of this query parameter is a set of dependency fields. Example: dependency=ProductId=2
Format: <attr1>=<val1>,<attr2>=<value2> -
expand: string
When this parameter is provided, the specified children are included in the resource payload (instead of just a link). The value of this query parameter is "all" or "". More than one child can be specified using comma as a separator. Example: ?expand=Employees,Localizations. Nested children can also be provided following the format "Child.NestedChild" (Example: ?expand=Employees.Managers). If a nested child is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?expand=Employees.Managers" is the same as "?expand=Employees,Employees.Managers" (which will expand Employees and Managers).
-
fields: string
This parameter filters the resource fields. Only the specified fields are returned, which means that if no fields are specified, no fields are returned (useful to get only the links). If an indirect child resource is provided (Example: Employees.Managers), the missing children will be processed implicitly. For example, "?fields=Employees.Managers:Empname" is the same as "?fields=;Employees:;Employees.Managers:Empname" (which will only return the "Empname" field for Managers). the value of this query parameter is a list of resource fields. The attribute can be a direct (Example: Employees) or indirect (Example: Employees.Managers) child. It cannot be combined with expand query parameter. If both are provided, only fields will be considered.
Format: ?fields=Attribute1,Attribute2
Format for fields in child resource: ?fields=Accessor1:Attribute1,Attribute2 -
links: string
This parameter can be used to show only certain links while accessing a singular resource or a resource collection. The parameter value format is a comma-separated list of : <link_relation>
Example:
self,canonical -
onlyData: boolean
The resource item payload will be filtered in order to contain only data (no links section, for example).
Header Parameters
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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.
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : classCodes-item-response
Type:
Show Source
object-
ChildCount: integer
(int64)
Title:
Child CountThe child count of the parent. -
ClassCategory: string
Title:
Classification CategoryRead Only:trueMaximum Length:30The class category. -
ClassCategoryDescription: string
Title:
Classification Category DescriptionRead Only:trueMaximum Length:240The description of the class category. -
ClassCategoryGroup: string
Read Only:
trueMaximum Length:255The class category group. -
ClassCode: string
Title:
Classification CodeRead Only:trueMaximum Length:30The class code. -
ClassCodeDescription: string
Title:
Classification Code DescriptionRead Only:trueMaximum Length:240The description of the class code. -
ClassCodeMeaning: string
Title:
Classification Code MeaningRead Only:trueMaximum Length:80The meaning of the class code. -
CreatedBy: string
Read Only:
trueMaximum Length:64The user who created the row. -
CreationDate: string
(date-time)
Read Only:
trueThe date and time when the row was created. -
DataSourceId: string
Title:
Data Source IDMaximum Length:32The unique identifier of the data source. -
Depth: integer
(int64)
The depth level in the hierarchy tree.
-
LastUpdateDate: string
(date-time)
Read Only:
trueThe date and time when the row was last updated. -
LastUpdatedBy: string
Read Only:
trueMaximum Length:64The user who last updated the row. -
LastUpdateLogin: string
Read Only:
trueMaximum Length:32The login details of the user who last updated the row. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LookupType: string
Read Only:
trueMaximum Length:30The lookup type of the code. -
Meaning: string
Title:
Classification Category MeaningRead Only:trueMaximum Length:80The meaning of the class category. -
ParentDataSourceId: string
Title:
Parent Data Source IDMaximum Length:32The unique identifier of the parent data source. -
ParentPk1Value: string
Title:
Parent Primary Key 1 ValueMaximum Length:100The parent class category. -
ParentPk2Value: string
Title:
Parent Primary Key 2 ValueMaximum Length:100The parent class code. -
ParentPk3Value: string
Title:
Parent Primary Key 3 ValueMaximum Length:100The untie identifier of the parent view application. -
ParentPk4Value: string
Title:
Parent Primary Key 4 ValueMaximum Length:100Not Applicable. -
ParentPk5Value: string
Title:
Parent Primary Key 5 ValueMaximum Length:100Not Applicable. -
ParentTreeLabelId: string
Title:
Parent Tree Label IDMaximum Length:32Not Applicable. -
ParentTreeNodeId: string
Title:
Parent Tree Node IDMaximum Length:32The unique identifier of the parent tree node. -
Pk1EndValue: string
Title:
Primary Key 1 EndMaximum Length:100Not Applicable. -
Pk1StartValue: string
Title:
Classification CategoryMaximum Length:100The class category. -
Pk2EndValue: string
Title:
Primary Key 2 EndMaximum Length:100Not Applicable. -
Pk2StartValue: string
Title:
Classification CodeMaximum Length:100The class code. -
Pk3EndValue: string
Title:
Primary Key 3 EndMaximum Length:100Not Applicable. -
Pk3StartValue: string
Title:
Primary Key 3 StartMaximum Length:100The unique identifier of view application. -
Pk4EndValue: string
Title:
Primary Key 4 EndMaximum Length:100Not Applicable. -
Pk4StartValue: string
Title:
Primary Key 4 StartMaximum Length:100Not Applicable. -
Pk5EndValue: string
Title:
Primary Key 5 EndMaximum Length:100Not Applicable. -
Pk5StartValue: string
Title:
Primary Key 5 StartMaximum Length:100Not Applicable. -
ReferenceTreeCode: string
Title:
Reference Tree CodeMaximum Length:30Not Applicable. -
ReferenceTreeVersionId: string
Title:
Reference Tree Version IDMaximum Length:32Not Applicable. -
SortOrder: integer
(int64)
Title:
Sort OrderThe sort order. -
TreeCode: string
Title:
Classification CategoryMaximum Length:30The tree code. -
TreeLabelId: string
Title:
Tree Label IDMaximum Length:32Not Applicable. -
TreeNodeId: string
Title:
Tree Node IDMaximum Length:32The unique identifier of the tree node. -
TreeStructureCode: string
Title:
Tree Structure CodeMaximum Length:30The structure of the tree code. -
TreeVersionId: string
Title:
Tree Version IDMaximum Length:32The unique identifier of the tree version. -
ViewApplicationId: integer
(int64)
Read Only:
trueThe unique identifier of view application.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Examples
The following example shows how to get a classification code by submitting a GET request on the REST resource using cURL.
cURL Command
curl -u <username:password> \ -X GET
https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/classCodes-{classCodeUniqID}
Example of Response Body
The following shows an example of the response body in JSON format.
{
"ChildCount": 0,
"CreatedBy": "-1",
"CreationDate": "2009-12-14T02:06:18.142+00:00",
"DataSourceId": "7AAE64FFCA0DE014E04044987CF06C3D",
"Depth": 0,
"LastUpdateDate": "2023-12-28T10:14:33.708+00:00",
"LastUpdateLogin": "-1",
"LastUpdatedBy": "SEED_DATA_FROM_APPLICATION",
"ParentDataSourceId": null,
"ParentPk1Value": null,
"ParentPk2Value": null,
"ParentPk3Value": null,
"ParentPk4Value": null,
"ParentPk5Value": null,
"ParentTreeLabelId": null,
"ParentTreeNodeId": null,
"Pk1EndValue": null,
"Pk1StartValue": "1972 SIC",
"Pk2EndValue": null,
"Pk2StartValue": "0182",
"Pk3EndValue": null,
"Pk3StartValue": "0",
"Pk4EndValue": null,
"Pk4StartValue": null,
"Pk5EndValue": null,
"Pk5StartValue": null,
"ReferenceTreeCode": null,
"ReferenceTreeVersionId": null,
"SortOrder": 0,
"TreeCode": "1972 SIC",
"TreeLabelId": null,
"TreeNodeId": "7AAE65000CBAE014E04044987CF06C3D",
"TreeStructureCode": "HZ_CLASSIFICATION_HIERARCHY",
"TreeVersionId": "7AAE65000C71E014E04044987CF06C3D",
"LookupType": "1972 SIC",
"ViewApplicationId": 0,
"ClassCategory": "1972 SIC",
"ClassCode": "0182",
"Meaning": "1972 SIC",
"ClassCodeMeaning": "Under cover food crop growers",
"ClassCategoryGroup": null,
"ClassCategoryDescription": "1972 edition of United States Standard Industrial Classification codes",
"ClassCodeDescription": "Under cover food crop growers",
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/classCodes/00040000000831393732205349430000002037414145363530303043424145303134453034303434393837434630364333440000001B485A5F434C415353494649434154494F4E5F484945524152434859000000203741414536353030304337314530313445303430343439383743463036433344",
"name": "classCodes",
"kind": "item"
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/classCodes/00040000000831393732205349430000002037414145363530303043424145303134453034303434393837434630364333440000001B485A5F434C415353494649434154494F4E5F484945524152434859000000203741414536353030304337314530313445303430343439383743463036433344",
"name": "classCodes",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/crmRestApi/resources/11.13.18.05/classCodes/00040000000831393732205349430000002037414145363530303043424145303134453034303434393837434630364333440000001B485A5F434C415353494649434154494F4E5F484945524152434859000000203741414536353030304337314530313445303430343439383743463036433344/lov/ClassCategoryGroupVA",
"name": "ClassCategoryGroupVA",
"kind": "collection"
}
]
}