Create one action

patch

/fscmRestApi/resources/11.13.18.05/qualityActions/{ActionId}

Request

Path Parameters
  • The value of this parameter could be a hash of the key that is used to uniquely identify the resource item. The client should not generate the hash key value. Instead, the client should query on the collection resource with a filter to navigate to a specific resource item. For example: products?q=InventoryItemId=
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
Nested Schema : Affected Objects
Type: array
Title: Affected Objects
The Affected Objects resource manages the objects that a quality action affects. It references an item, inspection, work order operation, or some other object in manufacturing or inspection that caused a quality issue or that a quality issue affected.
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The Relationships resource manages the objects related to a quality action. The objects reference a quality issue, an item, or other objects.
Show Source
Nested Schema : Security
Type: array
Title: Security
The Security Grantees resource manages the security grantees who have access to the quality action.
Show Source
Nested Schema : Workflow Approvers
Type: array
Title: Workflow Approvers
The Workflow Approvers resource manages the workflow approvers.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : qualityActions-Attachments-item-patch-request
Type: object
Show Source
Nested Schema : qualityActions-Relationships-item-patch-request
Type: object
Show Source
Nested Schema : qualityActions-Security-item-patch-request
Type: object
Show Source
Nested Schema : qualityActions-WorkflowApprovers-item-patch-request
Type: object
Show Source
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 : qualityActions-item-response
Type: object
Show Source
Nested Schema : Affected Objects
Type: array
Title: Affected Objects
The Affected Objects resource manages the objects that a quality action affects. It references an item, inspection, work order operation, or some other object in manufacturing or inspection that caused a quality issue or that a quality issue affected.
Show Source
Nested Schema : Attachments
Type: array
Title: Attachments
The attachments resource is used to view, create, and update attachments.
Show Source
Nested Schema : Relationships
Type: array
Title: Relationships
The Relationships resource manages the objects related to a quality action. The objects reference a quality issue, an item, or other objects.
Show Source
Nested Schema : Security
Type: array
Title: Security
The Security Grantees resource manages the security grantees who have access to the quality action.
Show Source
Nested Schema : Workflow Approvers
Type: array
Title: Workflow Approvers
The Workflow Approvers resource manages the workflow approvers.
Show Source
Nested Schema : qualityActions-AffectedObjects-item-response
Type: object
Show Source
Nested Schema : qualityActions-Attachments-item-response
Type: object
Show Source
Nested Schema : qualityActions-Relationships-item-response
Type: object
Show Source
Nested Schema : qualityActions-Security-item-response
Type: object
Show Source
Nested Schema : qualityActions-WorkflowApprovers-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to update an action.

Example cURL Command

Use the following cURL command to submit a request on the REST resource.

curl -X PATCH -u "username:password" -H "Content-Type: application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "https://servername/fscmRestApi/resources/version/qualityActions/ActionId"

Example Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it updates.

{
	"DispositionComment": "Test Data Update"
}

Example Response Body

The following example includes the contents of the response body in JSON format:

{
	"ActionId": 300100255109683,
	"ActionAutonumber": "ACTION151",
	"Name": "Action XYZ",
	"ActionTypeId": 5110,
	"ActionTypeCode": "ORA_ENQ_CORRECTIVE",
	"ActionTypeName": "CAPA - Corrective Action",
	"Priority": "ORA_MEDIUM",
	"PriorityName": "Medium",
	"Source": null,
	"SourceName": null,
	"CustomerId": null,
	"SupplierId": null,
	"Disposition": null,
	"DispositionName": null,
	"DispositionComment": "Test Data Update",
	"CreationDate": "2020-09-16T12:22:49+00:00",
	"LastUpdateDate": "2020-09-16T12:28:49.105+00:00",
	"ExpectedResolutionDate": null,
	"ActualResolutionDate": null,
	"WorkflowTemplateId": null,
	"WorkflowTemplateCode": null,
	"WorkflowTemplateName": null,
	"WorkflowStatusId": 999,
	"WorkflowStatusCode": "ORA_ENQ_DEFAULT_STATUS",
	"WorkflowStatusName": "Default",
	"CreatedBy": "QUALITY_ANALYST",
	"AssignedTo": "QUALITY_ANALYST",
	"DateSubmitted": null,
	"FinalCompletionDate": null,
	"DateReleased": null,
	"LastUpdatedBy": "QUALITY_ANALYST",
	"ProductLineId": null,
	"ActionEO_QA_DCL_QI_Id_c": null,
	"ActionEO_QA_DCL_QI_c": null,
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683",
		"name": "qualityActions",
		"kind": "item",
		"properties": {
			"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
		}
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683",
		"name": "qualityActions",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/child/AffectedObjects",
		"name": "AffectedObjects",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/child/Attachments",
		"name": "Attachments",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/child/Relationships",
		"name": "Relationships",
		"kind": "collection"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/child/WorkflowApprovers",
		"name": "WorkflowApprovers",
		"kind": "collection"
	},
	{
		"rel": "enclosure",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/enclosure/Description",
		"name": "Description",
		"kind": "other"
	},
	{
		"rel": "enclosure",
		"href": "https://servername/fscmRestApi/resources/version/qualityActions/300100255109683/enclosure/ResolutionDescription",
		"name": "ResolutionDescription",
		"kind": "other"
	}
	]
}
Back to Top