Update an answer
patch
/hcmRestApi/resources/11.13.18.05/questions/{questionsUniqID}/child/answers/{answersUniqID}
Request
Path Parameters
-
answersUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Answers resource and used to uniquely identify an instance of Answers. The client should not generate the hash key value. Instead, the client should query on the Answers collection resource in order to navigate to a specific instance of Answers to get the hash key.
-
questionsUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Questions resource and used to uniquely identify an instance of Questions. The client should not generate the hash key value. Instead, the client should query on the Questions collection resource in order to navigate to a specific instance of Questions to get the hash key.
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.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object-
AddlQuestionnaireId: integer
(int64)
Title:
Additional QuestionnaireSurrogate identifier of the questionnaire sent to candidates from whom additional information is requested. Used only for the recruiting subscriber. -
AddlQuestionnaireVersionNumber: integer
(int64)
Title:
Additional QuestionnaireVersion number of the additional questionnaire sent to the participant. Used only for the recruiting subscriber. -
attachments: array
Attachments
Title:
AttachmentsThe attachments resource is a child of the questions resource. It includes details of the attachments in a question. -
CorrectFlag: boolean
Title:
Correct Answer CodeMaximum Length:30Default Value:falseIndicates whether the answer choice is correct or incorrect for a question. -
LongAnswerText: string
Title:
Short DescriptionMaximum Length:2000Answer text presented to the participant as a choice for a question when responding to a questionnaire. -
RatingLevelId: integer
(int64)
Title:
Rating Level IdSurrogate identifier of the rating level from which the answer choice is created. -
ResponseFeedback: string
(byte)
Title:
Response FeedbackFeedback provided to the participant when the answer choice is chosen. -
Score: integer
(int64)
Title:
ScoreScore for the answer choice. -
SequenceNumber: integer
(int64)
Title:
Sequence NumberSequence in which the answer choice is presented during response by a participant. -
ShortAnswerText: string
Title:
Short TextMaximum Length:240Short text of the answer choice.
Nested Schema : Attachments
Type:
arrayTitle:
AttachmentsThe attachments resource is a child of the questions resource. It includes details of the attachments in a question.
Show Source
Nested Schema : questions-answers-attachments-item-patch-request
Type:
Show Source
object-
CategoryName: string
Title:
CategoryMaximum Length:30Category name of the attachment. - ContentRepositoryFileShared: boolean
-
DatatypeCode: string
Title:
TypeMaximum Length:30Default Value:FILEAttachment type supported for the question. Only file attachment is supported. -
Description: string
Title:
DescriptionMaximum Length:255Description of the attachment. -
DmDocumentId: string
Maximum Length:
255Surrogate identifier of the document attached to the questionnaire template. -
DmFolderPath: string
Title:
Dm Folder PathMaximum Length:1000Path of the folder. -
DmVersionNumber: string
Maximum Length:
255Version number of the attachment. -
DownloadInfo: string
Title:
DownloadInfoJSON object represented as a string that contains information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status CodeError status code of the attachment. -
ErrorStatusMessage: string
Title:
Error Status MessageError status message of the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration DateExpiration date of the attachment. -
FileContents: string
(byte)
Title:
File ContentsFile contents of the attachment. -
FileName: string
Title:
File NameMaximum Length:2048Name of the attachment file. -
FileUrl: string
Title:
File UrlFile URL of the attachment. -
PostProcessingAction: string
Title:
PostProcessingActionThe name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
TitleTitle of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content TypeContent type of the uploaded file. -
UploadedFileLength: integer
Title:
File SizeSize of the uploaded file. -
UploadedFileName: string
Title:
Uploaded File NameName of the uploaded file. -
UploadedText: string
Title:
Uploaded TextText uploaded in the attachment. -
Uri: string
Title:
UriMaximum Length:4000URI of the attachment. -
Url: string
Title:
UrlMaximum Length:4000URL 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 : questions-answers-item-response
Type:
Show Source
object-
AddlQuestionnaireId: integer
(int64)
Title:
Additional QuestionnaireSurrogate identifier of the questionnaire sent to candidates from whom additional information is requested. Used only for the recruiting subscriber. -
AddlQuestionnaireVersionNumber: integer
(int64)
Title:
Additional QuestionnaireVersion number of the additional questionnaire sent to the participant. Used only for the recruiting subscriber. -
AnswerCode: string
Title:
Answer CodeMaximum Length:240Alphanumeric value that uniquely identifies the answer choice for a subscriber. -
attachments: array
Attachments
Title:
AttachmentsThe attachments resource is a child of the questions resource. It includes details of the attachments in a question. -
CorrectFlag: boolean
Title:
Correct Answer CodeMaximum Length:30Default Value:falseIndicates whether the answer choice is correct or incorrect for a question. -
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:64Name of the user who created the answer choice. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate when the answer choice was created. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueDate when the answer choice was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:64Name of the user who last updated the answer choice. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LongAnswerText: string
Title:
Short DescriptionMaximum Length:2000Answer text presented to the participant as a choice for a question when responding to a questionnaire. -
QuestionAnswerId: integer
(int64)
Title:
Question Answer IdRead Only:trueSurrogate identifier of the answer choice for a question. -
RatingLevelId: integer
(int64)
Title:
Rating Level IdSurrogate identifier of the rating level from which the answer choice is created. -
RatingLevelName: string
Title:
Rating LevelRead Only:trueMaximum Length:2000Rating level from which the answer was created. -
ResponseFeedback: string
(byte)
Title:
Response FeedbackFeedback provided to the participant when the answer choice is chosen. -
Score: integer
(int64)
Title:
ScoreScore for the answer choice. -
SequenceNumber: integer
(int64)
Title:
Sequence NumberSequence in which the answer choice is presented during response by a participant. -
ShortAnswerText: string
Title:
Short TextMaximum Length:240Short text of the answer choice.
Nested Schema : Attachments
Type:
arrayTitle:
AttachmentsThe attachments resource is a child of the questions resource. It includes details of the attachments in a question.
Show Source
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : questions-answers-attachments-item-response
Type:
Show Source
object-
AsyncTrackerId: string
Title:
Asynchronous Upload Tracker IdAttribute provided for the exclusive use by the Attachment UI components to assist in uploading files. -
AttachedDocumentId: integer
(int64)
Title:
Attached Document IdUnique identifier of the attached document. -
CategoryName: string
Title:
CategoryMaximum Length:30Category name of the attachment. - ContentRepositoryFileShared: boolean
-
CreatedBy: string
Title:
Created ByRead Only:trueMaximum Length:255User who created the attachment. -
CreatedByUserName: string
Title:
Created By User NameRead Only:trueUser name of the user who created the attachment. -
CreationDate: string
(date-time)
Title:
Creation DateRead Only:trueDate when the attachment was created. -
DatatypeCode: string
Title:
TypeMaximum Length:30Default Value:FILEAttachment type supported for the question. Only file attachment is supported. -
Description: string
Title:
DescriptionMaximum Length:255Description of the attachment. -
DmDocumentId: string
Maximum Length:
255Surrogate identifier of the document attached to the questionnaire template. -
DmFolderPath: string
Title:
Dm Folder PathMaximum Length:1000Path of the folder. -
DmVersionNumber: string
Maximum Length:
255Version number of the attachment. -
DownloadInfo: string
Title:
DownloadInfoJSON object represented as a string that contains information used to programmatically retrieve a file attachment. -
ErrorStatusCode: string
Title:
Error Status CodeError status code of the attachment. -
ErrorStatusMessage: string
Title:
Error Status MessageError status message of the attachment. -
ExpirationDate: string
(date-time)
Title:
Expiration DateExpiration date of the attachment. -
FileContents: string
(byte)
Title:
File ContentsFile contents of the attachment. -
FileName: string
Title:
File NameMaximum Length:2048Name of the attachment file. -
FileUrl: string
Title:
File UrlFile URL of the attachment. -
FileWebImage: string
(byte)
Title:
File Web ImageRead Only:trueBase64 encoded image of the file displayed in .png format when the source is a convertible image. -
LastUpdateDate: string
(date-time)
Title:
Last Update DateRead Only:trueDate when the attachment record was last updated. -
LastUpdatedBy: string
Title:
Last Updated ByRead Only:trueMaximum Length:255Name of the user who last updated the attachment record. -
LastUpdatedByUserName: string
Title:
Last Updated By UserRead Only:trueUser name of the person who last updated the attachment. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
PostProcessingAction: string
Title:
PostProcessingActionThe name of the action that can be performed after an attachment is uploaded. -
Title: string
Title:
TitleTitle of the attachment. -
UploadedFileContentType: string
Title:
Uploaded File Content TypeContent type of the uploaded file. -
UploadedFileLength: integer
Title:
File SizeSize of the uploaded file. -
UploadedFileName: string
Title:
Uploaded File NameName of the uploaded file. -
UploadedText: string
Title:
Uploaded TextText uploaded in the attachment. -
Uri: string
Title:
UriMaximum Length:4000URI of the attachment. -
Url: string
Title:
UrlMaximum Length:4000URL of a web page type attachment. -
UserName: string
Title:
User NameRead Only:trueMaximum Length:255User name of the person who uploaded the attachment.
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.
Links
- RatingLevelVO
-
The following properties are defined on the LOV link relation:
- Source Attribute: ShortAnswerText; Target Attribute: RatingLevelCode
- Display Attribute: RatingLevelCode
- attachments
-
Parameters:
- answersUniqID:
$request.path.answersUniqID - questionsUniqID:
$request.path.questionsUniqID
The attachments resource is a child of the questions resource. It includes details of the attachments in a question. - answersUniqID: