Create or update one or more site.
post
/<irt_study>/api/sites
Request
Supported Media Types
- application/json
- text/json
- application/xml
- text/xml
Body Parameter
List of sites.
Nested Schema : SiteDto
Type:
object- Address1
-
Type:
stringThe address of the ship location: Street address. At least one of the three address fields must be provided. - Address2
-
Type:
stringThe address of the ship location: Suite or office number. - Address3
-
Type:
stringLine 3 of the site address. - City
-
Type:
stringThe address of the ship location: City. REQUIRED. - CountryId
-
Type:
stringThe three digit ISO Code of country where the site is located. The country must already be configured for the study to allow sites in IRT. REQUIRED. - DEAExpiration
-
Type:
string(date-time)REQUIRED only if the study has a controlled substance. - DEARegistrationNumber
-
Type:
stringREQUIRED only if the study has a controlled substance. - ErrorCount
-
Type:
integer(int32)The count of errors for this record. - ErrorMessages
-
Type:
arrayErrorMessagesError list. - ExternalId
-
Type:
stringThe site identifier in the client system. OPTIONAL. - InvestigatorFirstName
-
Type:
stringLast Name of the Site Investigator. REQUIRED - InvestigatorId
-
Type:
stringThe Investigator ID number. REQUIRED if configured for the study. - InvestigatorLastName
-
Type:
stringFirst Name of the Site Investigator. REQUIRED - IsSuccessful
-
Type:
booleanFlag indicating if the record creation/update was successful. - Key
-
Type:
string(uuid)Generated GUID to identify the site record. Referenced by the error object to identify the corresponding record. - ShipEmail
-
Type:
stringThe email address of the contact at the ship location. REQUIRED - ShipFax
-
Type:
stringThe fax number of the ship location. OPTIONAL. - ShipName
-
Type:
stringThe name of the location where the drugs should be shipped. REQUIRED. - ShipNote
-
Type:
stringA note for the ship location. OPTIONAL. - ShipPhone
-
Type:
stringThe phone number of the ship location. OPTIONAL. - SiteId
-
Type:
stringThe site ID number. REQUIRED to create the site. - State
-
Type:
stringThe address of the ship location: State. REQUIRED. - TimeZone
-
Type:
stringThe time zone in which the site is located. The Valid Time Zone Name as per https://support.microsoft.com/en-us/kb/973627. REQUIRED. - Zip
-
Type:
stringThe address of the ship location: Zip code. REQUIRED.
Nested Schema : ErrorDto
Type:
object- Code
-
Type:
stringNumeric error code. - description
-
Type:
stringError description. - ExceptionField
-
Type:
stringAllowed Values:[ "NULL", "SiteId", "CountryId", "InvestigatorId", "InvestigatorFirstName", "InvestigatorLastName", "ShipName", "Phone", "Fax", "Email", "Address", "Address1", "Address2", "Address3", "City", "State", "Zip", "TimeZone", "ExternalId", "ShipNote", "DeaRegistrationNumber", "DeaExpiration", "DrugResupplyTypeId", "Approved", "InitiallyApproved", "ReapprovedDate", "DeactivationDate", "RandOpen", "ScreeningOpen", "DrugOrderingOpen", "RandLimit", "LastScreeningNumber", "ScreeningLimit", "UserDepotId", "UserFirstName", "UserLastName", "UserInitial", "UserTitle", "UserCompany", "UserExternalId", "UserRoleId", "UserLanguage", "UserDateFormat", "SendUserId" ]The field corresponding to the error. For example, if the error is for the zip code, its value will be Zip. - Key
-
Type:
string(uuid)The internal GUID to identify the corresponding site record. - SeverityLevel
-
Type:
stringAllowed Values:[ "Warning", "Critical", "Fatal" ]The severity level of the error.
Response
Supported Media Types
- application/json
- text/json
- application/xml
- text/xml
200 Response
The sites have been created/updated successfully.
Body
The class process Users/Sites and creates response to send back
Root Schema : ResponseModel[UserDto]
Type:
objectThe class process Users/Sites and creates response to send back
- CommonExceptions
-
Type:
arrayCommonExceptionsRead Only:trueThe list of errors that occurred while transforming the payload that fails the entire transaction. - HasExceptions
-
Type:
booleanTrue, if there any errors. - Records
-
Type:
arrayRecordsThe total number of records processed in the request. - SuccessfulRecords
-
Type:
integer(int32)The number of records processed successfully. - Transaction
-
Type:
stringThe internal transacation id captured in the logs.
Nested Schema : CommonExceptions
Nested Schema : Records
Nested Schema : ErrorDto
Type:
object- Code
-
Type:
stringNumeric error code. - description
-
Type:
stringError description. - ExceptionField
-
Type:
stringAllowed Values:[ "NULL", "SiteId", "CountryId", "InvestigatorId", "InvestigatorFirstName", "InvestigatorLastName", "ShipName", "Phone", "Fax", "Email", "Address", "Address1", "Address2", "Address3", "City", "State", "Zip", "TimeZone", "ExternalId", "ShipNote", "DeaRegistrationNumber", "DeaExpiration", "DrugResupplyTypeId", "Approved", "InitiallyApproved", "ReapprovedDate", "DeactivationDate", "RandOpen", "ScreeningOpen", "DrugOrderingOpen", "RandLimit", "LastScreeningNumber", "ScreeningLimit", "UserDepotId", "UserFirstName", "UserLastName", "UserInitial", "UserTitle", "UserCompany", "UserExternalId", "UserRoleId", "UserLanguage", "UserDateFormat", "SendUserId" ]The field corresponding to the error. For example, if the error is for the zip code, its value will be Zip. - Key
-
Type:
string(uuid)The internal GUID to identify the corresponding site record. - SeverityLevel
-
Type:
stringAllowed Values:[ "Warning", "Critical", "Fatal" ]The severity level of the error.
Nested Schema : UserDto
Type:
object- Address
-
Type:
stringThe address of the user. OPTIONAL. - City
-
Type:
stringThe address of the user: City. OPTIONAL. - Company
-
Type:
stringThe company that the user works for. OPTIONAL. - Country
-
Type:
stringThe address of the user: Country. This must exist in the list of countries specified in the IRT Configuration Settings Document for the study. The value will be the three letter ISO Code for the Country. REQUIRED. - DateFormat
-
Type:
stringThe format for entering the date on the phone. OPTIONAL. - Depot
-
Type:
stringThe depot associated with the user. REQUIRED for the depot user role. -
Type:
stringThe email address of the user. Must be a valid email address. REQUIRED. - ErrorCount
-
Type:
integer(int32)The count of errors for this record. - ErrorMessages
-
Type:
arrayErrorMessagesThe error details. - ExternalUserId
-
Type:
stringThe site identifier in the client system. OPTIONAL. - Fax
-
Type:
stringThe fax number of the user. Must be a valid fax number. OPTIONAL. - FirstName
-
Type:
stringThe first name of the user. REQUIRED. - InFormUserId
-
Type:
stringOnly for InForm integrated studies. User identifer in InForm for the user. OPTIONAL - Initial
-
Type:
stringThe middle initial of the user. OPTIONAL. - IsSuccessful
-
Type:
booleanA flag indicating if the record creation/update was successful. - Key
-
Type:
string(uuid)The generated GUID to identify the site record. Referenced by the error object to identify the corresponding record. - KeyId
-
Type:
stringResponse parameter. GUID of the record for internal reference. Not REQUIRED. - Language
-
Type:
stringThe preferred language of the user. OPTIONAL. - LastName
-
Type:
stringThe last name of the user. REQUIRED. - Phone
-
Type:
stringThe phone number of the user. Must be a valid phone number. OPTIONAL. - Role
-
Type:
stringThe user’s role in IRT. REQUIRED. - SendUserId
-
Type:
booleanA flag indicating whether to create a new user id. OPTIONAL. - Site
-
Type:
stringThe site associated with the user. REQUIRED for the site user role. - State
-
Type:
stringThe address of the user: State. OPTIONAL. - TimeZone
-
Type:
stringThe time zone of user's location. The Valid Time Zone Name as explained on https://support.microsoft.com/en-us/kb/973627. OPTIONAL. - Title
-
Type:
stringThe title of the user. OPTIONAL. - Zip
-
Type:
stringThe address of the user: Zip code. OPTIONAL.
201 Response
The sites have been created successfully.
Body
The class process Users/Sites and creates response to send back
Root Schema : ResponseModel[UserDto]
Type:
objectThe class process Users/Sites and creates response to send back
- CommonExceptions
-
Type:
arrayCommonExceptionsRead Only:trueThe list of errors that occurred while transforming the payload that fails the entire transaction. - HasExceptions
-
Type:
booleanTrue, if there any errors. - Records
-
Type:
arrayRecordsThe total number of records processed in the request. - SuccessfulRecords
-
Type:
integer(int32)The number of records processed successfully. - Transaction
-
Type:
stringThe internal transacation id captured in the logs.
Nested Schema : CommonExceptions
Nested Schema : Records
Nested Schema : ErrorDto
Type:
object- Code
-
Type:
stringNumeric error code. - description
-
Type:
stringError description. - ExceptionField
-
Type:
stringAllowed Values:[ "NULL", "SiteId", "CountryId", "InvestigatorId", "InvestigatorFirstName", "InvestigatorLastName", "ShipName", "Phone", "Fax", "Email", "Address", "Address1", "Address2", "Address3", "City", "State", "Zip", "TimeZone", "ExternalId", "ShipNote", "DeaRegistrationNumber", "DeaExpiration", "DrugResupplyTypeId", "Approved", "InitiallyApproved", "ReapprovedDate", "DeactivationDate", "RandOpen", "ScreeningOpen", "DrugOrderingOpen", "RandLimit", "LastScreeningNumber", "ScreeningLimit", "UserDepotId", "UserFirstName", "UserLastName", "UserInitial", "UserTitle", "UserCompany", "UserExternalId", "UserRoleId", "UserLanguage", "UserDateFormat", "SendUserId" ]The field corresponding to the error. For example, if the error is for the zip code, its value will be Zip. - Key
-
Type:
string(uuid)The internal GUID to identify the corresponding site record. - SeverityLevel
-
Type:
stringAllowed Values:[ "Warning", "Critical", "Fatal" ]The severity level of the error.
Nested Schema : UserDto
Type:
object- Address
-
Type:
stringThe address of the user. OPTIONAL. - City
-
Type:
stringThe address of the user: City. OPTIONAL. - Company
-
Type:
stringThe company that the user works for. OPTIONAL. - Country
-
Type:
stringThe address of the user: Country. This must exist in the list of countries specified in the IRT Configuration Settings Document for the study. The value will be the three letter ISO Code for the Country. REQUIRED. - DateFormat
-
Type:
stringThe format for entering the date on the phone. OPTIONAL. - Depot
-
Type:
stringThe depot associated with the user. REQUIRED for the depot user role. -
Type:
stringThe email address of the user. Must be a valid email address. REQUIRED. - ErrorCount
-
Type:
integer(int32)The count of errors for this record. - ErrorMessages
-
Type:
arrayErrorMessagesThe error details. - ExternalUserId
-
Type:
stringThe site identifier in the client system. OPTIONAL. - Fax
-
Type:
stringThe fax number of the user. Must be a valid fax number. OPTIONAL. - FirstName
-
Type:
stringThe first name of the user. REQUIRED. - InFormUserId
-
Type:
stringOnly for InForm integrated studies. User identifer in InForm for the user. OPTIONAL - Initial
-
Type:
stringThe middle initial of the user. OPTIONAL. - IsSuccessful
-
Type:
booleanA flag indicating if the record creation/update was successful. - Key
-
Type:
string(uuid)The generated GUID to identify the site record. Referenced by the error object to identify the corresponding record. - KeyId
-
Type:
stringResponse parameter. GUID of the record for internal reference. Not REQUIRED. - Language
-
Type:
stringThe preferred language of the user. OPTIONAL. - LastName
-
Type:
stringThe last name of the user. REQUIRED. - Phone
-
Type:
stringThe phone number of the user. Must be a valid phone number. OPTIONAL. - Role
-
Type:
stringThe user’s role in IRT. REQUIRED. - SendUserId
-
Type:
booleanA flag indicating whether to create a new user id. OPTIONAL. - Site
-
Type:
stringThe site associated with the user. REQUIRED for the site user role. - State
-
Type:
stringThe address of the user: State. OPTIONAL. - TimeZone
-
Type:
stringThe time zone of user's location. The Valid Time Zone Name as explained on https://support.microsoft.com/en-us/kb/973627. OPTIONAL. - Title
-
Type:
stringThe title of the user. OPTIONAL. - Zip
-
Type:
stringThe address of the user: Zip code. OPTIONAL.
204 Response
The response has no content.
Body
Root Schema : /paths/~1api~1sites/post/responses/204/schema
Type:
string207 Response
The request ran successfully, but some records had errors.
Body
The class process Users/Sites and creates response to send back
Root Schema : ResponseModel[UserDto]
Type:
objectThe class process Users/Sites and creates response to send back
- CommonExceptions
-
Type:
arrayCommonExceptionsRead Only:trueThe list of errors that occurred while transforming the payload that fails the entire transaction. - HasExceptions
-
Type:
booleanTrue, if there any errors. - Records
-
Type:
arrayRecordsThe total number of records processed in the request. - SuccessfulRecords
-
Type:
integer(int32)The number of records processed successfully. - Transaction
-
Type:
stringThe internal transacation id captured in the logs.
Nested Schema : CommonExceptions
Nested Schema : Records
Nested Schema : ErrorDto
Type:
object- Code
-
Type:
stringNumeric error code. - description
-
Type:
stringError description. - ExceptionField
-
Type:
stringAllowed Values:[ "NULL", "SiteId", "CountryId", "InvestigatorId", "InvestigatorFirstName", "InvestigatorLastName", "ShipName", "Phone", "Fax", "Email", "Address", "Address1", "Address2", "Address3", "City", "State", "Zip", "TimeZone", "ExternalId", "ShipNote", "DeaRegistrationNumber", "DeaExpiration", "DrugResupplyTypeId", "Approved", "InitiallyApproved", "ReapprovedDate", "DeactivationDate", "RandOpen", "ScreeningOpen", "DrugOrderingOpen", "RandLimit", "LastScreeningNumber", "ScreeningLimit", "UserDepotId", "UserFirstName", "UserLastName", "UserInitial", "UserTitle", "UserCompany", "UserExternalId", "UserRoleId", "UserLanguage", "UserDateFormat", "SendUserId" ]The field corresponding to the error. For example, if the error is for the zip code, its value will be Zip. - Key
-
Type:
string(uuid)The internal GUID to identify the corresponding site record. - SeverityLevel
-
Type:
stringAllowed Values:[ "Warning", "Critical", "Fatal" ]The severity level of the error.
Nested Schema : UserDto
Type:
object- Address
-
Type:
stringThe address of the user. OPTIONAL. - City
-
Type:
stringThe address of the user: City. OPTIONAL. - Company
-
Type:
stringThe company that the user works for. OPTIONAL. - Country
-
Type:
stringThe address of the user: Country. This must exist in the list of countries specified in the IRT Configuration Settings Document for the study. The value will be the three letter ISO Code for the Country. REQUIRED. - DateFormat
-
Type:
stringThe format for entering the date on the phone. OPTIONAL. - Depot
-
Type:
stringThe depot associated with the user. REQUIRED for the depot user role. -
Type:
stringThe email address of the user. Must be a valid email address. REQUIRED. - ErrorCount
-
Type:
integer(int32)The count of errors for this record. - ErrorMessages
-
Type:
arrayErrorMessagesThe error details. - ExternalUserId
-
Type:
stringThe site identifier in the client system. OPTIONAL. - Fax
-
Type:
stringThe fax number of the user. Must be a valid fax number. OPTIONAL. - FirstName
-
Type:
stringThe first name of the user. REQUIRED. - InFormUserId
-
Type:
stringOnly for InForm integrated studies. User identifer in InForm for the user. OPTIONAL - Initial
-
Type:
stringThe middle initial of the user. OPTIONAL. - IsSuccessful
-
Type:
booleanA flag indicating if the record creation/update was successful. - Key
-
Type:
string(uuid)The generated GUID to identify the site record. Referenced by the error object to identify the corresponding record. - KeyId
-
Type:
stringResponse parameter. GUID of the record for internal reference. Not REQUIRED. - Language
-
Type:
stringThe preferred language of the user. OPTIONAL. - LastName
-
Type:
stringThe last name of the user. REQUIRED. - Phone
-
Type:
stringThe phone number of the user. Must be a valid phone number. OPTIONAL. - Role
-
Type:
stringThe user’s role in IRT. REQUIRED. - SendUserId
-
Type:
booleanA flag indicating whether to create a new user id. OPTIONAL. - Site
-
Type:
stringThe site associated with the user. REQUIRED for the site user role. - State
-
Type:
stringThe address of the user: State. OPTIONAL. - TimeZone
-
Type:
stringThe time zone of user's location. The Valid Time Zone Name as explained on https://support.microsoft.com/en-us/kb/973627. OPTIONAL. - Title
-
Type:
stringThe title of the user. OPTIONAL. - Zip
-
Type:
stringThe address of the user: Zip code. OPTIONAL.
400 Response
The request could not be understood by the server due to malformed syntax.
Body
Root Schema : /paths/~1api~1sites/post/responses/400/schema
Type:
string401 Response
User authentication or authorization failed.
Body
Root Schema : /paths/~1api~1sites/post/responses/401/schema
Type:
string404 Response
The requested resource was not found.
Body
Root Schema : /paths/~1api~1sites/post/responses/404/schema
Type:
string417 Response
User creation/update failed because the records have errors.
Body
The class process Users/Sites and creates response to send back
Root Schema : ResponseModel[SiteDto]
Type:
objectThe class process Users/Sites and creates response to send back
- CommonExceptions
-
Type:
arrayCommonExceptionsRead Only:trueThe list of errors that occurred while transforming the payload that fails the entire transaction. - HasExceptions
-
Type:
booleanTrue, if there are any errors. - Records
-
Type:
arrayRecordsThe total number of records processed in the request. - SuccessfulRecords
-
Type:
integer(int32)The number of records processed successfully. - Transaction
-
Type:
stringThe internal transacation id captured in the logs.
Nested Schema : CommonExceptions
Nested Schema : Records
Nested Schema : ErrorDto
Type:
object- Code
-
Type:
stringNumeric error code. - description
-
Type:
stringError description. - ExceptionField
-
Type:
stringAllowed Values:[ "NULL", "SiteId", "CountryId", "InvestigatorId", "InvestigatorFirstName", "InvestigatorLastName", "ShipName", "Phone", "Fax", "Email", "Address", "Address1", "Address2", "Address3", "City", "State", "Zip", "TimeZone", "ExternalId", "ShipNote", "DeaRegistrationNumber", "DeaExpiration", "DrugResupplyTypeId", "Approved", "InitiallyApproved", "ReapprovedDate", "DeactivationDate", "RandOpen", "ScreeningOpen", "DrugOrderingOpen", "RandLimit", "LastScreeningNumber", "ScreeningLimit", "UserDepotId", "UserFirstName", "UserLastName", "UserInitial", "UserTitle", "UserCompany", "UserExternalId", "UserRoleId", "UserLanguage", "UserDateFormat", "SendUserId" ]The field corresponding to the error. For example, if the error is for the zip code, its value will be Zip. - Key
-
Type:
string(uuid)The internal GUID to identify the corresponding site record. - SeverityLevel
-
Type:
stringAllowed Values:[ "Warning", "Critical", "Fatal" ]The severity level of the error.
Nested Schema : SiteDto
Type:
object- Address1
-
Type:
stringThe address of the ship location: Street address. At least one of the three address fields must be provided. - Address2
-
Type:
stringThe address of the ship location: Suite or office number. - Address3
-
Type:
stringLine 3 of the site address. - City
-
Type:
stringThe address of the ship location: City. REQUIRED. - CountryId
-
Type:
stringThe three digit ISO Code of country where the site is located. The country must already be configured for the study to allow sites in IRT. REQUIRED. - DEAExpiration
-
Type:
string(date-time)REQUIRED only if the study has a controlled substance. - DEARegistrationNumber
-
Type:
stringREQUIRED only if the study has a controlled substance. - ErrorCount
-
Type:
integer(int32)The count of errors for this record. - ErrorMessages
-
Type:
arrayErrorMessagesError list. - ExternalId
-
Type:
stringThe site identifier in the client system. OPTIONAL. - InvestigatorFirstName
-
Type:
stringLast Name of the Site Investigator. REQUIRED - InvestigatorId
-
Type:
stringThe Investigator ID number. REQUIRED if configured for the study. - InvestigatorLastName
-
Type:
stringFirst Name of the Site Investigator. REQUIRED - IsSuccessful
-
Type:
booleanFlag indicating if the record creation/update was successful. - Key
-
Type:
string(uuid)Generated GUID to identify the site record. Referenced by the error object to identify the corresponding record. - ShipEmail
-
Type:
stringThe email address of the contact at the ship location. REQUIRED - ShipFax
-
Type:
stringThe fax number of the ship location. OPTIONAL. - ShipName
-
Type:
stringThe name of the location where the drugs should be shipped. REQUIRED. - ShipNote
-
Type:
stringA note for the ship location. OPTIONAL. - ShipPhone
-
Type:
stringThe phone number of the ship location. OPTIONAL. - SiteId
-
Type:
stringThe site ID number. REQUIRED to create the site. - State
-
Type:
stringThe address of the ship location: State. REQUIRED. - TimeZone
-
Type:
stringThe time zone in which the site is located. The Valid Time Zone Name as per https://support.microsoft.com/en-us/kb/973627. REQUIRED. - Zip
-
Type:
stringThe address of the ship location: Zip code. REQUIRED.
500 Response
The server encountered an unexpected error.
Body
Root Schema : /paths/~1api~1sites/post/responses/500/schema
Type:
stringExamples
The following example submits a POST request.
API URL
http://localhost:65385/IrtStudy/api/sites/post
Example of Request Body
The following example shows the request sent in JSON format.
[
{
"SiteId": "208",
"InvestigatorId": "1289003",
"InvestigatorFirstName": "John",
"InvestigatorLastName": "Doe",
"Address1": "123 Main Street",
"Address2": "456 Main Street",
"Address3": "789 Main Street",
"City": "Broomal",
"State": "PA",
"Zip": "18976",
"CountryId": "USA",
"ShipPhone": "1239809118",
"ShipFax": "12398098111",
"ShipName": "Marysya",
"ShipEmail": "john.doe@oracle.com",
"ShipNote": "just note",
"TimeZone": "Eastern Standard Time",
"ExternalId": "1233229",
"DEARegistrationNumber": "ab1234568",
"DEAExpiration": "2018-05-25T14:01:06.439617-04:00"
}
]
Example of Response Body
The following example shows the response returned in JSON format.
{
"Transaction": "4706050217164838947",
"Records": [
{
"Key": "7ac180e6-d840-4d4e-91cc-e70a14839ef2",
"ErrorCount": 0,
"ErrorMessages": [],
"IsSuccessful": true,
"SiteId": "208",
"InvestigatorId": "1289003",
"InvestigatorFirstName": "John",
"InvestigatorLastName": "Doe",
"Address1": "123 Main Street",
"Address2": "456 Main Street",
"Address3": "789 Main Street",
"City": "Broomal",
"State": "PA",
"Zip": "18976",
"CountryId": "USA",
"ShipPhone": "1239809118",
"ShipFax": "12398098111",
"ShipName": "Marysya",
"ShipEmail": "john.doe@oracle.com",
"ShipNote": "just note",
"TimeZone": "Eastern Standard Time",
"ExternalId": "1233229",
"DEARegistrationNumber": "ab1234568",
"DEAExpiration": "2018-05-25T14:01:06.439617-04:00"
}
],
"CommonExceptions": [],
"SuccessfulRecords": 1,
"HasExceptions": false
}