Below is the schema details for the API requests
The below mutation is used for uploading the schedules to TVU playout.
Please note:- Client cookie is required to be given in the custom header “cookieinfo” along with below mentioned parameters.
@authToken - Authentication token , as of now it is optional
@mappingFileUrl - The URL of the mapping XLS file placed on S3. Service assumes that the file is accessible.
@scheduleFileUrl - The URL of the schedule XLS/XML file placed on S3 containing the schedules. Service assumes that the file is accessible.
@userId - User Id used by the playout service
type Mutation {
scheduleImport(
authToken: String,
mappingFileUrl: String!,
scheduleFileUrl: String!,
userId: String!): Result
}
type Query {
}
type Result {
errorCode: String
errorInfo: String
result: String
}
type Subscription {
onScheduleImport(userId: String!): Result @aws_subscribe(mutations : ["scheduleImport"])
}
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
mutation MyMutation {
scheduleImport(
mappingFileUrl: "https://rsiaudiomix.s3.us-east-2.amazonaws.com/audiomixer-graphql/xlsFiledMapping.xls",
scheduleFileUrl: "https://rsiaudiomix.s3.us-east-2.amazonaws.com/audiomixer-graphql/060122.xls",
userId: "vinodverma")
{
errorCode
errorInfo
result
}
}
mutation MyMutation {
scheduleImport(
mappingFileUrl: "https://rsiaudiomix.s3.us-east-2.amazonaws.com/audiomixer-graphql/xlsFiledMapping.xls",
scheduleFileUrl: "https://rsiaudiomix.s3.us-east-2.amazonaws.com/audiomixer-graphql/060122.xml",
userId: "vinodverma")
{
errorCode
errorInfo
result
}
}