POST api/resources/CopyResource/{isProductionServer}

Copy Resource from TLM content to classroomresponder database

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isProductionServer

boolean

Required

Body Parameters

ResourceViewModel
NameDescriptionTypeAdditional information
ResourceId

integer

None.

Description

string

None.

WebURL

string

None.

AttachmentURL

string

None.

MediaTypeId

integer

None.

ResourceName

string

None.

UserId

integer

None.

VideoLength

integer

None.

LessonPlanMaterialsNeeded

string

None.

LessonPlanAssessmentTypeId

integer

None.

LessonPlanLengthId

integer

None.

GradeLevelComments

string

None.

SubjectId

integer

None.

CostValue

decimal number

None.

AccessLevelId

integer

None.

CostComments

string

None.

AdditionalNotes

string

None.

VideoLengthSeconds

integer

None.

ResourceSubtypeId

integer

None.

FlashRequirementId

integer

None.

GraphiteRating

integer

None.

TeacherRating

integer

None.

ReviewURL

string

None.

SyncToPreview

boolean

None.

SyncToProduction

boolean

None.

Deleted

boolean

None.

SyncStatus

integer

None.

SyncToDev

boolean

None.

BrokenLink

boolean

None.

ResourceAppropriates

Collection of ResourceAppropriateForViewModel

None.

ResourceAudiences

Collection of ResourceAudienceViewModel

None.

ResourceCosts

Collection of ResourceCostViewModel

None.

ResourceDOKLevels

Collection of ResourceDOKLevelViewModel

None.

ResourceGradeLevels

Collection of ResourceGradeLevelViewModel

None.

ResourceInterestFocuses

Collection of ResourceInterestFocusViewModel

None.

ResourceInterestLevels

Collection of ResourceInterestLevelViewModel

None.

ResourcePlatforms

Collection of ResourcePlatformViewModel

None.

ResourceStandards

Collection of ResourceStandardViewModel

None.

ResourceUserReviews

Collection of ResourceUserReviewViewModel

None.

ResourceTimeNeeded

Collection of ResourceTimeNeededViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "resourceId": 1,
  "description": "sample string 2",
  "webURL": "sample string 3",
  "attachmentURL": "sample string 4",
  "mediaTypeId": 1,
  "resourceName": "sample string 5",
  "userId": 6,
  "videoLength": 1,
  "lessonPlanMaterialsNeeded": "sample string 7",
  "lessonPlanAssessmentTypeId": 1,
  "lessonPlanLengthId": 1,
  "gradeLevelComments": "sample string 8",
  "subjectId": 1,
  "costValue": 1.0,
  "accessLevelId": 1,
  "costComments": "sample string 9",
  "additionalNotes": "sample string 10",
  "videoLengthSeconds": 1,
  "resourceSubtypeId": 1,
  "flashRequirementId": 1,
  "graphiteRating": 1,
  "teacherRating": 1,
  "reviewURL": "sample string 11",
  "syncToPreview": true,
  "syncToProduction": true,
  "deleted": true,
  "syncStatus": 15,
  "syncToDev": true,
  "brokenLink": true,
  "resourceAppropriates": [
    {
      "recordId": 1,
      "resourceId": 2,
      "appropriateForId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "appropriateForId": 3
    }
  ],
  "resourceAudiences": [
    {
      "recordId": 1,
      "resourceId": 2,
      "resourceAudienceId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "resourceAudienceId": 3
    }
  ],
  "resourceCosts": [
    {
      "recordId": 1,
      "resourceId": 2,
      "costId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "costId": 3
    }
  ],
  "resourceDOKLevels": [
    {
      "recordId": 1,
      "resourceId": 2,
      "dokLevelId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "dokLevelId": 3
    }
  ],
  "resourceGradeLevels": [
    {
      "recordId": 1,
      "resourceId": 2,
      "gradeLevelId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "gradeLevelId": 3
    }
  ],
  "resourceInterestFocuses": [
    {
      "recordId": 1,
      "resourceId": 2,
      "interestFocusId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "interestFocusId": 3
    }
  ],
  "resourceInterestLevels": [
    {
      "recordId": 1,
      "resourceId": 2,
      "interestLevelId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "interestLevelId": 3
    }
  ],
  "resourcePlatforms": [
    {
      "recordId": 1,
      "resourceId": 2,
      "resourcePlatformId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "resourcePlatformId": 3
    }
  ],
  "resourceStandards": [
    {
      "recordId": 1,
      "resourceId": 2,
      "standardId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "standardId": 3
    }
  ],
  "resourceUserReviews": [
    {
      "resourceUserReviewId": 1,
      "resourceId": 2,
      "reviewerUserId": 3,
      "ratingScore": 4,
      "comments": "sample string 5",
      "dateReviewed": "2022-08-13T03:02:22.4226743Z"
    },
    {
      "resourceUserReviewId": 1,
      "resourceId": 2,
      "reviewerUserId": 3,
      "ratingScore": 4,
      "comments": "sample string 5",
      "dateReviewed": "2022-08-13T03:02:22.4226743Z"
    }
  ],
  "resourceTimeNeeded": [
    {
      "recordId": 1,
      "resourceId": 2,
      "resourceTimeNeededId": 3
    },
    {
      "recordId": 1,
      "resourceId": 2,
      "resourceTimeNeededId": 3
    }
  ]
}

application/xml, text/xml

Sample:
<ResourceViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OHS.TLMClassroomResponder.BusinessEntity">
  <AccessLevelId>1</AccessLevelId>
  <AdditionalNotes>sample string 10</AdditionalNotes>
  <AttachmentURL>sample string 4</AttachmentURL>
  <BrokenLink>true</BrokenLink>
  <CostComments>sample string 9</CostComments>
  <CostValue>1</CostValue>
  <Deleted>true</Deleted>
  <Description>sample string 2</Description>
  <FlashRequirementId>1</FlashRequirementId>
  <GradeLevelComments>sample string 8</GradeLevelComments>
  <GraphiteRating>1</GraphiteRating>
  <LessonPlanAssessmentTypeId>1</LessonPlanAssessmentTypeId>
  <LessonPlanLengthId>1</LessonPlanLengthId>
  <LessonPlanMaterialsNeeded>sample string 7</LessonPlanMaterialsNeeded>
  <MediaTypeId>1</MediaTypeId>
  <ResourceAppropriates>
    <ResourceAppropriateForViewModel>
      <AppropriateForId>3</AppropriateForId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceAppropriateForViewModel>
    <ResourceAppropriateForViewModel>
      <AppropriateForId>3</AppropriateForId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceAppropriateForViewModel>
  </ResourceAppropriates>
  <ResourceAudiences>
    <ResourceAudienceViewModel>
      <RecordId>1</RecordId>
      <ResourceAudienceId>3</ResourceAudienceId>
      <ResourceId>2</ResourceId>
    </ResourceAudienceViewModel>
    <ResourceAudienceViewModel>
      <RecordId>1</RecordId>
      <ResourceAudienceId>3</ResourceAudienceId>
      <ResourceId>2</ResourceId>
    </ResourceAudienceViewModel>
  </ResourceAudiences>
  <ResourceCosts>
    <ResourceCostViewModel>
      <CostId>3</CostId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceCostViewModel>
    <ResourceCostViewModel>
      <CostId>3</CostId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceCostViewModel>
  </ResourceCosts>
  <ResourceDOKLevels>
    <ResourceDOKLevelViewModel>
      <DOKLevelId>3</DOKLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceDOKLevelViewModel>
    <ResourceDOKLevelViewModel>
      <DOKLevelId>3</DOKLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceDOKLevelViewModel>
  </ResourceDOKLevels>
  <ResourceGradeLevels>
    <ResourceGradeLevelViewModel>
      <GradeLevelId>3</GradeLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceGradeLevelViewModel>
    <ResourceGradeLevelViewModel>
      <GradeLevelId>3</GradeLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceGradeLevelViewModel>
  </ResourceGradeLevels>
  <ResourceId>1</ResourceId>
  <ResourceInterestFocuses>
    <ResourceInterestFocusViewModel>
      <InterestFocusId>3</InterestFocusId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceInterestFocusViewModel>
    <ResourceInterestFocusViewModel>
      <InterestFocusId>3</InterestFocusId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceInterestFocusViewModel>
  </ResourceInterestFocuses>
  <ResourceInterestLevels>
    <ResourceInterestLevelViewModel>
      <InterestLevelId>3</InterestLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceInterestLevelViewModel>
    <ResourceInterestLevelViewModel>
      <InterestLevelId>3</InterestLevelId>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
    </ResourceInterestLevelViewModel>
  </ResourceInterestLevels>
  <ResourceName>sample string 5</ResourceName>
  <ResourcePlatforms>
    <ResourcePlatformViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <ResourcePlatformId>3</ResourcePlatformId>
    </ResourcePlatformViewModel>
    <ResourcePlatformViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <ResourcePlatformId>3</ResourcePlatformId>
    </ResourcePlatformViewModel>
  </ResourcePlatforms>
  <ResourceStandards>
    <ResourceStandardViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <StandardId>3</StandardId>
    </ResourceStandardViewModel>
    <ResourceStandardViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <StandardId>3</StandardId>
    </ResourceStandardViewModel>
  </ResourceStandards>
  <ResourceSubtypeId>1</ResourceSubtypeId>
  <ResourceTimeNeeded>
    <ResourceTimeNeededViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <ResourceTimeNeededId>3</ResourceTimeNeededId>
    </ResourceTimeNeededViewModel>
    <ResourceTimeNeededViewModel>
      <RecordId>1</RecordId>
      <ResourceId>2</ResourceId>
      <ResourceTimeNeededId>3</ResourceTimeNeededId>
    </ResourceTimeNeededViewModel>
  </ResourceTimeNeeded>
  <ResourceUserReviews>
    <ResourceUserReviewViewModel>
      <Comments>sample string 5</Comments>
      <DateReviewed>2022-08-12T23:02:22.4226743-04:00</DateReviewed>
      <RatingScore>4</RatingScore>
      <ResourceId>2</ResourceId>
      <ResourceUserReviewId>1</ResourceUserReviewId>
      <ReviewerUserId>3</ReviewerUserId>
    </ResourceUserReviewViewModel>
    <ResourceUserReviewViewModel>
      <Comments>sample string 5</Comments>
      <DateReviewed>2022-08-12T23:02:22.4226743-04:00</DateReviewed>
      <RatingScore>4</RatingScore>
      <ResourceId>2</ResourceId>
      <ResourceUserReviewId>1</ResourceUserReviewId>
      <ReviewerUserId>3</ReviewerUserId>
    </ResourceUserReviewViewModel>
  </ResourceUserReviews>
  <ReviewURL>sample string 11</ReviewURL>
  <SubjectId>1</SubjectId>
  <SyncStatus>15</SyncStatus>
  <SyncToDev>true</SyncToDev>
  <SyncToPreview>true</SyncToPreview>
  <SyncToProduction>true</SyncToProduction>
  <TeacherRating>1</TeacherRating>
  <UserId>6</UserId>
  <VideoLength>1</VideoLength>
  <VideoLengthSeconds>1</VideoLengthSeconds>
  <WebURL>sample string 3</WebURL>
</ResourceViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.