Create one inspection level
post
/fscmRestApi/resources/11.13.18.05/inspectionLevels
Request
Header Parameters
-
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.
-
Upsert-Mode:
Contains one of the following values: true or false. If true, the server performs an Upsert operation instead of a Create operation. During an Upsert operation, the server attempts to find an existing resource that matches the payload. If a match is found, the server updates the existing resource instead of creating a new one. If not found or false (default), the server performs a Create operation. Note that the Upsert operation isn't supported for date-effective REST resources.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
AcceptanceQualityLimit: number
Title:
Acceptance Quality Limit
Acceptance Quality Limit along with the Sample Size Code Letter is used to determine the sampling size. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_AQL. -
attachments: array
Attachments
Title:
Attachments
The attachments resource is used to view, create, and update attachments. -
Description: string
Title:
Description
Maximum Length:240
Translatable description of Inspection Level. -
FixedSamplingCount: integer
(int32)
Title:
Count
Number of samples to inspect when sampling plan type is fixed count. -
InspectionLevelId: integer
(int64)
Value that uniquely identifies the inspection level.
-
Name(required): string
Title:
Name
Maximum Length:120
Translatable name of the Inspection Level. -
NumberOfLots: integer
(int32)
Title:
Number of Lots
Number of Lots available for inspection. -
NumberOfLotsToInspect: integer
(int32)
Title:
Number of Lots to Inspect
Number of lots to inspect in the current inspection level. -
PercentSampling: number
Title:
Sampling Size
Percentage of sampling required. -
SampleQuantity: number
Title:
Quantity per Sample
Quantity of material required for inspection on a per sample basis. -
SampleUOMCode: string
Title:
Sample Quantity UOM
Maximum Length:3
Code that identifies the unit of measure for quantity per sample. -
SamplingEnabledFlag: boolean
Title:
Sampling Enabled
Maximum Length:1
Default Value:false
Contains one of the following values: Y or N. If Y, then Sampling percentage must be specified. If N, then percentage is assumed to be 100, which means no sampling. The default value is N. -
SamplingLevelCode: string
Title:
Level
Maximum Length:5
Determines the relationship between the lot or batch size and the sample size. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_INSP_LEVEL. -
SamplingPlanType: string
Title:
Sampling Plan Type
Maximum Length:255
Type of sampling plan. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_PLAN_TYPE. -
SamplingPlanTypeCode: string
Title:
Sampling Plan Type Code
Maximum Length:30
Code of the sampling plan type. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_PLAN_TYPE. -
SamplingStandardCode: string
Title:
Sampling Standard Code
Maximum Length:30
Sampling standard code associated with the inspection level. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_STD. -
SkiplotEnabledFlag: boolean
Title:
Skip Lot Enabled
Maximum Length:1
Default Value:false
Contains one of the following values: Y or N. If Y, then value for number of lots and number of lots to inspect must be specified. If N, then skip lot isn't enabled. The default value is N.
Nested Schema : Attachments
Type:
array
Title:
Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : schema
Type:
Show Source
object
-
AsyncTrackerId: string
Title:
Asynchronous Upload Tracker Id
Attribute provided for the exclusive use by the Attachment UI components to assist in uploading files. -
AttachedDocumentId: integer
(int64)
Title:
Attached Document Id
The unique identifier of the attached document. -
CategoryName: string
Title:
Category
Maximum Length:30
The category of the attachment. - ContentRepositoryFileShared: boolean
-
DatatypeCode: string
Title:
Type
Maximum Length:30
Default Value:FILE
A value that indicates the data type. -
Description: string
Title:
Description
Maximum Length:255
The description of the attachment. -
DmDocumentId: string
Maximum Length:
255
The document ID from which the attachment is created. -
DmFolderPath: string
Title:
Dm Folder Path
Maximum Length:1000
The folder path from which the attachment is created. -
DmVersionNumber: string
Maximum Length:
255
The document version number from which the attachment is created. -
DownloadInfo: string
Title:
DownloadInfo
JSON object represented as a string containing information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status Code
The error code, if any, for the attachment. -
ErrorStatusMessage: string
Title:
Error Status Message
The error message, if any, for the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration Date
The expiration date of the contents in the attachment. -
FileContents: string
(byte)
Title:
File Contents
The contents of the attachment. -
FileName: string
Title:
File Name
Maximum Length:2048
The file name of the attachment. -
FileUrl: string
Title:
File Url
The URI of the file. -
PostProcessingAction: string
Title:
PostProcessingAction
The name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
Title
The title of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content Type
The content type of the attachment. -
UploadedFileLength: integer
Title:
File Size
The size of the attachment file. -
UploadedFileName: string
Title:
Uploaded File Name
The name to assign to a new attachment file. -
UploadedText: string
Title:
Uploaded Text
The text content for a new text attachment. -
Uri: string
Title:
Uri
Maximum Length:4000
The URI of a Topology Manager type attachment. -
Url: string
Title:
Url
Maximum Length:4000
The URL of a web page type attachment.
Response
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 : inspectionLevels-item-response
Type:
Show Source
object
-
AcceptanceQualityLimit: number
Title:
Acceptance Quality Limit
Acceptance Quality Limit along with the Sample Size Code Letter is used to determine the sampling size. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_AQL. -
attachments: array
Attachments
Title:
Attachments
The attachments resource is used to view, create, and update attachments. -
CreatedBy: string
Read Only:
true
Maximum Length:64
User who created the inspection level. -
CreationDate: string
(date-time)
Read Only:
true
Date and time when the inspection level was created. -
Description: string
Title:
Description
Maximum Length:240
Translatable description of Inspection Level. -
FixedSamplingCount: integer
(int32)
Title:
Count
Number of samples to inspect when sampling plan type is fixed count. -
InspectionLevelId: integer
(int64)
Value that uniquely identifies the inspection level.
-
LastUpdateDate: string
(date-time)
Read Only:
true
Date and time when the user last updated the inspection level. -
LastUpdatedBy: string
Read Only:
true
Maximum Length:64
User who last updated the inspection level. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Name: string
Title:
Name
Maximum Length:120
Translatable name of the Inspection Level. -
NumberOfLots: integer
(int32)
Title:
Number of Lots
Number of Lots available for inspection. -
NumberOfLotsToInspect: integer
(int32)
Title:
Number of Lots to Inspect
Number of lots to inspect in the current inspection level. -
PercentSampling: number
Title:
Sampling Size
Percentage of sampling required. -
SampleQuantity: number
Title:
Quantity per Sample
Quantity of material required for inspection on a per sample basis. -
SampleUOMCode: string
Title:
Sample Quantity UOM
Maximum Length:3
Code that identifies the unit of measure for quantity per sample. -
SamplingEnabledFlag: boolean
Title:
Sampling Enabled
Maximum Length:1
Default Value:false
Contains one of the following values: Y or N. If Y, then Sampling percentage must be specified. If N, then percentage is assumed to be 100, which means no sampling. The default value is N. -
SamplingLevelCode: string
Title:
Level
Maximum Length:5
Determines the relationship between the lot or batch size and the sample size. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_INSP_LEVEL. -
SamplingPlanType: string
Title:
Sampling Plan Type
Maximum Length:255
Type of sampling plan. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_PLAN_TYPE. -
SamplingPlanTypeCode: string
Title:
Sampling Plan Type Code
Maximum Length:30
Code of the sampling plan type. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_PLAN_TYPE. -
SamplingStandardCode: string
Title:
Sampling Standard Code
Maximum Length:30
Sampling standard code associated with the inspection level. A list of accepted values is defined in the lookup type ORA_QA_SAMPLING_STD. -
SkiplotEnabledFlag: boolean
Title:
Skip Lot Enabled
Maximum Length:1
Default Value:false
Contains one of the following values: Y or N. If Y, then value for number of lots and number of lots to inspect must be specified. If N, then skip lot isn't enabled. The default value is N.
Nested Schema : Attachments
Type:
array
Title:
Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : inspectionLevels-attachments-item-response
Type:
Show Source
object
-
AsyncTrackerId: string
Title:
Asynchronous Upload Tracker Id
Attribute provided for the exclusive use by the Attachment UI components to assist in uploading files. -
AttachedDocumentId: integer
(int64)
Title:
Attached Document Id
The unique identifier of the attached document. -
CategoryName: string
Title:
Category
Maximum Length:30
The category of the attachment. - ContentRepositoryFileShared: boolean
-
CreatedBy: string
Title:
Created By
Read Only:true
Maximum Length:255
The user who created the record. -
CreatedByUserName: string
Title:
Created By User Name
Read Only:true
The user name who created the record. -
CreationDate: string
(date-time)
Title:
Creation Date
Read Only:true
The date when the record was created. -
DatatypeCode: string
Title:
Type
Maximum Length:30
Default Value:FILE
A value that indicates the data type. -
Description: string
Title:
Description
Maximum Length:255
The description of the attachment. -
DmDocumentId: string
Maximum Length:
255
The document ID from which the attachment is created. -
DmFolderPath: string
Title:
Dm Folder Path
Maximum Length:1000
The folder path from which the attachment is created. -
DmVersionNumber: string
Maximum Length:
255
The document version number from which the attachment is created. -
DownloadInfo: string
Title:
DownloadInfo
JSON object represented as a string containing information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status Code
The error code, if any, for the attachment. -
ErrorStatusMessage: string
Title:
Error Status Message
The error message, if any, for the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration Date
The expiration date of the contents in the attachment. -
FileContents: string
(byte)
Title:
File Contents
The contents of the attachment. -
FileName: string
Title:
File Name
Maximum Length:2048
The file name of the attachment. -
FileUrl: string
Title:
File Url
The URI of the file. -
FileWebImage: string
(byte)
Title:
File Web Image
Read Only:true
The base64 encoded image of the file displayed in .png format if the source is a convertible image. -
LastUpdateDate: string
(date-time)
Title:
Last Update Date
Read Only:true
The date when the record was last updated. -
LastUpdatedBy: string
Title:
Last Updated By
Read Only:true
Maximum Length:255
The user who last updated the record. -
LastUpdatedByUserName: string
Title:
Last Updated By User
Read Only:true
The user name who last updated the record. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
PostProcessingAction: string
Title:
PostProcessingAction
The name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
Title
The title of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content Type
The content type of the attachment. -
UploadedFileLength: integer
Title:
File Size
The size of the attachment file. -
UploadedFileName: string
Title:
Uploaded File Name
The name to assign to a new attachment file. -
UploadedText: string
Title:
Uploaded Text
The text content for a new text attachment. -
Uri: string
Title:
Uri
Maximum Length:4000
The URI of a Topology Manager type attachment. -
Url: string
Title:
Url
Maximum Length:4000
The URL of a web page type attachment. -
UserName: string
Title:
User Name
Read Only:true
Maximum Length:255
The login credentials of the user who created the attachment.
Nested Schema : Links
Type:
array
Title:
Links
The link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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.
Links
- SamplingAQLVA
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_QA_SAMPLING_AQL
The following properties are defined on the LOV link relation:- Source Attribute: AcceptanceQualityLimit; Target Attribute: LookupCode
- Display Attribute: LookupCode
- finder:
- SamplingInspectionLevelVA
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_QA_SAMPLING_INSP_LEVEL
The following properties are defined on the LOV link relation:- Source Attribute: SamplingLevelCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- SamplingPlanTypeVA
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_QA_SAMPLING_PLAN_TYPE
The following properties are defined on the LOV link relation:- Source Attribute: SamplingPlanTypeCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- SamplingStandardVA
-
Parameters:
- finder:
LookupTypeFinder%3BLookupType%3DORA_QA_SAMPLING_STD
The following properties are defined on the LOV link relation:- Source Attribute: SamplingStandardCode; Target Attribute: LookupCode
- Display Attribute: Meaning
- finder:
- UnitOfMeasureRestVA
-
The following properties are defined on the LOV link relation:
- Source Attribute: SampleUOMCode; Target Attribute: UOMCode
- Display Attribute: UOM
- attachments
-
Operation: /fscmRestApi/resources/11.13.18.05/inspectionLevels/{InspectionLevelId}/child/attachmentsParameters:
- InspectionLevelId:
$request.path.InspectionLevelId
The attachments resource is used to view, create, and update attachments. - InspectionLevelId: