Update multiple data elements for a given form, event and subject
put
/ec-dc-svc/rest/v2.0/studies/{studyId}/{mode}/dataelements/subject/{subjectId}/event/{eventId}/form/{formId}/formassociations
Updates form associations, if any, for a given form, event and subject. Deletes all associations for the data element if request is empty.
Request
Path Parameters
-
eventId(required): string
ID of the visit for which you want to update the forms associations.
-
formId(required): string
ID of the form for which you want to update the forms associations.
-
mode(required): string
Mode of the study. Accepts test, active, or training.
-
studyId(required): string
ID of the study
-
subjectId(required): string
ID of the subject for whom you want to update the forms associations.
Query Parameters
-
eventInstanceNum: integer
Instance of the visit for which you want to update the forms associations.
-
repeatFormNum: integer
Repeat form number of the visit for which you want to update the forms associations.
-
repeatSequenceNum: integer
Repeat sequence number of the visit for which you want to update the forms associations.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
comment: string
Minimum Length:
0
Maximum Length:2048
-
formsAssociations: array
formsAssociations
-
reason: string
Minimum Length:
0
Maximum Length:255
Nested Schema : FormsAssociationsDto2
Type:
Show Source
object
-
associatedEventId: string
-
associatedEventInstanceNum: integer
(int32)
-
associatedFormId: string
-
associatedFormSectionId: string
-
associatedRepeatFormNumber: integer
-
associatedRepeatSequenceNumber: integer
-
associatedStudyVersion: string
-
comment: string
-
id: string
(uuid)
-
objectVersionNumber: number
-
reason: string
-
siteId: string
-
srcEventId: string
-
srcEventInstanceNum: integer
(int32)
-
srcFormId: string
-
srcFormSectionId: string
-
srcItemId: string
-
srcRepeatFormNumber: integer
-
srcRepeatSequenceNumber: integer
-
srcStudyVersion: string
-
subjectId: string
-
versionStart: string
(date-time)
Response
Supported Media Types
- application/json
200 Response
Success
Nested Schema : FormsAssociationsDto2
Type:
Show Source
object
-
associatedEventId: string
-
associatedEventInstanceNum: integer
(int32)
-
associatedFormId: string
-
associatedFormSectionId: string
-
associatedRepeatFormNumber: integer
-
associatedRepeatSequenceNumber: integer
-
associatedStudyVersion: string
-
comment: string
-
id: string
(uuid)
-
objectVersionNumber: number
-
reason: string
-
siteId: string
-
srcEventId: string
-
srcEventInstanceNum: integer
(int32)
-
srcFormId: string
-
srcFormSectionId: string
-
srcItemId: string
-
srcRepeatFormNumber: integer
-
srcRepeatSequenceNumber: integer
-
srcStudyVersion: string
-
subjectId: string
-
versionStart: string
(date-time)
400 Response
Bad request.
Root Schema : DcsResponse
Type:
Show Source
object
-
errorData: object
ErrorResponseData
Title:
ErrorResponseData
Error Response Details Information -
result: object
result
-
status: string
-
version: integer
(int32)
Nested Schema : ErrorResponseData
Type:
object
Title:
ErrorResponseData
Error Response Details Information
Show Source
-
details: object
Object
Title:
Object
Object with error details information. -
errorCode: string
Error code which is stored in ErrorCode enum. Example : C1-003Example:
C1-003
-
errorMessage: string
Error message which is stored in service property file. Example : Cannot modify object after a study version has been approvedExample:
Cannot modify object after a study version has been approved
Nested Schema : result
Type:
object
Nested Schema : Object
Type:
object
Title:
Object
Object with error details information.