OBJECT
Mutation
Mutations are used to modify data. Each mutation takes an input that contains the data necessary to create or update the data in question.
link GraphQL Schema definition
1 type Mutation { 2 3 # Create a new temporal data object 4 # Example: 5 # Request: 6 # mutation { 7 # 8 # createTDO(input: { 9 # 10 # startDateTime: 1623253937, 11 # 12 # stopDateTime: 1623259000, 13 # 14 # source: "123", 15 # 16 # name: "example", 17 # 18 # description: "example", 19 # 20 # isPublic: false, 21 # 22 # applicationId: "123"}) { 23 # 24 # id 25 # 26 # name 27 # 28 # } 29 # } 30 # Response: 31 # { 32 # 33 # "data": { 34 # 35 # "createTDO": { 36 # 37 # "id": "1570654874", 38 # 39 # "name": "example" 40 # 41 # } 42 # 43 # } 44 # } 45 # 46 # Arguments 47 # input: Fields required to create a TDO 48 (: CreateTDO): TemporalDataObject 49 50 # Update a temporal data object 51 # Example: 52 # Request: 53 # mutation { 54 # 55 # updateTDO(input:{ 56 # 57 # id: "1570654874", 58 # 59 # status: "example", 60 # 61 # name: "example"}) { 62 # 63 # id 64 # 65 # name 66 # 67 # description 68 # 69 # } 70 # } 71 # Result: 72 # { 73 # 74 # "data": { 75 # 76 # "updateTDO": { 77 # 78 # "id": "1570654874", 79 # 80 # "name": "example", 81 # 82 # "description": null 83 # 84 # } 85 # 86 # } 87 # } 88 # 89 # Arguments 90 # input: Fields required to update a TDO 91 (: UpdateTDO): TemporalDataObject 92 93 # Delete a temporal data object. The TDO metadata, its assets and 94 # all storage objects, and search index data are deleted. 95 # Engine results stored in related task objects are not. 96 # cleanupTDO can be used to selectively delete certain data on the TDO. 97 # Example: 98 # Request: 99 # mutation { 100 # 101 # deleteTDO( 102 # 103 # id: "1570654874") { 104 # 105 # id 106 # 107 # message 108 # 109 # } 110 # } 111 # Response: 112 # 113 # { 114 # 115 # "data": { 116 # 117 # "deleteTDO": { 118 # 119 # "id": "1570654874", 120 # 121 # "message": "TemporalDataObject 1570654874 and all associated asset content was 122 # deleted." 123 # 124 # } 125 # 126 # } 127 # } 128 # 129 # Arguments 130 # id: Supply the ID of the TDO to delete 131 (: ID!): DeletePayload 132 133 # Delete partial information from a temporal data object. 134 # Use the delete options to control exactly which data is deleted. 135 # The default is to delete objects from storage and the search index, 136 # while leaving TDO-level metadata and task engine results intact. 137 # To permanently delete the TDO, use delete TDO. 138 # Example: 139 # Request: 140 # mutation { 141 # 142 # cleanupTDO( 143 # 144 # id: "1570705980") { 145 # 146 # id 147 # 148 # message 149 # 150 # } 151 # } 152 # Response: 153 # { 154 # 155 # "data": { 156 # 157 # "cleanupTDO": { 158 # 159 # "id": "1570705980", 160 # 161 # "message": null 162 # 163 # } 164 # 165 # } 166 # } 167 # 168 # Arguments 169 # id: Supply the ID of the TDO to clean up. 170 # options: Supply a list of cleanup options. See TDOCleanupOption 171 # for details. If not provided, the server will use default settings. 172 (: ID!, : [TDOCleanupOption!]): DeletePayload 173 174 # Create a task log by using 175 # multipart form POST. 176 # 177 # Arguments 178 # input: Fields needed to create a task log. 179 (: CreateTaskLog!): TaskLog 180 181 # Create a media asset. Optionally, upload content using 182 # multipart form POST. 183 # example: 184 # Request: 185 # mutation { 186 # 187 # createAsset(input: { 188 # 189 # containerId: "1570654874", 190 # 191 # contentType: "application/json", 192 # 193 # description: "example", 194 # 195 # file: null, 196 # 197 # assetType: "text", 198 # 199 # uri: "example" 200 # 201 # name: "example"}) { 202 # 203 # id 204 # 205 # name 206 # 207 # description 208 # 209 # } 210 # } 211 # Response: 212 # { 213 # 214 # "data": { 215 # 216 # "createAsset": { 217 # 218 # "id": "1570654874_4hJtNKSUXD", 219 # 220 # "name": "example", 221 # 222 # "description": "example" 223 # 224 # } 225 # 226 # } 227 # } 228 # 229 # Arguments 230 # input: Fields needed to create an asset. 231 (: CreateAsset!): Asset 232 233 # Delete an asset 234 # Example: 235 # Request: 236 # mutation { 237 # 238 # deleteAsset( 239 # 240 # id: "1570705980_w4ZLCPU7Dk") { 241 # 242 # id 243 # 244 # message 245 # 246 # } 247 # } 248 # Response: 249 # { 250 # 251 # "data": { 252 # 253 # "deleteAsset": { 254 # 255 # "id": "1570705980_w4ZLCPU7Dk", 256 # 257 # "message": "No storage objects deleted for example" 258 # 259 # } 260 # 261 # } 262 # } 263 # 264 # Arguments 265 # id: Provide the ID of the asset to delete. 266 (: ID!): DeletePayload 267 268 # Update an asset 269 # Example: 270 # Request: 271 # mutation { 272 # 273 # updateAsset(input: { 274 # 275 # id: "1570705980_w4ZLCPU7Dk", 276 # 277 # description: "example", 278 # 279 # name: "example", 280 # 281 # fileData: null, 282 # 283 # sourceData: null, 284 # 285 # details: null}) { 286 # 287 # id 288 # 289 # name 290 # 291 # contentType 292 # 293 # } 294 # } 295 # Result: 296 # { 297 # 298 # "data": { 299 # 300 # "updateAsset": { 301 # 302 # "id": "1570705980_w4ZLCPU7Dk", 303 # 304 # "name": "example", 305 # 306 # "contentType": "application/json" 307 # 308 # } 309 # 310 # } 311 # } 312 # 313 # Arguments 314 # input: Fields needed to update an asset. 315 (: UpdateAsset!): Asset 316 317 # Add a single media segment to a TemporalDataObject. 318 # This mutation will update the manifest asset (`media-mdp`) 319 # for the TemporalDataObject. 320 # Example: 321 # Request: 322 # mutation { 323 # 324 # addMediaSegment(input: { 325 # 326 # containerId: "1570705980", 327 # 328 # details: [], 329 # 330 # url: 331 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg", 332 # 333 # segmentGroupId: "123"}) { 334 # 335 # id 336 # 337 # name 338 # 339 # createdBy 340 # 341 # } 342 # } 343 # Response: 344 # { 345 # 346 # "data": { 347 # 348 # "addMediaSegment": { 349 # 350 # "id": "1570705980", 351 # 352 # "name": "example", 353 # 354 # "createdBy": null 355 # 356 # } 357 # 358 # } 359 # } 360 # 361 # Arguments 362 # input: Fields necesary to create the segment. 363 (: AddMediaSegment!): TemporalDataObject! 364 365 # Add a media segments to a TemporalDataObject. 366 # This mutation will update the manifest asset (`media-mdp`) 367 # for the TemporalDataObject. 368 # Example: 369 # Request: 370 # mutation { 371 # 372 # addMediaSegments( 373 # 374 # containerId: "1570705980", 375 # 376 # segments: [ 377 # 378 # { 379 # 380 # details: [], 381 # 382 # url: 383 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg", 384 # 385 # }, 386 # 387 # { 388 # 389 # details: [], 390 # 391 # url: 392 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg" 393 # 394 # } 395 # 396 # ] 397 # 398 # segmentGroupId: "123") { 399 # 400 # id 401 # 402 # name 403 # 404 # 405 # } 406 # } 407 # Response: 408 # { 409 # 410 # "data": { 411 # 412 # "addMediaSegments": { 413 # 414 # "id": "1570705980", 415 # 416 # "name": "example" 417 # 418 # } 419 # 420 # } 421 # } 422 # 423 # Arguments 424 # containerId: ID of the TemporalDataObject container for the 425 # segment 426 # segments: Fields necesary to create the segment. 427 # segmentGroupId: ID of the segment group (Optional) 428 ( 429 : ID!, 430 : [AddMediaSegments]!, 431 : ID 432 ): TemporalDataObject! 433 434 # Start a clone job. A clone creates a new TDO 435 # that links back to an existing TDO's assets 436 # instead of creating new ones and is used 437 # primarily to handle sample media. 438 # Only for internal platform components. 439 # Example: 440 # Request: 441 # mutation { 442 # 443 # requestClone(input: { 444 # 445 # sourceApplicationId: "47bd3e25-f4ea-435f-b69b-13cb4f9dd60a", 446 # 447 # destinationApplicationId:"5908703b-51b4-4291-9787-b54bada73b0a", 448 # 449 # cloneBlobs: true, 450 # 451 # includeAssets: true, 452 # 453 # cloneAssets: [ 454 # 455 # { assetType: "media"}, 456 # 457 # { assetType: "vtn-standard", engineId: "01e54769-c448-4ece-a500-4fab5b49b722" }, 458 # 459 # { assetType: "content-template", schemaId: 460 # "5d678e3c-f87c-475e-8795-bf59bd55efd7" } 461 # 462 # ] 463 # 464 # }) { 465 # 466 # id 467 # 468 # status 469 # 470 # } 471 # } 472 # Response: 473 # { 474 # 475 # "data": { 476 # 477 # "requestClone": null 478 # 479 # } 480 # } 481 # 482 # Arguments 483 # input: Fields needed to request a new clone job. 484 (: RequestClone): CloneRequest 485 486 # Refresh an existing clone job. This allows updating existing clones or cloning 487 # new recordings 488 # based on the specified mode. Only for internal platform components. 489 # The clone request must be in "complete" status to be refreshed. 490 # Example: 491 # Request: 492 # mutation { 493 # 494 # refreshClone(input: { 495 # 496 # cloneId: "existing-clone-id", 497 # 498 # mode: FULL 499 # 500 # }) { 501 # 502 # id 503 # 504 # status 505 # 506 # numberOfRecordings 507 # 508 # numberOfCompletedRecordings 509 # 510 # } 511 # } 512 # 513 # Arguments 514 # input: Fields needed to refresh a clone job. 515 (: RefreshClone): CloneRequest 516 517 # Cancel an in-progress clone job. Atomically transitions the clone request's 518 # status from "running" to "failed", which signals the background worker to 519 # stop processing the clone request. Only the source application is allowed 520 # to cancel. 521 # Example: 522 # Request: 523 # mutation { 524 # 525 # cloneRequestCancel(cloneId: "existing-clone-id") { 526 # 527 # id 528 # 529 # status 530 # 531 # } 532 # } 533 # 534 # Arguments 535 # cloneId: ID of the clone request to cancel. Must be in 536 # "running" status. 537 (: ID!): CloneRequest 538 539 # Create a new automate flow. An automate flow is an engine 540 # with extra metadata to work in the automate environment. 541 # This endpoint will return an engineId that can be used to open 542 # the flow in automate. 543 # Example: 544 # Request: 545 # mutation { 546 # 547 # createAutomateFlow(input: { 548 # 549 # name: "My New Flow", 550 # 551 # linkedApplicationId: "123", 552 # 553 # templateId: "36" 554 # 555 # } 556 # } 557 # Response: 558 # { 559 # 560 # "data": { 561 # 562 # "createAutomateFlow": { 563 # 564 # "engineId": "567", 565 # 566 # "build": { 567 # 568 # "engineId": 567 569 # 570 # } 571 # 572 # } 573 # 574 # } 575 # } 576 # 577 # Arguments 578 # input: Fields needed to create a new automate flow 579 (: AutomateFlowInput!): AutomateRunConfig 580 581 # Create a new engine. The engine will need to go 582 # through a sequence of workflow steps before 583 # use in production. See VDA documentation for details. 584 # Example: 585 # Request: 586 # mutation { 587 # 588 # createEngine(input: { 589 # 590 # id: "123", 591 # 592 # name: "example", 593 # 594 # categoryId: "581dbb32-ea5b-4458-bd15-8094942345e3", 595 # 596 # deploymentModel: FullyNetworkIsolated 597 # 598 # useCases: [], 599 # 600 # industries: [] 601 # 602 # }) { 603 # 604 # id 605 # 606 # ownerOrganizationId 607 # 608 # } 609 # } 610 # Response: 611 # { 612 # 613 # "data": { 614 # 615 # "createEngine": { 616 # 617 # "id": "123", 618 # 619 # "ownerOrganizationId": "35521" 620 # 621 # } 622 # 623 # } 624 # } 625 # 626 # Arguments 627 # input: Fields needed to create a new engine 628 (: CreateEngine): Engine 629 630 # Update an engine. Engines are subject to specific 631 # workflow steps. An engine's state determines what 632 # updates can be made to it. See VDA documentation for 633 # details. 634 # Example: 635 # Request: 636 # mutation { 637 # 638 # updateEngine(input: { 639 # 640 # id:"123", 641 # 642 # isPublic: false, 643 # 644 # name: "example", 645 # 646 # deploymentModel: FullyNetworkIsolated, 647 # 648 # price: 1}) { 649 # 650 # id 651 # 652 # ownerOrganizationId 653 # 654 # name 655 # 656 # price 657 # 658 # } 659 # } 660 # Response: 661 # { 662 # 663 # "data": { 664 # 665 # "updateEngine": { 666 # 667 # "id": "123", 668 # 669 # "ownerOrganizationId": "35521", 670 # 671 # "name": "example", 672 # 673 # "price": 1 674 # 675 # } 676 # 677 # } 678 # } 679 # 680 # Arguments 681 # input: Fields needed to update an engine 682 (: UpdateEngine): Engine 683 684 # Delete an engine 685 # Example: 686 # Request: 687 # mutation { 688 # 689 # deleteEngine( 690 # 691 # id: "123") { 692 # 693 # id 694 # 695 # message 696 # 697 # } 698 # } 699 # Response: 700 # { 701 # 702 # "data": { 703 # 704 # "deleteEngine": { 705 # 706 # "id": "123", 707 # 708 # "message": "engine 123 deleted" 709 # 710 # } 711 # 712 # } 713 # } 714 # 715 # Arguments 716 # id: Provide the ID of the engine to delete 717 (: ID!): DeletePayload 718 719 # Create an engine build. 720 # Example: 721 # Request: 722 # 723 # mutation { 724 # 725 # createEngineBuild(input: { 726 # 727 # engineId: "1", 728 # 729 # taskRuntime: [], 730 # 731 # dockerImage: "build", 732 # 733 # manifest: [] }) { 734 # 735 # id 736 # 737 # name 738 # 739 # engineId 740 # 741 # } 742 # 743 # realeaseNotes: "Includes feature x..." 744 # 745 # } 746 # Response: 747 # { 748 # 749 # "data": { 750 # 751 # "createEngineBuild": { 752 # 753 # "id": "2a1a1b58-6983-4002-b9ed-7b7f325f621a", 754 # 755 # "name": "example Version 1", 756 # 757 # "engineId": "1", 758 # 759 # "releaseNotes": "Includes feature x..." 760 # 761 # } 762 # 763 # } 764 # } 765 # 766 # Arguments 767 # input: Fields needed to create an engine build. 768 (: CreateBuild!): Build 769 770 # Update an engine build. Engine builds are subject to 771 # specific workflow steps. A build's state determines what 772 # updates can be made to it. See VDA documentation for details. 773 # Example: 774 # Request: 775 # mutation { 776 # 777 # updateEngineBuild(input: { 778 # 779 # id: "6f766576-03a9-42c4-8a96-f4cd932e7c6c", 780 # 781 # engineId: "1", 782 # 783 # action: update, 784 # 785 # taskRuntime: []}) { 786 # 787 # id 788 # 789 # name 790 # 791 # } 792 # 793 # releaseNotes: "Includes feature x..." 794 # 795 # } 796 # Response: 797 # { 798 # 799 # "data": { 800 # 801 # "updateEngineBuild": { 802 # 803 # "id": "6f766576-03a9-42c4-8a96-f4cd932e7c6c", 804 # 805 # "name": "example Version 3" 806 # 807 # "releaseNotes": "Includes feature x..." 808 # 809 # } 810 # 811 # } 812 # } 813 # 814 # Arguments 815 # input: Fields needed to update an engine build. 816 (: UpdateBuild!): Build 817 818 # Delete an engine build 819 # Example: 820 # Request: 821 # mutation { 822 # 823 # deleteEngineBuild(input: { 824 # 825 # id: "6f766576-03a9-42c4-8a96-f4cd932e7c6c", 826 # 827 # engineId: "1"}) { 828 # 829 # id 830 # 831 # message 832 # 833 # } 834 # } 835 # Response: 836 # { 837 # 838 # "data": { 839 # 840 # "deleteEngineBuild": { 841 # 842 # "id": "6f766576-03a9-42c4-8a96-f4cd932e7c6c", 843 # 844 # "message": "Engine build 6f766576-03a9-42c4-8a96-f4cd932e7c6c deleted" 845 # 846 # } 847 # 848 # } 849 # } 850 # 851 # Arguments 852 # input: Fields needed to delete an engine build. 853 (: DeleteBuild!): DeletePayload 854 855 # Update a task 856 # 857 # Arguments 858 # input: Fields required to update a task. 859 (: UpdateTask): Task 860 861 # Arguments 862 # reason: Short string describing the warning 863 # message: Optional: the actual problem 864 # referenceId: Optional: Reference ID for the warning, such as 865 # assetId, or sourceId 866 ( 867 : ID, 868 : String!, 869 : String, 870 : ID 871 ): ID 872 873 # Create a new application viewer, which are visual ways to consume engine output. 874 # These can be pre-built by aiWARE or developed by third parties for custom views. 875 # Example: 876 # Request: 877 # mutation { 878 # 879 # createApplicationViewer(input: { 880 # 881 # name: "example123", 882 # 883 # description: "Viewer used to display transcriptions.", 884 # 885 # icon: "https://s3.amazonaws.com/dev-api.veritone.com/7682/other/icon.png", 886 # 887 # mimetype: "application/json", 888 # 889 # viewerType: "external" 890 # 891 # }) { 892 # 893 # id 894 # 895 # name 896 # 897 # } 898 # } 899 # Response: 900 # { 901 # 902 # "data": { 903 # 904 # "createApplicationViewer": { 905 # 906 # "id": "7e863365-94de-4ac9-8826-df1a398c9a21", 907 # 908 # "name": "example123" 909 # 910 # } 911 # 912 # } 913 # } 914 # 915 # Arguments 916 # input: Fields needed to create a new custom application. 917 ( 918 : CreateApplicationViewer! 919 ): ApplicationViewer 920 921 # Create an Application Viewer build. 922 # Example: 923 # Request: 924 # 925 # mutation { 926 # 927 # createApplicationViewerBuild(input: { 928 # 929 # viewerId: "7e863365-94de-4ac9-8826-df1a398c9a21", 930 # 931 # sourceUrl: "https://viewers.aws-dev.veritone.com/json", 932 # 933 # accessUrl: "https://viewers.aws-dev.veritone.com/json" 934 # 935 # }) { 936 # 937 # viewerId 938 # 939 # viewerBuildId 940 # 941 # sourceUrl 942 # 943 # accessUrl 944 # 945 # version 946 # 947 # status 948 # 949 # } 950 # 951 # } 952 # Response: 953 # { 954 # 955 # "data": { 956 # 957 # "createApplicationViewerBuild": { 958 # 959 # "viewerId": "7e863365-94de-4ac9-8826-df1a398c9a21", 960 # 961 # "viewerBuildId": "2a1a1b58-6983-4002-b9ed-7b7f325f621a", 962 # 963 # "sourceUrl": "https://viewers.aws-dev.veritone.com/json", 964 # 965 # "accessUrl": "https://viewers.aws-dev.veritone.com/json", 966 # 967 # "version": "1", 968 # 969 # "status": "draft" 970 # 971 # } 972 # 973 # } 974 # } 975 # 976 # Arguments 977 # input: Fields needed to create an engine build. 978 ( 979 : CreateApplicationViewerBuild! 980 ): ApplicationViewerBuild 981 982 (: AddTasksToJobs): AddTasksToJobsResponse 983 984 # Create a job 985 # 986 # Arguments 987 # input: Fields required to create a job. 988 (: CreateJob): Job 989 990 # Cancel a job. This action effectively deletes the job, 991 # although a records of job and task execution remains in 992 # Veritone's database. 993 # 994 # Arguments 995 # id: Supply the ID of the job to delete. 996 (: ID!): DeletePayload 997 998 # Retry a job. This action applies only to jobs 999 # that are in a failure state. The task sequence 1000 # for the job will be restarted in its original 1001 # configuration. 1002 # 1003 # Arguments 1004 # id: Supply the ID of the job to retry. 1005 # clusterId: Use this field to change the cluster id, by default 1006 # the job 1007 # will be retried on the same cluster as the original 1008 (: ID!, : ID): Job 1009 1010 # Create and launch a job executing a single engine, 1011 # using the default engine DAG definition modified with the 1012 # supplied field values 1013 (: SingleEngineJobInput!): Job 1014 1015 # Create and launch a job executing multiple engines, 1016 # using a DAG template definition modified with the 1017 # supplied field values. 1018 (: LaunchDAGTemplateInput!): Job 1019 1020 (: UpdateJobs!): JobList 1021 1022 # This creates a config definition for an application 1023 ( 1024 : [ApplicationConfigDefinitionCreate] 1025 ): ApplicationConfigDefinitionList 1026 1027 # This updates an existing config definition for an application 1028 ( 1029 : [ApplicationConfigDefinitionUpdateInput] 1030 ): ApplicationConfigDefinitionList 1031 1032 # This removes an existing config definition from an application 1033 ( 1034 : ApplicationConfigDefinitionDelete 1035 ): OperationResult 1036 1037 # This sets configs for an app/org/user 1038 ( 1039 : ApplicationConfigSetConfigInput 1040 ): ApplicationConfigList 1041 1042 # This removes configs for an app/org/user 1043 (: ApplicationConfigDelete): OperationResult 1044 1045 # This adds an application to an organization. 1046 # 1047 # Arguments 1048 # orgId: OrgID 1049 # appId: AppID 1050 # configs: Pass in configs 1051 ( 1052 : ID!, 1053 : ID!, 1054 : [ApplicationConfigInput!] 1055 ): Application! 1056 1057 # This removes an application from an organization 1058 ( 1059 : ID!, 1060 : ID!, 1061 : ID, 1062 : Boolean 1063 ): OperationResult 1064 1065 # This creates headerbar information for an application/organization 1066 ( 1067 : ID!, 1068 : ID, 1069 : ApplicationHeaderbarInput 1070 ): ApplicationHeaderbar 1071 1072 # This updates headerbar information for an application/organization 1073 ( 1074 : ID!, 1075 : ID, 1076 : ApplicationHeaderbarUpdate 1077 ): ApplicationHeaderbar 1078 1079 # Create a new application. An application must 1080 # go through a sequence of workflow steps before 1081 # it is available in production. See the VDA documentation 1082 # for details. 1083 # Example: 1084 # Request: 1085 # mutation { 1086 # 1087 # createApplication(input: { 1088 # 1089 # name: "example123", 1090 # 1091 # key: "example123", 1092 # 1093 # category: "example", 1094 # 1095 # url: "www.veritone.com", 1096 # 1097 # checkPermissions: true}) { 1098 # 1099 # id 1100 # 1101 # name 1102 # 1103 # } 1104 # } 1105 # Response: 1106 # { 1107 # 1108 # "data": { 1109 # 1110 # "createApplication": { 1111 # 1112 # "id": "7e863365-94de-4ac9-8826-df1a398c9a21", 1113 # 1114 # "name": "example123" 1115 # 1116 # } 1117 # 1118 # } 1119 # } 1120 # 1121 # Arguments 1122 # input: Fields needed to create a new custom application. 1123 (: CreateApplication): Application 1124 1125 # Delete an application 1126 # Example: 1127 # Request: 1128 # mutation { 1129 # 1130 # deleteApplication( 1131 # 1132 # id: "7e863365-94de-4ac9-8826-df1a398c9a21") { 1133 # 1134 # id 1135 # 1136 # message 1137 # 1138 # } 1139 # } 1140 # Response: 1141 # { 1142 # 1143 # "data": { 1144 # 1145 # "deleteApplication": { 1146 # 1147 # "id": "7e863365-94de-4ac9-8826-df1a398c9a21", 1148 # 1149 # "message": null 1150 # 1151 # } 1152 # 1153 # } 1154 # } 1155 # 1156 # Arguments 1157 # id: Supply the ID of the application to delete. 1158 (: ID!): DeletePayload 1159 1160 # Update a custom application. Applications are subject to 1161 # specific workflows. The current application state determines 1162 # what updates can be made to it. See VDA documentation for details. 1163 # Example: 1164 # Request: 1165 # mutation { 1166 # 1167 # updateApplication(input: { 1168 # 1169 # name: "example123", 1170 # 1171 # id: "7e863365-94de-4ac9-8826-df1a398c9a21" 1172 # 1173 # category: "example", 1174 # 1175 # url: "www.veritone.com", 1176 # 1177 # checkPermissions: true, 1178 # 1179 # oauth2RedirectUrls: [], 1180 # 1181 # permissionsRequired: []}) { 1182 # 1183 # id 1184 # 1185 # name 1186 # 1187 # url 1188 # 1189 # } 1190 # } 1191 # Response: 1192 # { 1193 # 1194 # "data": { 1195 # 1196 # "updateApplication": { 1197 # 1198 # "id": "7e863365-94de-4ac9-8826-df1a398c9a21", 1199 # 1200 # "name": "example123", 1201 # 1202 # "url": "www.veritone.com" 1203 # 1204 # } 1205 # 1206 # } 1207 # } 1208 # 1209 # Arguments 1210 # input: Fields required to update a custom application. 1211 (: UpdateApplication): Application 1212 1213 # Deprecated: Application Components are no longer supported. 1214 # Instead, use packageUpdate or packageUpdateResources to associate 1215 # resources with the application's package. 1216 ( 1217 : UpdateApplicationComponent! 1218 ): ApplicationComponent! 1219 1220 # Update an application's billing plan id for an organization. 1221 # Example: 1222 # Request: 1223 # mutation { 1224 # 1225 # updateApplicationBillingPlanId( 1226 # 1227 # applicationId:"32babe30-fb42-11e4-89bc-27b69865858a", 1228 # 1229 # organizationId: "35521", 1230 # 1231 # billingPlanId: "123") { 1232 # 1233 # applicationId 1234 # 1235 # billingDirty 1236 # 1237 # } 1238 # } 1239 # Response: 1240 # { 1241 # 1242 # "data": { 1243 # 1244 # "updateApplicationBillingPlanId": { 1245 # 1246 # "applicationId": "32babe30-fb42-11e4-89bc-27b69865858a", 1247 # 1248 # "billingDirty": true 1249 # 1250 # } 1251 # 1252 # } 1253 # } 1254 ( 1255 : ID!, 1256 : ID!, 1257 : String! 1258 ): ApplicationBillingPlanId! 1259 1260 # Update an application's billing dirty for an organization. 1261 # Example: 1262 # Request: 1263 # mutation { 1264 # 1265 # updateApplicationBillingDirty( 1266 # 1267 # applicationId: "32babe30-fb42-11e4-89bc-27b69865858a", 1268 # 1269 # organizationId: "35521", 1270 # 1271 # billingDirty: false) { 1272 # 1273 # applicationId 1274 # 1275 # billingDirty 1276 # 1277 # } 1278 # } 1279 # Response: 1280 # { 1281 # 1282 # "data": { 1283 # 1284 # "updateApplicationBillingDirty": { 1285 # 1286 # "applicationId": "32babe30-fb42-11e4-89bc-27b69865858a", 1287 # 1288 # "billingDirty": false 1289 # 1290 # } 1291 # 1292 # } 1293 # } 1294 ( 1295 : ID!, 1296 : ID!, 1297 : Boolean! 1298 ): ApplicationBillingDirty! 1299 1300 # Bulk delete context menu extensions. 1301 # Example: 1302 # Request: 1303 # mutation { 1304 # 1305 # bulkDeleteContextMenuExtensions(input: { 1306 # 1307 # ids: []}) { 1308 # 1309 # mentions{ 1310 # 1311 # id 1312 # 1313 # } 1314 # 1315 # } 1316 # } 1317 # Response: 1318 # { 1319 # 1320 # "data": { 1321 # 1322 # "bulkDeleteContextMenuExtensions": { 1323 # 1324 # "mentions": [] 1325 # 1326 # } 1327 # 1328 # } 1329 # } 1330 (: FileApplication!): Application 1331 1332 (: UnfileApplication!): Application 1333 1334 ( 1335 : BulkDeleteContextMenuExtensions 1336 ): ContextMenuExtensionList 1337 1338 # Update an organization 1339 # Example: 1340 # Request: 1341 # mutation { 1342 # 1343 # updateOrganization(input: { 1344 # 1345 # id: "35521", 1346 # 1347 # indexTDOsByDefault: true}) { 1348 # 1349 # id 1350 # 1351 # status 1352 # 1353 # } 1354 # } 1355 # Response: 1356 # { 1357 # 1358 # "data": { 1359 # 1360 # "updateOrganization": { 1361 # 1362 # "id": "35521", 1363 # 1364 # "status": "active" 1365 # 1366 # } 1367 # 1368 # } 1369 # } 1370 # 1371 # Arguments 1372 # input: Fields required to update an organization. 1373 (: UpdateOrganization!): Organization 1374 1375 # Update organization billing policy. Requires superadmin 1376 # 1377 # Arguments 1378 # planId: External billing plan id. 1379 # targetOrganizationId: Optional organization id, to use when the 1380 # caller is a superadmin from a different org 1381 ( 1382 : String!, 1383 : ID 1384 ): OrganizationBilling 1385 1386 (: SetEngineWhitelist!): EngineWhitelist 1387 1388 (: SetEngineBlacklist!): EngineBlacklist 1389 1390 ( 1391 : SetEngineBlacklist! 1392 ): EngineBlacklist 1393 1394 ( 1395 : SetEngineBlacklist! 1396 ): EngineWhitelist 1397 1398 # Create an entity identifier type, such as "face" or "image". 1399 # Entity identifier types are typically created or modified 1400 # only by Veritone engineering. Most libraries and 1401 # entities will use existing entity identifier types. 1402 # Example: 1403 # Request: 1404 # mutation { 1405 # 1406 # createEntityIdentifierType(input: { 1407 # 1408 # label: "example" 1409 # 1410 # labelPlural: "example" 1411 # 1412 # iconClass: null 1413 # 1414 # description: "example" 1415 # 1416 # dataType: text 1417 # 1418 # id: "123"}) { 1419 # 1420 # id 1421 # 1422 # description 1423 # 1424 # } 1425 # } 1426 # Response: 1427 # { 1428 # 1429 # "data": { 1430 # 1431 # "createEntityIdentifierType": { 1432 # 1433 # "id": "123", 1434 # 1435 # "description": null 1436 # 1437 # } 1438 # 1439 # } 1440 # } 1441 # 1442 # Arguments 1443 # input: Fields required to create an entity identifier type. 1444 ( 1445 : CreateEntityIdentifierType! 1446 ): EntityIdentifierType 1447 1448 # Update an entity identifier type. 1449 # Example: 1450 # Request: 1451 # mutation { 1452 # 1453 # updateEntityIdentifierType(input: { 1454 # 1455 # id: "123", 1456 # 1457 # label: "example", 1458 # 1459 # labelPlural: "example" 1460 # 1461 # description: "new description", 1462 # 1463 # dataType: image}) { 1464 # 1465 # id 1466 # 1467 # description 1468 # 1469 # } 1470 # } 1471 # Response: 1472 # { 1473 # 1474 # "data": { 1475 # 1476 # "updateEntityIdentifierType": null 1477 # 1478 # } 1479 # } 1480 # 1481 # Arguments 1482 # input: Fields required to update an entity identifier type. 1483 ( 1484 : UpdateEntityIdentifierType! 1485 ): EntityIdentifierType 1486 1487 # Create a library type, such as "ad" or "people". 1488 # Entity identifier types are typically created or modified 1489 # only by Veritone engineering. Most libraries 1490 # will use existing entity identifier types. 1491 # Example: 1492 # Request: 1493 # mutation { 1494 # 1495 # createLibraryType(input: { 1496 # 1497 # id: "123", 1498 # 1499 # label: "example", 1500 # 1501 # entityIdentifierTypeIds: ["123"], 1502 # 1503 # entityType: { 1504 # 1505 # name: "example", 1506 # 1507 # namePlural: "example", 1508 # 1509 # schema: { 1510 # 1511 # example: "example" }}}) { 1512 # 1513 # id 1514 # 1515 # label 1516 # 1517 # } 1518 # } 1519 # Response: 1520 # { 1521 # 1522 # "data": { 1523 # 1524 # "createLibraryType": { 1525 # 1526 # "id": "123", 1527 # 1528 # "label": "example" 1529 # 1530 # } 1531 # 1532 # } 1533 # } 1534 # 1535 # Arguments 1536 # input: Fields needed to create a new library type. 1537 (: CreateLibraryType!): LibraryType 1538 1539 # Update a library type. 1540 # Example: 1541 # Request: 1542 # mutation { 1543 # 1544 # updateLibraryType(input: { 1545 # 1546 # id: "123", 1547 # 1548 # label: "example", 1549 # 1550 # entityIdentifierTypeIds: ["123"], 1551 # 1552 # entityType: { 1553 # 1554 # name: "example", 1555 # 1556 # namePlural: "example", 1557 # 1558 # schema: { 1559 # 1560 # example: "new example" }}}) { 1561 # 1562 # id 1563 # 1564 # label 1565 # 1566 # } 1567 # } 1568 # Response: 1569 # { 1570 # 1571 # "data": { 1572 # 1573 # "updateLibraryType": null 1574 # 1575 # } 1576 # } 1577 # 1578 # Arguments 1579 # input: Fields needed to update a library type. 1580 (: UpdateLibraryType!): LibraryType 1581 1582 # Create a new library. 1583 # Once the library is created, the client can add 1584 # entities and entity identifiers. Note that the 1585 # library type determines what types of entity identifiers 1586 # can be used within the library. 1587 # Example: 1588 # Request: 1589 # mutation { 1590 # 1591 # createLibrary(input: { 1592 # 1593 # name: "example" 1594 # 1595 # applicationId: "32babe30-fb42-11e4-89bc-27b69865858a" 1596 # 1597 # organizationId: "35521" 1598 # 1599 # libraryTypeId: "123" 1600 # 1601 # coverImageUrl: 1602 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg" 1603 # 1604 # description: "example"}) { 1605 # 1606 # id 1607 # 1608 # name 1609 # 1610 # } 1611 # } 1612 # Response: 1613 # { 1614 # 1615 # "data": { 1616 # 1617 # "createLibrary": { 1618 # 1619 # "id": "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 1620 # 1621 # "name": "example" 1622 # 1623 # } 1624 # 1625 # } 1626 # } 1627 # 1628 # Arguments 1629 # input: Fields needed to create a new library. 1630 (: CreateLibrary!): Library 1631 1632 # Update an existing library. 1633 # Example: 1634 # Request: 1635 # mutation { 1636 # 1637 # updateLibrary(input: { 1638 # 1639 # id: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 1640 # 1641 # name: "example" 1642 # 1643 # coverImageUrl: 1644 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg" 1645 # 1646 # description: "new description" 1647 # 1648 # libraryTypeId: "123" 1649 # 1650 # version: 2}) { 1651 # 1652 # id 1653 # 1654 # name 1655 # 1656 # description 1657 # 1658 # } 1659 # } 1660 # Response: 1661 # { 1662 # 1663 # "data": { 1664 # 1665 # "updateLibrary": { 1666 # 1667 # "id": "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 1668 # 1669 # "name": "example", 1670 # 1671 # "description": "new description" 1672 # 1673 # } 1674 # 1675 # } 1676 # } 1677 # 1678 # Arguments 1679 # input: Fields needed to update a library 1680 (: UpdateLibrary!): Library 1681 1682 # Delete a library. This mutation will also delete all entities, 1683 # entity identifiers, library engine models, and associated objects. 1684 # Example: 1685 # Request: 1686 # mutation { 1687 # 1688 # deleteLibrary(id:"d232c90f-ae47-4125-b884-0d35fbed7e5f") { 1689 # 1690 # message 1691 # 1692 # } 1693 # } 1694 # Response: 1695 # { 1696 # 1697 # "data": { 1698 # 1699 # "deleteLibrary": { 1700 # 1701 # "message": "d232c90f-ae47-4125-b884-0d35fbed7e5f deleted" 1702 # 1703 # } 1704 # 1705 # } 1706 # } 1707 # 1708 # Arguments 1709 # id: Provide the ID of the library to delete. 1710 (: ID!): DeletePayload 1711 1712 # Publish a new version of a library. 1713 # Increments library version by one and trains compatible engines. 1714 # Example: 1715 # Request: 1716 # mutation { 1717 # 1718 # publishLibrary( 1719 # 1720 # id: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599") { 1721 # 1722 # name 1723 # 1724 # description 1725 # 1726 # version 1727 # 1728 # } 1729 # } 1730 # Response: 1731 # { 1732 # 1733 # "data": { 1734 # 1735 # "publishLibrary": { 1736 # 1737 # "name": "example", 1738 # 1739 # "description": "new description", 1740 # 1741 # "version": 2 1742 # 1743 # } 1744 # 1745 # } 1746 # } 1747 # 1748 # Arguments 1749 # id: ID of the library to publish 1750 (: ID!): Library 1751 1752 # Create a new entity. 1753 # Example: 1754 # Request: 1755 # mutation { 1756 # 1757 # createEntity(input: { 1758 # 1759 # name: "example", 1760 # 1761 # description: "example", 1762 # 1763 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 1764 # 1765 # jsondata: { 1766 # 1767 # example: "new example" }}) { 1768 # 1769 # id 1770 # 1771 # name 1772 # 1773 # } 1774 # } 1775 # Response: 1776 # { 1777 # 1778 # "data": { 1779 # 1780 # "createEntity": { 1781 # 1782 # "id": "85b700fa-f327-4fea-b94b-ed83054170db", 1783 # 1784 # "name": "example" 1785 # 1786 # } 1787 # 1788 # } 1789 # } 1790 # 1791 # Arguments 1792 # input: Fields required to create a new entity. 1793 (: CreateEntity!): Entity 1794 1795 # Update an entity. 1796 # Example: 1797 # Request: 1798 # mutation { 1799 # 1800 # updateEntity(input: { 1801 # 1802 # id: "85b700fa-f327-4fea-b94b-ed83054170db", 1803 # 1804 # name: "example", 1805 # 1806 # description: "example", 1807 # 1808 # jsondata: { 1809 # 1810 # example: "updated example" }}) { 1811 # 1812 # id 1813 # 1814 # name 1815 # 1816 # jsondata 1817 # 1818 # } 1819 # } 1820 # Response: 1821 # { 1822 # 1823 # "data": { 1824 # 1825 # "updateEntity": { 1826 # 1827 # "id": "85b700fa-f327-4fea-b94b-ed83054170db", 1828 # 1829 # "name": "example", 1830 # 1831 # "jsondata": { 1832 # 1833 # "example": "updated example" 1834 # 1835 # } 1836 # 1837 # } 1838 # 1839 # } 1840 # } 1841 # 1842 # Arguments 1843 # input: Fields required to update an entity. 1844 (: UpdateEntity!): Entity 1845 1846 # Delete an entity. This mutation will also delete all associated 1847 # entity identifiers and associated objects. 1848 # Example: 1849 # Request: 1850 # mutation { 1851 # 1852 # deleteEntity(id: "522bc6cf-5b7c-47bd-bd30-10cd77016a49") { 1853 # 1854 # message 1855 # 1856 # } 1857 # } 1858 # Response: 1859 # { 1860 # 1861 # "data": { 1862 # 1863 # "deleteEntity": { 1864 # 1865 # "message": "Entity 522bc6cf-5b7c-47bd-bd30-10cd77016a49 deleted." 1866 # 1867 # } 1868 # 1869 # } 1870 # } 1871 # 1872 # Arguments 1873 # id: Supply the ID of the entity to delete. 1874 (: ID!): DeletePayload 1875 1876 # Create an entity identifier. 1877 # This mutation accepts file uploads. To use this mutation and upload a file, 1878 # send a multipart form POST containing two parameters: `query`, with the 1879 # GraphQL query, and `file` containing the file itself. 1880 # For more information see the documentation at 1881 # https://veritone-developer.atlassian.net/wiki/spaces/DOC/pages/13893791/GraphQL. 1882 # Example: 1883 # Request: 1884 # mutation { 1885 # 1886 # createEntityIdentifier(input: { 1887 # 1888 # entityId: "85b700fa-f327-4fea-b94b-ed83054170db", 1889 # 1890 # identifierTypeId: "123", 1891 # 1892 # title: "example", 1893 # 1894 # isPriority: false, 1895 # 1896 # contentType: "example", 1897 # 1898 # url: 1899 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg"}) 1900 # { 1901 # 1902 # id 1903 # 1904 # isPriority 1905 # 1906 # } 1907 # } 1908 # Result: 1909 # { 1910 # 1911 # "data": { 1912 # 1913 # "createEntityIdentifier": { 1914 # 1915 # "id": "bf67e595-3666-4a0c-9f4b-0ad99a1770fe", 1916 # 1917 # "isPriority": false, 1918 # 1919 # } 1920 # 1921 # } 1922 # } 1923 # 1924 # Arguments 1925 # input: Fields needed to create an entity identifier. 1926 (: CreateEntityIdentifier!): EntityIdentifier 1927 1928 # Updates an entity identifier. 1929 # Example: 1930 # Request: 1931 # mutation { 1932 # 1933 # updateEntityIdentifier(input: { 1934 # 1935 # id: "bf67e595-3666-4a0c-9f4b-0ad99a1770fe", 1936 # 1937 # title: "example", 1938 # 1939 # isPriority: true, 1940 # 1941 # url: 1942 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg"}) 1943 # { 1944 # 1945 # id 1946 # 1947 # isPriority 1948 # 1949 # } 1950 # } 1951 # Response: 1952 # { 1953 # 1954 # "data": { 1955 # 1956 # "updateEntityIdentifier": { 1957 # 1958 # "id": "bf67e595-3666-4a0c-9f4b-0ad99a1770fe", 1959 # 1960 # "isPriority": true 1961 # 1962 # } 1963 # 1964 # } 1965 # } 1966 # 1967 # Arguments 1968 # input: Fields required to update an entity identifier. 1969 (: UpdateEntityIdentifier!): EntityIdentifier 1970 1971 # Delete an entity identifier 1972 # Example: 1973 # Request: 1974 # mutation { 1975 # 1976 # deleteEntityIdentifier(id: "0bda9fa6-9fad-4025-8f03-07cc73321050") { 1977 # 1978 # message 1979 # 1980 # } 1981 # } 1982 # Response: 1983 # { 1984 # 1985 # "data": { 1986 # 1987 # "deleteEntityIdentifier": { 1988 # 1989 # "message": "Entity identifier0bda9fa6-9fad-4025-8f03-07cc73321050 deleted." 1990 # 1991 # } 1992 # 1993 # } 1994 # } 1995 # 1996 # Arguments 1997 # id: Supply the ID of the entity identifier to delete. 1998 (: ID!): DeletePayload 1999 2000 # Create a library engine model. 2001 # Example: 2002 # Request: 2003 # mutation { 2004 # 2005 # createLibraryEngineModel(input: { 2006 # 2007 # engineId: "1", 2008 # 2009 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2010 # 2011 # trainJobId: "123", 2012 # 2013 # dataUrl: 2014 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg"}) 2015 # { 2016 # 2017 # id 2018 # 2019 # engineId 2020 # 2021 # } 2022 # } 2023 # Response: 2024 # { 2025 # 2026 # "data": { 2027 # 2028 # "createLibraryEngineModel": { 2029 # 2030 # "id": "0e9c25f7-d994-4363-af41-c00b37de9a1b", 2031 # 2032 # "engineId": "1" 2033 # 2034 # } 2035 # 2036 # } 2037 # } 2038 # 2039 # Arguments 2040 # input: Fields required to create a library engine model. 2041 ( 2042 : CreateLibraryEngineModel! 2043 ): LibraryEngineModel 2044 2045 # Update a library engine model 2046 # Example: 2047 # Request: 2048 # mutation { 2049 # 2050 # updateLibraryEngineModel(input: { 2051 # 2052 # id: "0e9c25f7-d994-4363-af41-c00b37de9a1b", 2053 # 2054 # trainJobId: "1234"}) { 2055 # 2056 # trainJobId 2057 # 2058 # } 2059 # } 2060 # Response: 2061 # { 2062 # 2063 # "data": { 2064 # 2065 # "updateLibraryEngineModel": { 2066 # 2067 # "trainJobId": "1234" 2068 # 2069 # } 2070 # 2071 # } 2072 # } 2073 # 2074 # Arguments 2075 # input: Fields required to update a library engine model 2076 ( 2077 : UpdateLibraryEngineModel! 2078 ): LibraryEngineModel 2079 2080 # Delete a library engine model 2081 # Example: 2082 # Request: 2083 # mutation { 2084 # 2085 # deleteLibraryEngineModel( 2086 # 2087 # id: "0e9c25f7-d994-4363-af41-c00b37de9a1b") { 2088 # 2089 # id 2090 # 2091 # message 2092 # 2093 # } 2094 # } 2095 # Response: 2096 # { 2097 # 2098 # "data": { 2099 # 2100 # "deleteLibraryEngineModel": { 2101 # 2102 # "id": "0e9c25f7-d994-4363-af41-c00b37de9a1b", 2103 # 2104 # "message": "library engine model 0e9c25f7-d994-4363-af41-c00b37de9a1b deleted." 2105 # 2106 # } 2107 # 2108 # } 2109 # } 2110 # 2111 # Arguments 2112 # id: Supply the ID of the library engine model to delete. 2113 (: ID!): DeletePayload 2114 2115 # Create a library collaborator. 2116 # Example: 2117 # Request: 2118 # mutation { 2119 # 2120 # createLibraryCollaborator(input: { 2121 # 2122 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2123 # 2124 # organizationId: 35521, 2125 # 2126 # permissions: ["job.create"]}) { 2127 # 2128 # organizationId 2129 # 2130 # status 2131 # 2132 # } 2133 # } 2134 # Response: 2135 # { 2136 # 2137 # "data": { 2138 # 2139 # "createLibraryCollaborator": { 2140 # 2141 # "organizationId": "35521", 2142 # 2143 # "status": "active" 2144 # 2145 # } 2146 # 2147 # } 2148 # } 2149 # 2150 # Arguments 2151 # input: Fields required to create a library collaborator. 2152 ( 2153 : CreateLibraryCollaborator! 2154 ): LibraryCollaborator 2155 2156 # Update a library collaborator 2157 # Example: 2158 # Request: 2159 # mutation { 2160 # 2161 # updateLibraryCollaborator(input: { 2162 # 2163 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2164 # 2165 # organizationId: 35521, 2166 # 2167 # permissions: ["job.create", "job.read"]}) { 2168 # 2169 # status 2170 # 2171 # permissions 2172 # 2173 # } 2174 # } 2175 # Response: 2176 # { 2177 # 2178 # "data": { 2179 # 2180 # "updateLibraryCollaborator": { 2181 # 2182 # "status": "active", 2183 # 2184 # "permissions": [ 2185 # 2186 # "job.create" 2187 # 2188 # ] 2189 # 2190 # } 2191 # 2192 # } 2193 # } 2194 # 2195 # Arguments 2196 # input: Fields required to update a library collaborator 2197 ( 2198 : UpdateLibraryCollaborator! 2199 ): LibraryCollaborator 2200 2201 # Delete a library collaborator 2202 # Example: 2203 # Request: 2204 # mutation { 2205 # 2206 # deleteLibraryCollaborator( 2207 # 2208 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2209 # 2210 # organizationId: "35521") { 2211 # 2212 # id 2213 # 2214 # message 2215 # 2216 # } 2217 # } 2218 # Response: 2219 # { 2220 # 2221 # "data": { 2222 # 2223 # "deleteLibraryCollaborator": { 2224 # 2225 # "id": "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599 - 35521", 2226 # 2227 # "message": "library collaborator model libraryId: 2228 # e0a6e5ad-dec8-49a1-ad33-3f1194c2e599, organizationId: 35521 deleted." 2229 # 2230 # } 2231 # 2232 # } 2233 # } 2234 # 2235 # Arguments 2236 # libraryId: Supply the ID of the library collaborator to delete. 2237 # organizationId: Supply the ID of the library collaborator to 2238 # delete. 2239 ( 2240 : ID!, 2241 : ID! 2242 ): DeletePayload 2243 2244 # Create Dataset Library Configuration 2245 # Example 2246 # Request: 2247 # mutation { 2248 # 2249 # createLibraryConfiguration(input: { 2250 # 2251 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2252 # 2253 # engineCategoryId: "c1e5f177-ca10-433a-a155-bb5e4872cf9a", 2254 # 2255 # targetEngineIds: ["1"], 2256 # 2257 # confidence: {}}) { 2258 # 2259 # id 2260 # 2261 # } 2262 # } 2263 # Response: 2264 # { 2265 # 2266 # "data": { 2267 # 2268 # "createLibraryConfiguration": { 2269 # 2270 # "id": "7396e71b-db5a-4c4c-bf6f-4fc66a5a07f7" 2271 # 2272 # } 2273 # 2274 # } 2275 # } 2276 # 2277 # Arguments 2278 # input: Fields required to create library configuration 2279 ( 2280 : CreateLibraryConfiguration! 2281 ): LibraryConfiguration 2282 2283 # Update Dataset Library Configuration 2284 # 2285 # Arguments 2286 # input: Fields required to create library configuration 2287 ( 2288 : UpdateLibraryConfiguration! 2289 ): LibraryConfiguration 2290 2291 # Delete Dataset Library Configuration 2292 # 2293 # Arguments 2294 # id: Supply configuration ID to delete. 2295 (: ID!): DeletePayload 2296 2297 # Add recordings to a dataset library 2298 # Example: 2299 # Request: 2300 # mutation { 2301 # 2302 # addLibraryDataset(input: { 2303 # 2304 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2305 # 2306 # tdoIds: ["1570899328"]}) { 2307 # 2308 # tdoIds 2309 # 2310 # } 2311 # } 2312 # Response: 2313 # { 2314 # 2315 # "data": { 2316 # 2317 # "addLibraryDataset": { 2318 # 2319 # "tdoIds": [ 2320 # 2321 # "1570899328" 2322 # 2323 # ] 2324 # 2325 # } 2326 # 2327 # } 2328 # } 2329 (: AddLibraryDataset!): LibraryDataset 2330 2331 # Remove recordings from a dataset library 2332 # Example: 2333 # Request: 2334 # mutation { 2335 # 2336 # deleteLibraryDataset(input: { 2337 # 2338 # libraryId: "e0a6e5ad-dec8-49a1-ad33-3f1194c2e599", 2339 # 2340 # tdoIds: ["1570899328"]}) { 2341 # 2342 # tdoIds 2343 # 2344 # message 2345 # 2346 # } 2347 # } 2348 # Response: 2349 # { 2350 # 2351 # "data": { 2352 # 2353 # "deleteLibraryDataset": { 2354 # 2355 # "tdoIds": [ 2356 # 2357 # "1570899328" 2358 # 2359 # ], 2360 # 2361 # "message": "[1570899328] are removed from e0a6e5ad-dec8-49a1-ad33-3f1194c2e599" 2362 # 2363 # } 2364 # 2365 # } 2366 # } 2367 (: DeleteLibraryDataset!): DeleteLibraryDatasetPayload 2368 2369 # Apply an application workflow step, such as "submit" or "approve" 2370 # Example: 2371 # Request: 2372 # mutation { 2373 # 2374 # applicationWorkflow(input: { 2375 # 2376 # id: "dcc6a08e-1114-43e9-b74a-2b469a32f437", 2377 # 2378 # action: submit}) { 2379 # 2380 # id 2381 # 2382 # name 2383 # 2384 # } 2385 # } 2386 # Response: 2387 # { 2388 # 2389 # "data": { 2390 # 2391 # "applicationWorkflow": { 2392 # 2393 # "id": "dcc6a08e-1114-43e9-b74a-2b469a32f437", 2394 # 2395 # "name": "appexamplebill2" 2396 # 2397 # } 2398 # 2399 # } 2400 # } 2401 # 2402 # Arguments 2403 # input: Fields required to apply a application workflow step 2404 (: ApplicationWorkflow): Application 2405 2406 # Apply an engine workflow step, such as "submit" or "approve" 2407 # 2408 # Arguments 2409 # input: Fields required to apply a engine workflow step 2410 (: EngineWorkflow): Engine 2411 2412 # Creates a widget associated with a collection 2413 # Example: 2414 # Request: 2415 # mutation { 2416 # 2417 # createWidget(input:{ 2418 # 2419 # collectionId: "242361", 2420 # 2421 # name: "example", 2422 # 2423 # nextButtonColor: "000000"}) { 2424 # 2425 # id 2426 # 2427 # name 2428 # 2429 # } 2430 # } 2431 # Response: 2432 # { 2433 # 2434 # "data": { 2435 # 2436 # "createWidget": { 2437 # 2438 # "id": "fwSwWdRWTm2fdFMoPQDKkg", 2439 # 2440 # "name": "" 2441 # 2442 # } 2443 # 2444 # } 2445 # } 2446 # 2447 # Arguments 2448 # input: Fields needed to create a new widget 2449 (: CreateWidget): Widget 2450 2451 # Updates a widget 2452 # Example: 2453 # Request: 2454 # mutation { 2455 # 2456 # updateWidget(input: { 2457 # 2458 # id: "fwSwWdRWTm2fdFMoPQDKkg", 2459 # 2460 # name: "new example name"}) { 2461 # 2462 # id 2463 # 2464 # name 2465 # 2466 # } 2467 # } 2468 # Response: 2469 # { 2470 # 2471 # "data": { 2472 # 2473 # "updateWidget": { 2474 # 2475 # "id": "fwSwWdRWTm2fdFMoPQDKkg", 2476 # 2477 # "name": "new example name" 2478 # 2479 # } 2480 # 2481 # } 2482 # } 2483 # 2484 # Arguments 2485 # input: Fields needed to update a widget 2486 (: UpdateWidget): Widget 2487 2488 # Create a new user within an organization. 2489 # Example: 2490 # Request: 2491 # mutation { 2492 # 2493 # createUser(input: { 2494 # 2495 # name: "example", 2496 # 2497 # password: "example", 2498 # 2499 # organizationId: "35521"}) { 2500 # 2501 # id 2502 # 2503 # } 2504 # } 2505 # Response: 2506 # { 2507 # 2508 # "data": { 2509 # 2510 # "createUser": { 2511 # 2512 # "id": "267de7e1-efb2-444a-a524-210328b78503" 2513 # 2514 # } 2515 # 2516 # } 2517 # } 2518 # 2519 # Arguments 2520 # input: Fields needed to create a user. 2521 (: CreateUser): User 2522 2523 # Create a new organization. 2524 # 2525 # Arguments 2526 # input: Fields needed to create an organization. Requires 2527 # superadmin 2528 (: CreateOrganization!): Organization 2529 2530 # Update an existing user' 2531 # Example: 2532 # Request: 2533 # mutation { 2534 # 2535 # updateUser(input: { 2536 # 2537 # id: "267de7e1-efb2-444a-a524-210328b78503", 2538 # 2539 # firstName: "example", 2540 # 2541 # lastName: "example"}) { 2542 # 2543 # firstName 2544 # 2545 # lastName 2546 # 2547 # } 2548 # } 2549 # Response: 2550 # { 2551 # 2552 # "data": { 2553 # 2554 # "updateUser": { 2555 # 2556 # "firstName": "example", 2557 # 2558 # "lastName": "example" 2559 # 2560 # } 2561 # 2562 # } 2563 # } 2564 # 2565 # Arguments 2566 # input: Fields needed to update a user 2567 (: UpdateUser): User 2568 2569 # Update specific roles for a user by adding and/or removing individual roles. 2570 # Unlike updateUser which replaces all roles, this mutation allows granular 2571 # changes. 2572 # Only addRoleIds are validated against enabled applications, allowing removal 2573 # of roles from disabled or legacy apps. 2574 # 2575 # Arguments 2576 # input: Fields needed to update user roles 2577 (: UpdateUserRolesInput!): User 2578 2579 # Add an existing user to an organization. 2580 # One of the user identifiers (userId or userName) has to be specified. 2581 # 2582 # Arguments 2583 # userId: UUID of user 2584 # userName: User name to uniquely identify a user 2585 # organizationGuid: UUID of organization 2586 # roleIds: Role Ids. 2587 # priority: Priority of the organization. If not provided, max 2588 # priority plus one will be used. 2589 ( 2590 : ID, 2591 : String, 2592 : ID!, 2593 : [ID], 2594 : Int 2595 ): User 2596 2597 # Remove an existing user for organization. 2598 # One of the user identifiers (userId or userName) has to be specified. 2599 # The operation fails if the organization is the last one to which user belongs. 2600 # 2601 # Arguments 2602 # userId: UUID of user 2603 # userName: User name to uniquely identify a user 2604 # organizationGuid: UUID of organization 2605 ( 2606 : ID, 2607 : String, 2608 : ID! 2609 ): User 2610 2611 # #Switch user to organization 2612 # 2613 # Arguments 2614 # token: User token that should be logout 2615 # userName: The user login name -- typically, email address. 2616 # organizationGuid: GUID of organization. 2617 ( 2618 : String!, 2619 : String!, 2620 : ID! 2621 ): LoginInfo 2622 2623 # Force a user to update password on next login. 2624 # This mutation is used by administrators. 2625 # Example: 2626 # Request: 2627 # mutation { 2628 # 2629 # createPasswordUpdateRequest(input: { 2630 # 2631 # id: "267de7e1-efb2-444a-a524-210328b78503", 2632 # 2633 # skipPasswordResetEmail: true}) { 2634 # 2635 # id 2636 # 2637 # name 2638 # 2639 # } 2640 # } 2641 # Response: 2642 # { 2643 # 2644 # "data": { 2645 # 2646 # "createPasswordUpdateRequest": { 2647 # 2648 # "id": "267de7e1-efb2-444a-a524-210328b78503", 2649 # 2650 # "name": "example" 2651 # 2652 # } 2653 # 2654 # } 2655 # } 2656 # 2657 # Arguments 2658 # input: Fields needed to create a password update request 2659 ( 2660 : CreatePasswordUpdateRequest 2661 ): User 2662 2663 # Create a password reset request. This mutation is used on behalf 2664 # of a user who needs to reset their password. It operates only on 2665 # the currently authenicated user (based on the authentication token provided). 2666 # Example: 2667 # Request: 2668 # mutation { 2669 # 2670 # createPasswordResetRequest(input: { 2671 # 2672 # userName: "example", 2673 # 2674 # skipPasswordResetEmail:true}) { 2675 # 2676 # message 2677 # 2678 # } 2679 # } 2680 # Response: 2681 # { 2682 # 2683 # "data": { 2684 # 2685 # "createPasswordResetRequest": { 2686 # 2687 # "message": "Reset request issued for example. Email will not be sent." 2688 # 2689 # } 2690 # 2691 # } 2692 # } 2693 ( 2694 : CreatePasswordResetRequest 2695 ): CreatePasswordResetRequestPayload 2696 2697 # Update the current authenticated user 2698 # Example: 2699 # Request: 2700 # mutation { 2701 # 2702 # updateCurrentUser(input: { 2703 # 2704 # title: "undefined"}) { 2705 # 2706 # id 2707 # 2708 # } 2709 # } 2710 # Response: 2711 # { 2712 # 2713 # "data": { 2714 # 2715 # "updateCurrentUser": { 2716 # 2717 # "id": "59cb4e74-7c31-4267-b91e-d4600bc08008" 2718 # 2719 # } 2720 # 2721 # } 2722 # } 2723 (: UpdateCurrentUser!): User! 2724 2725 # Get password token info for current user 2726 # Example: 2727 # Request: 2728 # mutation { 2729 # 2730 # getCurrentUserPasswordToken(input: { 2731 # 2732 # password: "Example password"}) { 2733 # 2734 # passwordToken 2735 # 2736 # } 2737 # } 2738 # Response: 2739 # { 2740 # 2741 # "data": { 2742 # 2743 # "getCurrentUserPasswordToken": { 2744 # 2745 # "passwordToken": "e4cb86c7-34a4-4a52-b458-3ebbb2cca9c3" 2746 # 2747 # } 2748 # 2749 # } 2750 # } 2751 ( 2752 : GetCurrentUserPasswordToken! 2753 ): PasswordTokenInfo! 2754 2755 # Change the current authenticated user's password 2756 # 2757 # Arguments 2758 # input: Fields needed to change password 2759 (: ChangePassword!): User 2760 2761 # Delete a user 2762 # Example: 2763 # Request: 2764 # mutation { 2765 # 2766 # deleteUser( 2767 # 2768 # id: "267de7e1-efb2-444a-a524-210328b78503") { 2769 # 2770 # message 2771 # 2772 # } 2773 # } 2774 # Response: 2775 # { 2776 # 2777 # "data": { 2778 # 2779 # "deleteUser": { 2780 # 2781 # "message": null 2782 # 2783 # } 2784 # 2785 # } 2786 # } 2787 # 2788 # Arguments 2789 # id: Supply the ID of the user to delete. 2790 (: ID!): DeletePayload 2791 2792 # Create a structured data registry schema metadata. 2793 # Example: 2794 # Request: 2795 # mutation { 2796 # 2797 # createDataRegistry(input: { 2798 # 2799 # name: "example", 2800 # 2801 # description: "example" 2802 # 2803 # source: "example"}) { 2804 # 2805 # id 2806 # 2807 # organizationId 2808 # 2809 # } 2810 # } 2811 # Response: 2812 # { 2813 # 2814 # "data": { 2815 # 2816 # "createDataRegistry": { 2817 # 2818 # "id": "230f95e4-95c9-47c4-a845-61ca67ad6ba6", 2819 # 2820 # "organizationId": "35521" 2821 # 2822 # } 2823 # 2824 # } 2825 # } 2826 (: CreateDataRegistry!): DataRegistry 2827 2828 # Update a structured data registry schema metadata. 2829 # Example: 2830 # Request: 2831 # mutation { 2832 # 2833 # updateDataRegistry(input: { 2834 # 2835 # id: "230f95e4-95c9-47c4-a845-61ca67ad6ba6" 2836 # 2837 # name: "example" 2838 # 2839 # description: "example" 2840 # 2841 # source: "new source"}) { 2842 # 2843 # id 2844 # 2845 # source 2846 # 2847 # } 2848 # } 2849 # Response: 2850 # { 2851 # 2852 # "data": { 2853 # 2854 # "updateDataRegistry": { 2855 # 2856 # "id": "230f95e4-95c9-47c4-a845-61ca67ad6ba6", 2857 # 2858 # "source": "new source" 2859 # 2860 # } 2861 # 2862 # } 2863 # } 2864 (: UpdateDataRegistry!): DataRegistry 2865 2866 # Create a schema record. 2867 # Example: 2868 # Request: 2869 # mutation { 2870 # 2871 # createSchema(input: { 2872 # 2873 # id: "450f95e4-95c9-47c4-a845-62ca67ad6ea6", 2874 # 2875 # dataRegistryId: "230f95e4-95c9-47c4-a845-61ca67ad6ba6", 2876 # 2877 # status: published, 2878 # 2879 # definition: { 2880 # 2881 # example: "example" 2882 # 2883 # }, 2884 # 2885 # majorVersion: 1, 2886 # 2887 # minorVersion: 2 2888 # 2889 # }) { 2890 # 2891 # id 2892 # 2893 # } 2894 # } 2895 # Response: 2896 # { 2897 # 2898 # "data": { 2899 # 2900 # "createSchema": { 2901 # 2902 # "id": "230f95e4-95c9-47c4-a845-61ca67ad6ba6", 2903 # 2904 # } 2905 # 2906 # } 2907 # } 2908 (: CreateSchema!): Schema 2909 2910 # Update a structured data registry schema. 2911 # Example: 2912 # Request: 2913 # mutation { 2914 # 2915 # upsertSchemaDraft(input: { 2916 # 2917 # dataRegistryId: "230f95e4-95c9-47c4-a845-61ca67ad6ba6", 2918 # 2919 # schema: { 2920 # 2921 # example: "example" 2922 # 2923 # }}) { 2924 # 2925 # id 2926 # 2927 # } 2928 # } 2929 # Response: 2930 # { 2931 # 2932 # "data": { 2933 # 2934 # "upsertSchemaDraft": { 2935 # 2936 # "id": "0bd05e43-ddac-4b1a-9238-f3b177439b91" 2937 # 2938 # } 2939 # 2940 # } 2941 # } 2942 (: UpsertSchemaDraft!): Schema 2943 2944 # Update the state of a schema 2945 # Example: 2946 # Request: 2947 # mutation { 2948 # 2949 # updateSchemaState(input: { 2950 # 2951 # id: "0bd05e43-ddac-4b1a-9238-f3b177439b91", 2952 # 2953 # status: deleted}) { 2954 # 2955 # id 2956 # 2957 # } 2958 # } 2959 # Response: 2960 # { 2961 # 2962 # "data": { 2963 # 2964 # "updateSchemaState": { 2965 # 2966 # "id": "0bd05e43-ddac-4b1a-9238-f3b177439b91" 2967 # 2968 # } 2969 # 2970 # } 2971 # } 2972 (: UpdateSchemaState!): Schema 2973 2974 # Create (ingest) a structured data object 2975 # Example: 2976 # Request: 2977 # mutation { 2978 # 2979 # createStructuredData(input: { 2980 # 2981 # schemaId: "b79b7ff3-0b80-4d7c-ac51-d5f3459d13fa", 2982 # 2983 # data: { 2984 # 2985 # example: "example" 2986 # 2987 # }}) { 2988 # 2989 # id 2990 # 2991 # } 2992 # } 2993 # Response: 2994 # { 2995 # 2996 # "data": { 2997 # 2998 # "createStructuredData": { 2999 # 3000 # "id": "e180f94f-866e-4454-92f9-7ee20d6448fa" 3001 # 3002 # } 3003 # 3004 # } 3005 # } 3006 (: CreateStructuredData!): StructuredData 3007 3008 # Update an existing structured data object 3009 # Example: 3010 # Request: 3011 # mutation { 3012 # 3013 # updateStructuredData(input: { 3014 # 3015 # id: "e180f94f-866e-4454-92f9-7ee20d6448fa", 3016 # 3017 # schemaId: "b79b7ff3-0b80-4d7c-ac51-d5f3459d13fa", 3018 # 3019 # data: { 3020 # 3021 # name: "Updated Name", 3022 # 3023 # value: 42 3024 # 3025 # } 3026 # 3027 # }) { 3028 # 3029 # id 3030 # 3031 # schemaId 3032 # 3033 # data 3034 # 3035 # createdDateTime 3036 # 3037 # modifiedDateTime 3038 # 3039 # } 3040 # } 3041 # Response: 3042 # { 3043 # 3044 # "data": { 3045 # 3046 # "updateStructuredData": { 3047 # 3048 # "id": "e180f94f-866e-4454-92f9-7ee20d6448fa", 3049 # 3050 # "schemaId": "b79b7ff3-0b80-4d7c-ac51-d5f3459d13fa", 3051 # 3052 # "data": { 3053 # 3054 # "name": "Updated Name", 3055 # 3056 # "value": 42 3057 # 3058 # }, 3059 # 3060 # "createdDateTime": "2024-01-15T10:30:00.000Z", 3061 # 3062 # "modifiedDateTime": "2024-01-15T14:25:00.000Z" 3063 # 3064 # } 3065 # 3066 # } 3067 # } 3068 (: UpdateStructuredData!): StructuredData 3069 3070 # Delete a structured data object 3071 # Example: 3072 # Request: 3073 # mutation { 3074 # 3075 # deleteStructuredData(input:{ 3076 # 3077 # id: "e180f94f-866e-4454-92f9-7ee20d6448fa", 3078 # 3079 # schemaId: "b79b7ff3-0b80-4d7c-ac51-d5f3459d13fa"}) { 3080 # 3081 # message 3082 # 3083 # } 3084 # } 3085 # Response: 3086 # { 3087 # 3088 # "data": { 3089 # 3090 # "deleteStructuredData": { 3091 # 3092 # "message": null 3093 # 3094 # } 3095 # 3096 # } 3097 # } 3098 (: DeleteStructuredData!): DeletePayload 3099 3100 # Create (ingest) a structured data object 3101 # Example: 3102 # Request: 3103 # mutation { 3104 # 3105 # createCollection(input: { 3106 # 3107 # name: "example", 3108 # 3109 # folderDescription: "example", 3110 # 3111 # image:"", 3112 # 3113 # parentFolderId: "d551fbd6-7354-4b0e-abfb-654ab8583be2"}) { 3114 # 3115 # id 3116 # 3117 # } 3118 # } 3119 # Response: 3120 # { 3121 # 3122 # "data": { 3123 # 3124 # "createCollection": { 3125 # 3126 # "id": "242361" 3127 # 3128 # } 3129 # 3130 # } 3131 # } 3132 # 3133 # Arguments 3134 # input: Fields required to create new collection 3135 (: CreateCollection): Collection 3136 3137 # Update a collection 3138 # Example: 3139 # Request: 3140 # mutation { 3141 # 3142 # updateCollection(input: { 3143 # 3144 # folderId: "242361" 3145 # 3146 # name: "new name" 3147 # 3148 # folderDescription: "new description"}) { 3149 # 3150 # id 3151 # 3152 # name 3153 # 3154 # } 3155 # } 3156 # Response: 3157 # { 3158 # 3159 # "data": { 3160 # 3161 # "updateCollection": { 3162 # 3163 # "id": "242361", 3164 # 3165 # "name": "new name" 3166 # 3167 # } 3168 # 3169 # } 3170 # } 3171 # 3172 # Arguments 3173 # input: Fields needed to update a collection 3174 (: UpdateCollection): Collection 3175 3176 # Delete Collection 3177 # Example: 3178 # Request: 3179 # mutation { 3180 # 3181 # deleteCollection( 3182 # 3183 # id: "242361") { 3184 # 3185 # message 3186 # 3187 # } 3188 # } 3189 # Response: 3190 # { 3191 # 3192 # "data": { 3193 # 3194 # "deleteCollection": { 3195 # 3196 # "message": "Deleted Successfully" 3197 # 3198 # } 3199 # 3200 # } 3201 # } 3202 # 3203 # Arguments 3204 # id: Supply the ID of the folder or collection to delete 3205 (: ID, : ID): DeletePayload 3206 3207 # Share a collection, allowing other organizations to view the data 3208 # it contains. 3209 # Example: 3210 # Request: 3211 # mutation { 3212 # 3213 # shareCollection(input: { 3214 # 3215 # folderId: "242599", 3216 # 3217 # shareMessage: "example", 3218 # 3219 # recipients: [] }) { 3220 # 3221 # id 3222 # 3223 # } 3224 # } 3225 # Response: 3226 # { 3227 # 3228 # "data": { 3229 # 3230 # "shareCollection": { 3231 # 3232 # "id": "FhQrlAwfRMaTy0blR_eHRw" 3233 # 3234 # } 3235 # 3236 # } 3237 # } 3238 # 3239 # Arguments 3240 # input: Fields needed to share a collection 3241 (: ShareCollection): Share 3242 3243 # Arguments 3244 # shareId: ID of the shared collection to update 3245 # mentionIds: List of mentionIds to add or remove 3246 # type: Indicates whether or not the mentions are to be added or 3247 # deleted 3248 ( 3249 : String!, 3250 : [ID!], 3251 : SharedCollectionUpdateType! 3252 ): Share 3253 3254 ( 3255 : UpdateSharedCollectionHistory 3256 ): SharedCollectionHistory 3257 3258 # Share a mention from a collection 3259 # 3260 # Arguments 3261 # input: Fields needed to share a mention 3262 ( 3263 : ShareMentionFromCollection 3264 ): Share 3265 3266 # Share mention 3267 (: ShareMention): Share 3268 3269 # Share mentions in bulk 3270 (: ShareMentionInBulk): [Share] 3271 3272 # Add a mention to a collection 3273 # 3274 # Arguments 3275 # input: Fields needed to add a mention to a collection 3276 (: CollectionMentionInput): CollectionMention 3277 3278 # Arguments 3279 # input: Fields needed to add mentions to a collection 3280 ( 3281 : CreateCollectionMentions 3282 ): [CollectionMention!]! 3283 3284 # Update a mention in a collection 3285 # 3286 # Arguments 3287 # input: Fields needed to add mentions to a collection 3288 ( 3289 : UpdateCollectionMention! 3290 ): CollectionMention! 3291 3292 # Remove a mention from a collection 3293 # 3294 # Arguments 3295 # input: Fields needed to delete a mention from a collection 3296 (: CollectionMentionInput): CollectionMention 3297 3298 # Create a new folder 3299 # Example: 3300 # Request: 3301 # mutation { 3302 # 3303 # createFolder(input: { 3304 # 3305 # name: "example", 3306 # 3307 # description: "example", 3308 # 3309 # parentId: "2ac28573-917a-4c4b-be91-a0ac64cbc982", 3310 # 3311 # rootFolderType:watchlist}) { 3312 # 3313 # id 3314 # 3315 # name 3316 # 3317 # } 3318 # } 3319 # Response: 3320 # { 3321 # 3322 # "data": { 3323 # 3324 # "createFolder": { 3325 # 3326 # "id": "d551fbd6-7354-4b0e-abfb-654ab8583be2", 3327 # 3328 # "name": "example" 3329 # 3330 # } 3331 # 3332 # } 3333 # } 3334 # 3335 # Arguments 3336 # input: Fields needed to create a new folder. 3337 (: CreateFolder): Folder 3338 3339 # Create a new PlatformVersion 3340 # Example: 3341 # Request: 3342 # mutation { 3343 # 3344 # addPlatformVersion(input: { 3345 # 3346 # version: "1.2.0" 3347 # 3348 # manifestUrl: "https://s3.example.com/aiware/versions/1.2.0/manifest.yaml" 3349 # 3350 # changeLogUrl: "https://s3.example.com/aiware/versions/1.2.0/changelog.txt" 3351 # 3352 # highlightsUrl: "https://s3.example.com/aiware/versions/1.2.0/highlights.txt" 3353 # 3354 # }) { 3355 # 3356 # id 3357 # 3358 # version 3359 # 3360 # manifestUrl 3361 # 3362 # changeLogUrl 3363 # 3364 # highlightsUrl 3365 # 3366 # createdAt, 3367 # 3368 # createdBy 3369 # 3370 # } 3371 # } 3372 # Response: 3373 # { 3374 # 3375 # "data": { 3376 # 3377 # "addPlatformVersion": { 3378 # 3379 # "id": "6c6e0f59-5fb5-4179-9f5b-c5f5933d6f9a", 3380 # 3381 # "manifestUrl": "https://s3.example.com/aiware/versions/1.2.0/manifest.yaml" 3382 # 3383 # "changeLogUrl": "https://s3.example.com/aiware/versions/1.2.0/changelog.txt" 3384 # 3385 # "highlightsUrl": "https://s3.example.com/aiware/versions/1.2.0/highlights.txt" 3386 # 3387 # "createAt": "2023-05-10", 3388 # 3389 # "createdBy": "1c2e7692-8206-4118-bd38-bb61aa3fb248" 3390 # 3391 # } 3392 # 3393 # } 3394 # } 3395 # 3396 # Arguments 3397 # input: Fields needed to create a new aiWARE platform version. 3398 (: PlatformVersionInput): PlatformVersion 3399 3400 # Set the current PlatformVersion 3401 # Example: 3402 # Request: 3403 # mutation { 3404 # 3405 # setCurrentPlatformVersion(input: { 3406 # 3407 # version: "1.2.0" 3408 # 3409 # }) { 3410 # 3411 # id 3412 # 3413 # version 3414 # 3415 # manifestUrl 3416 # 3417 # changeLogUrl 3418 # 3419 # highlightsUrl 3420 # 3421 # createdAt, 3422 # 3423 # createdBy, 3424 # 3425 # installedAt, 3426 # 3427 # installedBy 3428 # 3429 # } 3430 # } 3431 # Response: 3432 # { 3433 # 3434 # "data": { 3435 # 3436 # "setCurrentPlatformVersion": { 3437 # 3438 # "id": "6c6e0f59-5fb5-4179-9f5b-c5f5933d6f9a", 3439 # 3440 # "version": "1.2.0", 3441 # 3442 # "manifestUrl": "https://s3.example.com/aiware/versions/1.2.0/manifest.yaml" 3443 # 3444 # "changeLogUrl": "https://s3.example.com/aiware/versions/1.2.0/changelog.txt" 3445 # 3446 # "highlightsUrl": "https://s3.example.com/aiware/versions/1.2.0/highlights.txt" 3447 # 3448 # "createAt": "2023-05-10", 3449 # 3450 # "createdBy": "1c2e7692-8206-4118-bd38-bb61aa3fb248", 3451 # 3452 # "installedAt": "2023-05-15", 3453 # 3454 # "installedBy": "1c2e7692-8206-4118-bd38-bb61aa3fb248" 3455 # 3456 # } 3457 # 3458 # } 3459 # } 3460 # 3461 # Arguments 3462 # version: The version field is required to set the current 3463 # aiWARE platform version 3464 (: String!): PlatformVersion 3465 3466 # Set the platform properties. 3467 # Example: 3468 # Request: 3469 # mutation { 3470 # 3471 # setPlatformProperties( 3472 # 3473 # properties: { 3474 # 3475 # Environment: "US West", 3476 # 3477 # ClusterSize: "small" } 3478 # 3479 # ) 3480 # } 3481 # Response: 3482 # { 3483 # 3484 # "data": { 3485 # 3486 # "setPlatformProperties": { 3487 # 3488 # "properties": { 3489 # 3490 # "Environment": "US West", 3491 # 3492 # "ClusterSize": "small" 3493 # 3494 # } 3495 # 3496 # } 3497 # 3498 # } 3499 # } 3500 # 3501 # Arguments 3502 # properties: Properties is JSON object that contains the 3503 # properties of the platform that need to be added/ updated. 3504 # So all the other properties in the JSON will be kept 3505 (: JSONData!): JSONData 3506 3507 # Update an existing folder 3508 # Example: 3509 # Request: 3510 # mutation { 3511 # 3512 # updateFolder(input: { 3513 # 3514 # id: "d551fbd6-7354-4b0e-abfb-654ab8583be2", 3515 # 3516 # name: "new name"}) { 3517 # 3518 # name 3519 # 3520 # } 3521 # } 3522 # Response: 3523 # { 3524 # 3525 # "data": { 3526 # 3527 # "updateFolder": { 3528 # 3529 # "name": "new name" 3530 # 3531 # } 3532 # 3533 # } 3534 # } 3535 # 3536 # Arguments 3537 # input: Fields needed to update a folder. 3538 (: UpdateFolder): Folder 3539 3540 # Move a folder from one parent folder to another. 3541 # Example: 3542 # Request: 3543 # mutation { 3544 # 3545 # moveFolder(input: { 3546 # 3547 # folderId: "68a5833a-f573-41fe-840a-adb5f6888e2d", 3548 # 3549 # fromFolderId: "3104f61f-4bd1-4175-9fe6-27436d591c54", 3550 # 3551 # toFolderId: "ad7839a7-d088-4202-9db1-5ed4992f915d" 3552 # 3553 # }) { 3554 # 3555 # parentFolderId 3556 # 3557 # } 3558 # } 3559 # Response: 3560 # { 3561 # 3562 # "data": { 3563 # 3564 # "moveFolder": { 3565 # 3566 # "parentFolderId": "ad7839a7-d088-4202-9db1-5ed4992f915d", 3567 # 3568 # } 3569 # 3570 # } 3571 # } 3572 # 3573 # Arguments 3574 # input: Fields needed to move a folder 3575 (: MoveFolder): Folder 3576 3577 # Move bulk folders to another. 3578 # Example: 3579 # Request: 3580 # mutation { 3581 # 3582 # moveFolders(input: { 3583 # 3584 # folderIds: ["0c4c2765-1817-40a7-bd6d-bf6362a384ba", 3585 # "183f64e7-d519-4948-99d9-977657cce0c8"] 3586 # 3587 # newParentFolderId: "22d2c53a-d33e-47d8-a77e-f64f5c3db7c8" 3588 # 3589 # rootFolderType: cms 3590 # 3591 # }) { 3592 # 3593 # id 3594 # 3595 # name 3596 # 3597 # } 3598 # } 3599 # Response: 3600 # { 3601 # 3602 # "data": { 3603 # 3604 # "moveFolders": { 3605 # 3606 # "organizationId": "7682", 3607 # 3608 # "newParentFolderId: "22d2c53a-d33e-47d8-a77e-f64f5c3db7c8", 3609 # 3610 # "validFolderIds": [ 3611 # 3612 # "0c4c2765-1817-40a7-bd6d-bf6362a384ba", 3613 # 3614 # "183f64e7-d519-4948-99d9-977657cce0c8" 3615 # 3616 # ] 3617 # 3618 # "invalidFolderIds": [], 3619 # 3620 # "message": "Successfully move all input folders to the parent folder." 3621 # 3622 # } 3623 # 3624 # } 3625 # } 3626 # 3627 # Arguments 3628 # input: Fields needed to move a folder 3629 (: MoveFolders): MoveFoldersPayload 3630 3631 # Delete a folder 3632 # Example: 3633 # Request: 3634 # mutation { 3635 # 3636 # deleteFolder(input: { 3637 # 3638 # id:"d551fbd6-7354-4b0e-abfb-654ab8583be2", 3639 # 3640 # orderIndex: 1}) { 3641 # 3642 # message 3643 # 3644 # } 3645 # } 3646 # Response: 3647 # { 3648 # 3649 # "data": { 3650 # 3651 # "deleteFolder": { 3652 # 3653 # "message": null 3654 # 3655 # } 3656 # 3657 # } 3658 # } 3659 # 3660 # Arguments 3661 # input: Fields needed to delete a folder 3662 (: DeleteFolder): DeletePayload 3663 3664 # Create a mention comment 3665 # 3666 # Arguments 3667 # input: Fields needed to create a mention comment 3668 (: CreateMentionComment): MentionComment 3669 3670 # Update a mention comment 3671 # 3672 # Arguments 3673 # input: Fields needed to update a mention comment 3674 (: UpdateMentionComment): MentionComment 3675 3676 # Delete a mention comment 3677 # 3678 # Arguments 3679 # input: Fields needed to delete a mention comment 3680 (: DeleteMentionComment): DeletePayload 3681 3682 # Create a mention rating 3683 # 3684 # Arguments 3685 # input: Fields needed to create a mention rating 3686 (: CreateMentionRating): MentionRating 3687 3688 # Update a mention rating 3689 # 3690 # Arguments 3691 # input: Fields needed to update a mention rating 3692 (: UpdateMentionRating): MentionRating 3693 3694 # Delete a mention rating 3695 # 3696 # Arguments 3697 # input: Fields needed to delete a mention rating. 3698 (: DeleteMentionRating): DeletePayload 3699 3700 # Login as a user. This mutation does not require an existing authentication 3701 # context (via `Authorization` header with bearer token, cookie, etc.). 3702 # Instead, the client supplies credentials to this mutation, which then 3703 # authenticates the user and sets up the authentication context. 3704 # The returned tokens can be used to authenticate future requests. 3705 # Errors: wrong credentials or an unknown user return `not_found`. A person who 3706 # registered through an organization's request-to-join page, used the password 3707 # they registered with, but has not yet followed the emailed verification link 3708 # gets `not_allowed` with `data.errorCode = "emailNotVerified"`. Clients should 3709 # branch on `data.errorCode`, since `not_allowed` is also used for other 3710 # refusals. 3711 # Example: 3712 # Request: 3713 # mutation { 3714 # 3715 # userLogin(input: { 3716 # 3717 # userName: "example1", 3718 # 3719 # password: "example1"}) { 3720 # 3721 # apiToken 3722 # 3723 # lastLoggedIn 3724 # 3725 # } 3726 # } 3727 # Response: 3728 # { 3729 # 3730 # "data": { 3731 # 3732 # "userLogin": { 3733 # 3734 # "apiToken": null, 3735 # 3736 # "lastLoggedIn": "2021-06-15T02:04:52.000Z", 3737 # 3738 # "token": "a0bbdb23-058c-4b44-901f-aa3efc056a3a" 3739 # 3740 # } 3741 # 3742 # } 3743 # } 3744 # 3745 # Arguments 3746 # input: Fields needed to log in 3747 (: UserLogin): LoginInfo 3748 3749 # Logout user and invalidate user token 3750 # Example: 3751 # Request: 3752 # mutation { 3753 # 3754 # userLogout( 3755 # 3756 # token: "a5610058-260d-46ac-aa3e-ee529c4feaab") 3757 # } 3758 # Response: 3759 # { 3760 # 3761 # "data": { 3762 # 3763 # "userLogout": null 3764 # 3765 # } 3766 # } 3767 # 3768 # Arguments 3769 # token: User token that should be invalidated 3770 # sessionExpired: Internal system flag 3771 (: String!, : Boolean): Boolean 3772 3773 # Refreshes the session user from database to reflect the latest changes. It does 3774 # not extend session timeout.\ 3775 # Example: 3776 # Request: 3777 # mutation { 3778 # 3779 # refreshToken( 3780 # 3781 # token: "32abe146-4e07-4f5e-8e1e-f7f2e0142cf7") { 3782 # 3783 # hasPassword 3784 # 3785 # user{id} 3786 # 3787 # } 3788 # } 3789 # Response: 3790 # { 3791 # 3792 # "data": { 3793 # 3794 # "refreshToken": { 3795 # 3796 # "hasPassword": true, 3797 # 3798 # "user": { 3799 # 3800 # "id": "d8304ba1-0d4c-4268-a82c-8c62fd455066" 3801 # 3802 # } 3803 # 3804 # } 3805 # 3806 # } 3807 # } 3808 (: String!): LoginInfo 3809 3810 # Refresh a user token, returning a fresh token so that the client 3811 # can continue to authenticate to the API.\ 3812 # Example: 3813 # Request: 3814 # mutation { 3815 # 3816 # extendToken( 3817 # 3818 # token: "32abe146-4e07-4f5e-8e1e-f7f2e0142cf7") { 3819 # 3820 # hasPassword 3821 # 3822 # user{id} 3823 # 3824 # } 3825 # } 3826 # Response: 3827 # { 3828 # 3829 # "data": { 3830 # 3831 # "extendToken": { 3832 # 3833 # "hasPassword": true, 3834 # 3835 # "user": { 3836 # 3837 # "id": "d8304ba1-0d4c-4268-a82c-8c62fd455066" 3838 # 3839 # } 3840 # 3841 # } 3842 # 3843 # } 3844 # } 3845 (: String!): LoginInfo 3846 3847 # Validate a user token. This mutation is used by services to determine 3848 # if the token provided by a given client is valid. 3849 # Example: 3850 # Request: 3851 # mutation { 3852 # 3853 # validateToken( 3854 # 3855 # token: "32abe146-4e07-4f5e-8e1e-f7f2e0142cf7") { 3856 # 3857 # hasPassword 3858 # 3859 # user{id} 3860 # 3861 # } 3862 # } 3863 # Response: 3864 # { 3865 # 3866 # "data": { 3867 # 3868 # "validateToken": { 3869 # 3870 # "hasPassword": true, 3871 # 3872 # "user": { 3873 # 3874 # "id": "d8304ba1-0d4c-4268-a82c-8c62fd455066" 3875 # 3876 # } 3877 # 3878 # } 3879 # 3880 # } 3881 # } 3882 (: String!): LoginInfo 3883 3884 # Create a mention object 3885 (: CreateMention!): Mention 3886 3887 # Update a mention object 3888 (: UpdateMention!): Mention 3889 3890 # Update a set of mentions 3891 (: UpdateMentions!): [Mention] 3892 3893 # Create root folder for an organization 3894 # Example: 3895 # Request: 3896 # mutation { 3897 # 3898 # createRootFolders { 3899 # 3900 # id 3901 # 3902 # rootFolderTypeId 3903 # 3904 # } 3905 # } 3906 # Response: 3907 # { 3908 # 3909 # "data": { 3910 # 3911 # "createRootFolders": [ 3912 # 3913 # { 3914 # 3915 # "id": "2ac28573-917a-4c4b-be91-a0ac64cbc982", 3916 # 3917 # "rootFolderTypeId": 1 3918 # 3919 # }, 3920 # 3921 # { 3922 # 3923 # "id": "d3e27eb3-7d4a-47ab-af64-bf1529390f4e", 3924 # 3925 # "rootFolderTypeId": 1 3926 # 3927 # } 3928 # 3929 # ] 3930 # 3931 # } 3932 # } 3933 # 3934 # Arguments 3935 # rootFolderType: The type of root folder to create 3936 (: RootFolderType): [Folder] 3937 3938 # Apply bulk updates to watchlists. 3939 # This mutation is currently available only to Veritone operations. 3940 # 3941 # Arguments 3942 # filter: A filter indicating which watchlists should be updated. 3943 # At least one filter condition must be provided. 3944 # Only watchlists for the user's organization will be updated. 3945 # input: Fields used to update a watchlist. 3946 ( 3947 : BulkUpdateWatchlistFilter!, 3948 : BulkUpdateWatchlist 3949 ): WatchlistList 3950 3951 # File a TemporalDataObject in a folder. A given TemporalDataObject can 3952 # be filed in any number of folders, or none. Filing causes the TemporalDataObject 3953 # and its assets to be visible within the folder. 3954 # Example: 3955 # Request: 3956 # mutation { 3957 # 3958 # fileTemporalDataObject(input:{ 3959 # 3960 # tdoId: "1580388995", 3961 # 3962 # folderId: "9d639f1b-a0d4-47b0-8149-3568f048f320"}) { 3963 # 3964 # id 3965 # 3966 # folders{ 3967 # 3968 # id 3969 # 3970 # } 3971 # 3972 # } 3973 # } 3974 # Response: 3975 # { 3976 # 3977 # "data": { 3978 # 3979 # "fileTemporalDataObject": { 3980 # 3981 # "id": "1580388995", 3982 # 3983 # "folders": [ 3984 # 3985 # { 3986 # 3987 # "id": "9d639f1b-a0d4-47b0-8149-3568f048f320" 3988 # 3989 # } 3990 # 3991 # ] 3992 # 3993 # } 3994 # 3995 # } 3996 # } 3997 # 3998 # Arguments 3999 # input: The fields needed to file a TemporalDataObject in a 4000 # folder 4001 (: FileTemporalDataObject!): TemporalDataObject 4002 4003 # Unfile a TemporalDataObject from a folder. This causes the TemporalDataObject 4004 # and its assets to disappear from the folder, but does not otherwise affect 4005 # either the TDO or the folder and does not change access controls. 4006 # Example: 4007 # Request: 4008 # mutation { 4009 # 4010 # unfileTemporalDataObject(input: { 4011 # 4012 # tdoId: "1580388995", 4013 # 4014 # folderId: "9d639f1b-a0d4-47b0-8149-3568f048f320"}) { 4015 # 4016 # id 4017 # 4018 # description 4019 # 4020 # } 4021 # } 4022 # Response: 4023 # { 4024 # 4025 # "data": { 4026 # 4027 # "unfileTemporalDataObject": { 4028 # 4029 # "id": "1580388995", 4030 # 4031 # "description": null 4032 # 4033 # } 4034 # 4035 # } 4036 # } 4037 # 4038 # Arguments 4039 # input: The fields needed to file a TemporalDataObject in a 4040 # folder 4041 ( 4042 : UnfileTemporalDataObject! 4043 ): TemporalDataObject 4044 4045 # Moves a TemporalDataObject from one parent folder to another. 4046 # Any other folders the TemporalDataObject is filed in are unaffected. 4047 # Example: 4048 # Request: 4049 # mutation { 4050 # 4051 # moveTemporalDataObject(input: { 4052 # 4053 # tdoId: "1580388995", 4054 # 4055 # oldFolderId: "9d639f1b-a0d4-47b0-8149-3568f048f320", 4056 # 4057 # newFolderId: "2ac28573-917a-4c4b-be91-a0ac64cbc982"}) { 4058 # 4059 # id 4060 # 4061 # folders{ 4062 # 4063 # folderPath{id} 4064 # 4065 # } 4066 # 4067 # } 4068 # } 4069 # Response: 4070 # { 4071 # 4072 # "data": { 4073 # 4074 # "moveTemporalDataObject": { 4075 # 4076 # "id": "1580388995", 4077 # 4078 # "folders": [ 4079 # 4080 # { 4081 # 4082 # "folderPath": [ 4083 # 4084 # { 4085 # 4086 # "id": "2ac28573-917a-4c4b-be91-a0ac64cbc982" 4087 # 4088 # } 4089 # 4090 # ] 4091 # 4092 # } 4093 # 4094 # ] 4095 # 4096 # } 4097 # 4098 # } 4099 # } 4100 # 4101 # Arguments 4102 # input: Fields need to move a TemporalDataObject 4103 (: MoveTemporalDataObject!): TemporalDataObject 4104 4105 # Upload and store an engine result. The result will be stored as an 4106 # asset associated with the target TemporalDataObject and the 4107 # task will be updated accordingly. 4108 # Use a multipart form POST to all this mutation. 4109 # 4110 # Arguments 4111 # input: Fields needed to upload and store an engine result 4112 (: UploadEngineResult!): Asset 4113 4114 # Create a watchlist 4115 # Example: 4116 # Request: 4117 # mutation { 4118 # 4119 # createWatchlist(input: { 4120 # 4121 # stopDateTime: 1623851655, 4122 # 4123 # name: "example", 4124 # 4125 # searchIndex: mine, 4126 # 4127 # parentFolderId: "9d639f1b-a0d4-47b0-8149-3568f048f320", 4128 # 4129 # cognitiveSearches: [], 4130 # 4131 # subscriptions: [], 4132 # 4133 # details: { 4134 # 4135 # example: "example"}}) { 4136 # 4137 # id 4138 # 4139 # } 4140 # } 4141 # Response: 4142 # { 4143 # 4144 # "data": { 4145 # 4146 # "createWatchlist": { 4147 # 4148 # "id": "325783" 4149 # 4150 # } 4151 # 4152 # } 4153 # } 4154 (: CreateWatchlist!): Watchlist 4155 4156 (: BulkCreateWatchlist!): WatchlistList 4157 4158 # Update a watchlist 4159 # Example: 4160 # Request: 4161 # mutation { 4162 # 4163 # updateWatchlist(input: { 4164 # 4165 # id: "325783" 4166 # 4167 # name: "new name" 4168 # 4169 # details: { 4170 # 4171 # example: "new details"}}) { 4172 # 4173 # id 4174 # 4175 # name 4176 # 4177 # } 4178 # } 4179 # Response: 4180 # 4181 # { 4182 # 4183 # "data": { 4184 # 4185 # "updateWatchlist": { 4186 # 4187 # "id": "325783", 4188 # 4189 # "name": "new name" 4190 # 4191 # } 4192 # 4193 # } 4194 # } 4195 (: UpdateWatchlist!): Watchlist 4196 4197 # Delete a watchlist 4198 # Example: 4199 # Request: 4200 # mutation { 4201 # 4202 # deleteWatchlist( 4203 # 4204 # id:"325783") { 4205 # 4206 # message 4207 # 4208 # } 4209 # } 4210 # Response: 4211 # { 4212 # 4213 # "data": { 4214 # 4215 # "deleteWatchlist": { 4216 # 4217 # "message": "Watchlist deleted along with 0 subscriptions, 0 cognitive search 4218 # profiles, 0 mention comments, and 0 mention ratings." 4219 # 4220 # } 4221 # 4222 # } 4223 # } 4224 (: ID!): DeletePayload 4225 4226 (: UpdateCognitiveSearch): CognitiveSearch 4227 4228 (: CreateCognitiveSearch): CognitiveSearch 4229 4230 (: ID!): DeletePayload 4231 4232 (: FileWatchlist!): Watchlist 4233 4234 # Unfile a watchlist from a folder 4235 # Example: 4236 # Request: 4237 # mutation { 4238 # 4239 # unfileWatchlist(input: { 4240 # 4241 # watchlistId:"325786", 4242 # 4243 # folderId: "9d639f1b-a0d4-47b0-8149-3568f048f320"}) { 4244 # 4245 # id 4246 # 4247 # folders{ 4248 # 4249 # folderPath{ 4250 # 4251 # id 4252 # 4253 # } 4254 # 4255 # } 4256 # 4257 # } 4258 # } 4259 # Response: 4260 # { 4261 # 4262 # "data": { 4263 # 4264 # "unfileWatchlist": { 4265 # 4266 # "id": "325786", 4267 # 4268 # "folders": [] 4269 # 4270 # } 4271 # 4272 # } 4273 # } 4274 (: UnfileWatchlist!): Watchlist 4275 4276 # Share a folder with other organizations 4277 # Requires superadmin 4278 (: ShareFolderInput): Folder 4279 4280 # Create a TDO and an asset with a single call 4281 # Example: 4282 # Request: 4283 # mutation { 4284 # 4285 # createTDOWithAsset(input: { 4286 # 4287 # startDateTime: 1623841655, 4288 # 4289 # stopDateTime: 1623851655, 4290 # 4291 # contentType: "video/mp4", 4292 # 4293 # assetType: "media", 4294 # 4295 # addToIndex: false, 4296 # 4297 # uri: "https://s3.amazonaws.com/hold4fisher/s3Test.mp4"}) { 4298 # 4299 # id 4300 # 4301 # status 4302 # 4303 # assets { 4304 # 4305 # records { 4306 # 4307 # id 4308 # 4309 # assetType 4310 # 4311 # contentType 4312 # 4313 # signedUri 4314 # 4315 # } 4316 # 4317 # } 4318 # 4319 # } 4320 # } 4321 # Response: 4322 # { 4323 # 4324 # "data": { 4325 # 4326 # "createTDOWithAsset": { 4327 # 4328 # "id": "1580507556", 4329 # 4330 # "status": "recorded", 4331 # 4332 # "assets": { 4333 # 4334 # "records": [ 4335 # 4336 # { 4337 # 4338 # "id": "1580507556_DQ2nU8cTDh", 4339 # 4340 # "assetType": "media", 4341 # 4342 # "contentType": "video/mp4", 4343 # 4344 # "signedUri": "https://s3.amazonaws.com/hold4fisher/s3Test.mp4" 4345 # 4346 # } 4347 # 4348 # ] 4349 # 4350 # } 4351 # 4352 # } 4353 # 4354 # } 4355 # } 4356 # 4357 # Arguments 4358 # input: Input fields necessary to create the TDO and asset 4359 (: CreateTDOWithAsset): TemporalDataObject 4360 4361 # Create a subscription 4362 # Example: 4363 # Request: 4364 # mutation { 4365 # 4366 # createSubscription(input: { 4367 # 4368 # targetId: "325791", 4369 # 4370 # contact: { 4371 # 4372 # emailAddress: "example email"}, 4373 # 4374 # scheduledDay: Friday}) { 4375 # 4376 # id 4377 # 4378 # } 4379 # } 4380 # Response: 4381 # { 4382 # 4383 # "data": { 4384 # 4385 # "createSubscription": { 4386 # 4387 # "id": "274939" 4388 # 4389 # } 4390 # 4391 # } 4392 # } 4393 (: CreateSubscription!): Subscription 4394 4395 # Update a subscription 4396 # Example: 4397 # Request: 4398 # mutation { 4399 # 4400 # updateSubscription(input: { 4401 # 4402 # id: "274939"}) { 4403 # 4404 # id 4405 # 4406 # } 4407 # } 4408 # Response: 4409 # mutation { 4410 # 4411 # updateSubscription(input: { 4412 # 4413 # id: "274939"}) { 4414 # 4415 # id 4416 # 4417 # } 4418 # } 4419 (: UpdateSubscription!): Subscription 4420 4421 # Delete a subscription 4422 # Example: 4423 # Request: 4424 # mutation { 4425 # 4426 # deleteSubscription( 4427 # 4428 # id: "274939") { 4429 # 4430 # message 4431 # 4432 # } 4433 # } 4434 # Response: 4435 # mutation { 4436 # 4437 # deleteSubscription( 4438 # 4439 # id: "274939") { 4440 # 4441 # message 4442 # 4443 # } 4444 # } 4445 (: ID!): DeletePayload 4446 4447 # Create trigger for events or types. 4448 # Example: 4449 # Request: 4450 # mutation { 4451 # 4452 # createTriggers(input: { 4453 # 4454 # events: "*", 4455 # 4456 # targets: { 4457 # 4458 # name: Email, 4459 # 4460 # params: { 4461 # 4462 # address: "example@veritone.com"}}}) { 4463 # 4464 # id 4465 # 4466 # } 4467 # } 4468 # Response: 4469 # { 4470 # 4471 # "data": { 4472 # 4473 # "createTriggers": [ 4474 # 4475 # { 4476 # 4477 # "id": "2936" 4478 # 4479 # } 4480 # 4481 # ] 4482 # 4483 # } 4484 # } 4485 (: CreateTriggers!): [Trigger] 4486 4487 # Delete a registed trigger by ID. 4488 # Example: 4489 # Request: 4490 # mutation { 4491 # 4492 # deleteTrigger( 4493 # 4494 # id: "2936") { 4495 # 4496 # message 4497 # 4498 # } 4499 # } 4500 # Response: 4501 # { 4502 # 4503 # "data": { 4504 # 4505 # "deleteTrigger": { 4506 # 4507 # "message": "Trigger 2936 has been removed from organization 35521" 4508 # 4509 # } 4510 # 4511 # } 4512 # } 4513 (: ID!): DeletePayload 4514 4515 # Validates if an engine output conforms to the engine output guidelines 4516 # Example: 4517 # Request: 4518 # mutation { 4519 # 4520 # validateEngineOutput(input: 4521 # 4522 # { 4523 # 4524 # schemaId: "https://docs.veritone.com/schemas/vtn-standard/master.json", 4525 # 4526 # validationContracts: [ 4527 # 4528 # "structured-data" 4529 # 4530 # ], 4531 # 4532 # series: [ 4533 # 4534 # { 4535 # 4536 # startTimeMs: 0, 4537 # 4538 # stopTimeMs: 10000, 4539 # 4540 # structuredData: { 4541 # 4542 # exampleschemaid: { 4543 # 4544 # key: "value", 4545 # 4546 # any: "data you'd like", 4547 # 4548 # as_long: "as it conforms to the schema" 4549 # 4550 # } 4551 # 4552 # } 4553 # 4554 # } 4555 # 4556 # ] 4557 # 4558 # } 4559 # 4560 # ) 4561 # } 4562 # Response: 4563 # { 4564 # 4565 # "data": { 4566 # 4567 # "validateEngineOutput": true 4568 # 4569 # } 4570 # } 4571 (: JSONData!): Boolean! 4572 4573 # JWT tokens with a more limited scoped token to specific 4574 # resources to the recording, task, and job 4575 # and also has no organization association. 4576 # Note: Restricted administrative permissions (e.g. superadmin) are explicitly 4577 # filtered and cannot be requested. 4578 # Example: 4579 # Request: 4580 # mutation { 4581 # 4582 # getEngineJWT(input: { 4583 # 4584 # engineId: "1", 4585 # 4586 # resource:{ 4587 # 4588 # tdoId: "1580701928" 4589 # 4590 # }}) { 4591 # 4592 # token 4593 # 4594 # } 4595 # } 4596 # 4597 # Response: 4598 # { 4599 # 4600 # "data": { 4601 # 4602 # "getEngineJWT": { 4603 # 4604 # "token": "eyJh...Tw_z3BKRA" 4605 # 4606 # } 4607 # 4608 # } 4609 # } 4610 (: getEngineJWT!): JWTTokenInfo! 4611 4612 # Retrieve a JWT token scoped to a source. This token 4613 # will provide enough rights to read/write ingest slugs 4614 # that are owned by the source. 4615 # Note: Restricted administrative permissions (e.g. superadmin) are explicitly 4616 # filtered and cannot be included. 4617 # Example: 4618 # Request: 4619 # mutation { 4620 # 4621 # getSourceJWT(sourceId: "123") { 4622 # 4623 # token 4624 # 4625 # } 4626 # } 4627 # 4628 # Response: 4629 # { 4630 # 4631 # "data": { 4632 # 4633 # "getSourceJWT": { 4634 # 4635 # "token": "eyJh...Tw_z3BKRA" 4636 # 4637 # } 4638 # 4639 # } 4640 # } 4641 (: ID!, : JWTAccess): SourceJWTTokenInfo! 4642 4643 # Verify JWT token 4644 # Example: 4645 # Request: 4646 # mutation { 4647 # 4648 # verifyJWT(jwtToken:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjb250ZW 4649 # 4650 # 50QXBwbGljYXRpb25JZCI6IjQ5YTRjYmJjLTVlODMtNGM0Mi1iOWEzLWJlNmVjMDczMmY 4651 # 4652 # wOSIsImNvbnRlbnRPcmdhbml6YXRpb25JZCI6MzU1MjEsImVuZ2luZUlkIjoiMSIsInVzZ 4653 # 4654 # XJJZCI6IjU5Y2I0ZTc0LTdjMzEtNDI2Ny1iOTFlLWQ0NjAwYmMwODAwOCIsInNjb3BlIjpb 4655 # 4656 # eyJhY3Rpb25zIjpbImFzc2V0OnVyaSIsImFzc2V0OmFsbCIsInJlY29yZGluZzpyZWFkIiw 4657 # 4658 # icmVjb3JkaW5nOnVwZGF0ZSJdLCJyZXNvdXJjZXMiOnsicmVjb3JkaW5nSWRzIjpbIjE1OD 4659 # 4660 # A3MDE5MjgiXX19LHsiYWN0aW9ucyI6WyJ0YXNrOnVwZGF0ZSJdLCJyZXNvdXJjZXMiOnsia 4661 # 4662 # m9iSWRzIjpbXSwidGFza0lkcyI6W10sInNvdXJjZUlkcyI6W119fV0sImlhdCI6MTYyNDAz 4663 # 4664 # NjEyMiwiZXhwIjoxNjI0NjQwOTIyLCJzdWIiOiJlbmdpbmUtcnVuIiwianRpIjoiMTViYjI 4665 # 4666 # 3YzAtNGI1Yy00NjNhLWFkMTgtOWFkNDI0ODFiMTMzIn0.R7qYdPkA1wjJUiTdb1ryvTnZASPN9FEuGATw_z3BKRA") 4667 # { 4668 # 4669 # payload 4670 # 4671 # } 4672 # } 4673 # Response: 4674 # { 4675 # 4676 # "data": { 4677 # 4678 # "verifyJWT": { 4679 # 4680 # "payload": { 4681 # 4682 # "contentApplicationId": "49a4cbbc-5e83-4c42-b9a3-be6ec0732f09", 4683 # 4684 # "contentOrganizationId": 35521, 4685 # 4686 # "engineId": "1", 4687 # 4688 # "userId": "59cb4e74-7c31-4267-b91e-d4600bc08008", 4689 # 4690 # "scope": [ 4691 # 4692 # { 4693 # 4694 # "actions": [ 4695 # 4696 # "asset:uri", 4697 # 4698 # "asset:all", 4699 # 4700 # "recording:read", 4701 # 4702 # "recording:update" 4703 # 4704 # ], 4705 # 4706 # "resources": { 4707 # 4708 # "recordingIds": [ 4709 # 4710 # "1580701928" 4711 # 4712 # ] 4713 # 4714 # } 4715 # 4716 # }, 4717 # 4718 # { 4719 # 4720 # "actions": [ 4721 # 4722 # "task:update" 4723 # 4724 # ], 4725 # 4726 # "resources": { 4727 # 4728 # "jobIds": [], 4729 # 4730 # "taskIds": [], 4731 # 4732 # "sourceIds": [] 4733 # 4734 # } 4735 # 4736 # } 4737 # 4738 # ], 4739 # 4740 # "iat": 1624036122, 4741 # 4742 # "exp": 1624640922, 4743 # 4744 # "sub": "engine-run", 4745 # 4746 # "jti": "15bb27c0-4b5c-463a-ad18-9ad42481b133" 4747 # 4748 # } 4749 # 4750 # } 4751 # 4752 # } 4753 # } 4754 (: String!): VerifyJWTPayload 4755 4756 # Create a new Saved Search 4757 # Example: 4758 # Request: 4759 # mutation { 4760 # 4761 # createSavedSearch(input: { 4762 # 4763 # name: "example", 4764 # 4765 # csp: { 4766 # 4767 # example: "example"}}) { 4768 # 4769 # id 4770 # 4771 # } 4772 # } 4773 # Response: 4774 # { 4775 # 4776 # "data": { 4777 # 4778 # "createSavedSearch": { 4779 # 4780 # "id": "a29f2255-e509-4454-89ec-e425390ca4ca" 4781 # 4782 # } 4783 # 4784 # } 4785 # } 4786 (: CreateSavedSearch!): SavedSearch! 4787 4788 # Delete a saved search 4789 # Example: 4790 # Request: 4791 # mutation { 4792 # 4793 # deleteSavedSearch( 4794 # 4795 # id:"a29f2255-e509-4454-89ec-e425390ca4ca") { 4796 # 4797 # message 4798 # 4799 # } 4800 # } 4801 # Response: 4802 # { 4803 # 4804 # "data": { 4805 # 4806 # "deleteSavedSearch": { 4807 # 4808 # "message": null 4809 # 4810 # } 4811 # 4812 # } 4813 # } 4814 (: ID!): DeletePayload! 4815 4816 # Mark existing saved search profile as deleted 4817 # Create new saved search profile 4818 # Example: 4819 # Request: 4820 # mutation { 4821 # 4822 # replaceSavedSearch(input: { 4823 # 4824 # id: "3d4f04c5-7855-4b9c-ba65-9bd6c2932a7e", 4825 # 4826 # name: "example", 4827 # 4828 # csp: { 4829 # 4830 # example: "new csp"}}) { 4831 # 4832 # id 4833 # 4834 # } 4835 # } 4836 # Response: 4837 # mutation { 4838 # 4839 # replaceSavedSearch(input: { 4840 # 4841 # id: "3d4f04c5-7855-4b9c-ba65-9bd6c2932a7e", 4842 # 4843 # name: "example", 4844 # 4845 # csp: { 4846 # 4847 # example: "new csp"}}) { 4848 # 4849 # id 4850 # 4851 # } 4852 # } 4853 (: ReplaceSavedSearch!): SavedSearch! 4854 4855 # Send a basic email. Mutation returns true for a success message. 4856 # The email from field will be automatically set the default platform email 4857 # address 4858 # Example: 4859 # Request: 4860 # mutation { 4861 # 4862 # sendEmail(input: { 4863 # 4864 # to: "example@veritone.com" 4865 # 4866 # subject: "example" 4867 # 4868 # message: "email body" 4869 # 4870 # replyTo: "example@veritone.com" 4871 # 4872 # }) 4873 # } 4874 # Response: 4875 # { 4876 # 4877 # "data": { 4878 # 4879 # "sendEmail": true 4880 # 4881 # } 4882 # } 4883 (: SendEmail!): Boolean! 4884 4885 # Create new content template into a folder 4886 ( 4887 : CreateFolderContentTemplate! 4888 ): FolderContentTemplate! 4889 4890 # Update existing content template by folderContentTemplateId 4891 ( 4892 : UpdateFolderContentTemplate! 4893 ): FolderContentTemplate! 4894 4895 # Delete existing folder content template by folderContentTemplateId 4896 # 4897 # Arguments 4898 # id: Folder Content Template Id 4899 (: ID!): DeletePayload! 4900 4901 ( 4902 : CreateFolderContentTempate! 4903 ): FolderContentTemplate! @deprecated( reason: "Misspelling" ) 4904 4905 ( 4906 : UpdateFolderContentTempate! 4907 ): FolderContentTemplate! @deprecated( reason: "Misspelling" ) 4908 4909 # Arguments 4910 # id: Folder Content Template Id 4911 ( 4912 : ID! 4913 ): DeletePayload! @deprecated( reason: "Misspelling" ) 4914 4915 # Create an export request. The requested TDO data, possibly including 4916 # TDO media and engine results, will be exported offline. 4917 # Example: 4918 # Request: 4919 # mutation { 4920 # 4921 # createExportRequest(input: { 4922 # 4923 # tdoData: { 4924 # 4925 # tdoId: "1580388995", 4926 # 4927 # }}) { 4928 # 4929 # id 4930 # 4931 # } 4932 # } 4933 # Response: 4934 # { 4935 # 4936 # "data": { 4937 # 4938 # "createExportRequest": { 4939 # 4940 # "id": "938b2d64-6df1-486b-b6ea-29d33dee49ad" 4941 # 4942 # } 4943 # 4944 # } 4945 # } 4946 # 4947 # Arguments 4948 # input: Input data required to create the export request 4949 (: CreateExportRequest!): ExportRequest! 4950 4951 # Update an export request 4952 # Example: 4953 # Request: 4954 # mutation { 4955 # 4956 # updateExportRequest(input: { 4957 # 4958 # id: "938b2d64-6df1-486b-b6ea-29d33dee49ad", 4959 # 4960 # status: complete}) { 4961 # 4962 # id 4963 # 4964 # status 4965 # 4966 # } 4967 # } 4968 # Response: 4969 # { 4970 # 4971 # "data": { 4972 # 4973 # "updateExportRequest": { 4974 # 4975 # "id": "938b2d64-6df1-486b-b6ea-29d33dee49ad", 4976 # 4977 # "status": "complete" 4978 # 4979 # } 4980 # 4981 # } 4982 # } 4983 # 4984 # Arguments 4985 # input: Input data required to update an export request 4986 (: UpdateExportRequest!): ExportRequest! 4987 4988 # Create Mention in bulk. The input should be an array of createMentions 4989 (: CreateMentions!): MentionList 4990 4991 # Create Media Share. Returning the url of the share 4992 (: CreateMediaShare!): CreatedMediaShare! 4993 4994 # Create a new event 4995 # 4996 # Example: 4997 # 4998 # Request: 4999 # 5000 # mutation { 5001 # 5002 # createEvent(input: { 5003 # 5004 # eventName: "example", 5005 # 5006 # eventType: "example", 5007 # 5008 # application: "" 5009 # 5010 # description: "example"}) { 5011 # 5012 # id 5013 # 5014 # } 5015 # } 5016 # Response: 5017 # { 5018 # 5019 # "data": { 5020 # 5021 # "createEvent": { 5022 # 5023 # "id": "55fc7c51-1521-4043-902f-f0f3a357da6d" 5024 # 5025 # } 5026 # 5027 # } 5028 # } 5029 (: CreateEvent!): Event! 5030 5031 # Update an event 5032 # Example: 5033 # Request: 5034 # mutation { 5035 # 5036 # updateEvent(input: { 5037 # 5038 # id: "55fc7c51-1521-4043-902f-f0f3a357da6d", 5039 # 5040 # description: "new example description"}) { 5041 # 5042 # id 5043 # 5044 # description 5045 # 5046 # } 5047 # } 5048 # Response: 5049 # { 5050 # 5051 # "data": { 5052 # 5053 # "updateEvent": { 5054 # 5055 # "id": "55fc7c51-1521-4043-902f-f0f3a357da6d", 5056 # 5057 # "description": "new example description" 5058 # 5059 # } 5060 # 5061 # } 5062 # } 5063 (: UpdateEvent!): Event! 5064 5065 # Subscribe to an event 5066 # Example: 5067 # Request: 5068 # mutation { 5069 # 5070 # subscribeEvent(input: { 5071 # 5072 # eventName: "example", 5073 # 5074 # eventType: "example", 5075 # 5076 # application: "", 5077 # 5078 # delivery: { 5079 # 5080 # name: CreateJob, 5081 # 5082 # params: { 5083 # 5084 # targetId: "1580701928" 5085 # 5086 # engineId: "1" 5087 # 5088 # } 5089 # 5090 # } 5091 # 5092 # }) 5093 # } 5094 # Response: 5095 # { 5096 # 5097 # "data": { 5098 # 5099 # "subscribeEvent": "a0d04eeb-c32d-4852-9273-bb0acda970b9" 5100 # 5101 # } 5102 # } 5103 (: SubscribeEvent!): ID! 5104 5105 # Unsubscribe to an event 5106 # Example: 5107 # Request: 5108 # mutation { 5109 # 5110 # unsubscribeEvent( 5111 # 5112 # id: "a0d04eeb-c32d-4852-9273-bb0acda970b9") { 5113 # 5114 # id 5115 # 5116 # message 5117 # 5118 # } 5119 # } 5120 # Response: 5121 # { 5122 # 5123 # "data": { 5124 # 5125 # "unsubscribeEvent": { 5126 # 5127 # "id": "a0d04eeb-c32d-4852-9273-bb0acda970b9", 5128 # 5129 # "message": "Unsubscribed from event" 5130 # 5131 # } 5132 # 5133 # } 5134 # } 5135 (: ID!): UnsubscribeEvent! 5136 5137 # Emit an event 5138 # Example: 5139 # Request: 5140 # mutation { 5141 # 5142 # emitEvent(input: { 5143 # 5144 # eventName: "example", 5145 # 5146 # eventType: "example", 5147 # 5148 # application: "", 5149 # 5150 # payload: ""}) { 5151 # 5152 # id 5153 # 5154 # } 5155 # } 5156 # Response: 5157 # { 5158 # 5159 # "data": { 5160 # 5161 # "emitEvent": { 5162 # 5163 # "id": "0952fe68-5652-4804-857d-26e21ef3d7e8" 5164 # 5165 # } 5166 # 5167 # } 5168 # } 5169 (: EmitEvent!): EmitEventResponse! 5170 5171 # Create a new event trigger template 5172 # Example: 5173 # Request: 5174 # mutation { 5175 # 5176 # createEventActionTemplate(input: { 5177 # 5178 # name: "example" 5179 # 5180 # inputType: event 5181 # 5182 # inputValidation: { 5183 # 5184 # example: "example" 5185 # 5186 # } 5187 # 5188 # inputAttributes: { 5189 # 5190 # example: "example" 5191 # 5192 # } 5193 # 5194 # actionType: job 5195 # 5196 # actionValidation: { 5197 # 5198 # example: "example" 5199 # 5200 # } 5201 # 5202 # actionDestination: "1" 5203 # 5204 # actionAttributes: { 5205 # 5206 # example: "example" 5207 # 5208 # }}) { 5209 # 5210 # id 5211 # 5212 # } 5213 # } 5214 # Response: 5215 # { 5216 # 5217 # "data": { 5218 # 5219 # "createEventActionTemplate": { 5220 # 5221 # "id": "d02522d7-ef5f-448f-981a-d2cfc7603d92" 5222 # 5223 # } 5224 # 5225 # } 5226 # } 5227 ( 5228 : CreateEventActionTemplate! 5229 ): EventActionTemplate! 5230 5231 # Update an event trigger template 5232 # Example: 5233 # Request: 5234 # mutation { 5235 # 5236 # updateEventActionTemplate(input: { 5237 # 5238 # id: "d02522d7-ef5f-448f-981a-d2cfc7603d92", 5239 # 5240 # name: "example", 5241 # 5242 # actionValidation: { 5243 # 5244 # example: "new validation"}}) { 5245 # 5246 # id 5247 # 5248 # actionValidation 5249 # 5250 # } 5251 # } 5252 # Response: 5253 # { 5254 # 5255 # "data": { 5256 # 5257 # "updateEventActionTemplate": { 5258 # 5259 # "id": "d02522d7-ef5f-448f-981a-d2cfc7603d92", 5260 # 5261 # "actionValidation": { 5262 # 5263 # "example": "new validation" 5264 # 5265 # } 5266 # 5267 # } 5268 # 5269 # } 5270 # } 5271 ( 5272 : UpdateEventActionTemplate! 5273 ): EventActionTemplate! 5274 5275 # Create a new event custom rule 5276 # Example: 5277 # Request: 5278 # mutation { 5279 # 5280 # createEventCustomRule(input: { 5281 # 5282 # name: "example" 5283 # 5284 # eventType: "example" 5285 # 5286 # eventName: "example" 5287 # 5288 # description: "example description" 5289 # 5290 # actions:[] 5291 # 5292 # params: { 5293 # 5294 # example: "example" 5295 # 5296 # }}) { 5297 # 5298 # id 5299 # 5300 # } 5301 # } 5302 # Response: 5303 # { 5304 # 5305 # "data": { 5306 # 5307 # "createEventCustomRule": { 5308 # 5309 # "id": "0a0d3ec8-b4fb-48fc-bd39-c47a22b2173b" 5310 # 5311 # } 5312 # 5313 # } 5314 # } 5315 (: CreateEventCustomRule!): EventCustomRule! 5316 5317 # Update an event custom rule 5318 # Example: 5319 # Request: 5320 # 5321 # mutation { 5322 # 5323 # updateEventCustomRule(input: { 5324 # 5325 # id: "0a0d3ec8-b4fb-48fc-bd39-c47a22b2173b", 5326 # 5327 # name: "example", 5328 # 5329 # status: inactive, 5330 # 5331 # description: "new description"}) { 5332 # 5333 # id 5334 # 5335 # description 5336 # 5337 # } 5338 # } 5339 # Response: 5340 # { 5341 # 5342 # "data": { 5343 # 5344 # "updateEventCustomRule": { 5345 # 5346 # "id": "0a0d3ec8-b4fb-48fc-bd39-c47a22b2173b", 5347 # 5348 # "description": "new description" 5349 # 5350 # } 5351 # 5352 # } 5353 # } 5354 (: UpdateEventCustomRule!): EventCustomRule! 5355 5356 # Delete an event custom rule 5357 # Example: 5358 # Request: 5359 # mutation { 5360 # 5361 # deleteEventCustomRule( 5362 # 5363 # id: "0a0d3ec8-b4fb-48fc-bd39-c47a22b2173b") { 5364 # 5365 # message 5366 # 5367 # } 5368 # } 5369 # Response: 5370 # { 5371 # 5372 # "data": { 5373 # 5374 # "deleteEventCustomRule": { 5375 # 5376 # "message": "Deleted event custom rule" 5377 # 5378 # } 5379 # 5380 # } 5381 # } 5382 (: ID!): DeletePayload! 5383 5384 # Create a processTemplate in CMS 5385 # Example: 5386 # Request: 5387 # mutation { 5388 # 5389 # createProcessTemplate(input: { 5390 # 5391 # name: "example", 5392 # 5393 # taskList: { 5394 # 5395 # example: "task" 5396 # 5397 # }}) { 5398 # 5399 # id 5400 # 5401 # } 5402 # } 5403 # Response: 5404 # { 5405 # 5406 # "data": { 5407 # 5408 # "createProcessTemplate": { 5409 # 5410 # "id": "746" 5411 # 5412 # } 5413 # 5414 # } 5415 # } 5416 (: CreateProcessTemplate!): ProcessTemplate! 5417 5418 # Update a processTemplate by ID in CMS 5419 # Example: 5420 # Request: 5421 # mutation { 5422 # 5423 # updateProcessTemplate(input: { 5424 # 5425 # id: "746", 5426 # 5427 # taskList: { 5428 # 5429 # example: "task", 5430 # 5431 # new: "new task" 5432 # 5433 # }}) { 5434 # 5435 # id 5436 # 5437 # } 5438 # } 5439 # Response: 5440 # { 5441 # 5442 # "data": { 5443 # 5444 # "updateProcessTemplate": { 5445 # 5446 # "id": "746" 5447 # 5448 # } 5449 # 5450 # } 5451 # } 5452 (: UpdateProcessTemplate!): ProcessTemplate! 5453 5454 # Delete a processTemplate by ID in CMS 5455 # Example: 5456 # Request: 5457 # mutation { 5458 # 5459 # deleteProcessTemplate( 5460 # 5461 # id: "746") { 5462 # 5463 # message 5464 # 5465 # } 5466 # } 5467 # Response: 5468 # { 5469 # 5470 # "data": { 5471 # 5472 # "deleteProcessTemplate": { 5473 # 5474 # "message": null 5475 # 5476 # } 5477 # 5478 # } 5479 # } 5480 (: ID!): DeletePayload! 5481 5482 # Create a mention export request. The requested mentionFilters including 5483 # The mention export file csv will be exported offline. 5484 # Example: 5485 # Request: 5486 # mutation { 5487 # 5488 # createMentionExportRequest(input: { 5489 # 5490 # mentionFilters: { 5491 # 5492 # watchlistIds: ["123"]}}) { 5493 # 5494 # id 5495 # 5496 # } 5497 # } 5498 # Response: 5499 # { 5500 # 5501 # "data": { 5502 # 5503 # "createMentionExportRequest": { 5504 # 5505 # "id": "400c98c2-faa8-44e4-b5d8-daf2fb43445e" 5506 # 5507 # } 5508 # 5509 # } 5510 # } 5511 # 5512 # Arguments 5513 # input: Input data required to create the export request 5514 ( 5515 : CreateMentionExportRequest! 5516 ): ExportRequest! 5517 5518 # Update status or assetURI of a mentionExportRequest 5519 # Often use when the file export was completed or downloaded 5520 # Example: 5521 # Request: 5522 # mutation { 5523 # 5524 # updateMentionExportRequest(input: { 5525 # 5526 # id: "400c98c2-faa8-44e4-b5d8-daf2fb43445e" 5527 # 5528 # status: incomplete, 5529 # 5530 # assetUri: "www.veritone.com", 5531 # 5532 # sqlQueries:""}) { 5533 # 5534 # id 5535 # 5536 # } 5537 # } 5538 # Response: 5539 # { 5540 # 5541 # "data": { 5542 # 5543 # "updateMentionExportRequest": { 5544 # 5545 # "id": "400c98c2-faa8-44e4-b5d8-daf2fb43445e" 5546 # 5547 # } 5548 # 5549 # } 5550 # } 5551 ( 5552 : UpdateMentionExportRequest! 5553 ): ExportRequest! 5554 5555 # Create a creative 5556 # Example: 5557 # Request: 5558 # mutation { 5559 # 5560 # createCreative(input: { 5561 # 5562 # name: "example" 5563 # 5564 # keywords: "example keywords" 5565 # 5566 # brandId: null 5567 # 5568 # advertiserId: null}) { 5569 # 5570 # id 5571 # 5572 # } 5573 # } 5574 # Response: 5575 # { 5576 # 5577 # "data": { 5578 # 5579 # "createCreative": { 5580 # 5581 # "id": "25208" 5582 # 5583 # } 5584 # 5585 # } 5586 # } 5587 (: CreateCreative!): Creative! 5588 5589 # Update a creative 5590 # Example: 5591 # Request: 5592 # mutation { 5593 # 5594 # updateCreative(input: { 5595 # 5596 # id: "25208", 5597 # 5598 # name: "example", 5599 # 5600 # keywords: "new keywords", 5601 # 5602 # brandId: null, 5603 # 5604 # advertiserId: null}) { 5605 # 5606 # id 5607 # 5608 # } 5609 # } 5610 # Response: 5611 # { 5612 # 5613 # "data": { 5614 # 5615 # "updateCreative": { 5616 # 5617 # "id": "25208" 5618 # 5619 # } 5620 # 5621 # } 5622 # } 5623 (: UpdateCreative!): Creative! 5624 5625 # Delete a creative 5626 # Example: 5627 # Request: 5628 # mutation { 5629 # 5630 # deleteCreative( 5631 # 5632 # id: "25208") { 5633 # 5634 # message 5635 # 5636 # } 5637 # } 5638 # Response: 5639 # { 5640 # 5641 # "data": { 5642 # 5643 # "deleteCreative": { 5644 # 5645 # "message": null 5646 # 5647 # } 5648 # 5649 # } 5650 # } 5651 (: ID!): DeletePayload! 5652 5653 # Emit a system-level emit. This mutation is used only by 5654 # Veritone platform components. 5655 # 5656 # Arguments 5657 # input: Data required to create the event 5658 (: EmitSystemEvent!): SystemEventInfo! 5659 5660 # Creates an immutable audit log event with the given payload 5661 # Example: 5662 # Request: 5663 # mutation { 5664 # 5665 # emitAuditEvent(input: { 5666 # 5667 # application: "" 5668 # 5669 # payload: { 5670 # 5671 # example: "example" 5672 # 5673 # }}) { 5674 # 5675 # id 5676 # 5677 # } 5678 # } 5679 # Response: 5680 # { 5681 # 5682 # "data": { 5683 # 5684 # "emitAuditEvent": { 5685 # 5686 # "id": "fdc7b3a3-ab23-4866-a330-c0ad910cd64f" 5687 # 5688 # } 5689 # 5690 # } 5691 # } 5692 (: EmitAuditEvent!): AuditEvent! 5693 5694 # Create a context menu extension 5695 # Example: 5696 # Request: 5697 # 5698 # mutation { 5699 # 5700 # createContextMenuExtension(input: { 5701 # 5702 # id: "80354999-d633-4595-9578-d82f59a5134f" 5703 # 5704 # label: "example" 5705 # 5706 # url: "www.veritone.com" 5707 # 5708 # type: tdo}) { 5709 # 5710 # id 5711 # 5712 # } 5713 # } 5714 # Response: 5715 # { 5716 # 5717 # "data": { 5718 # 5719 # "createContextMenuExtension": { 5720 # 5721 # "id": "cdf19d46-4d89-4b5b-a6bf-ae12c17f2746" 5722 # 5723 # } 5724 # 5725 # } 5726 # } 5727 ( 5728 : CreateContextMenuExtension! 5729 ): ContextMenuExtension! 5730 5731 # Update a context menu extension 5732 # Example: 5733 # Request: 5734 # 5735 # mutation { 5736 # 5737 # updateContextMenuExtension(input: { 5738 # 5739 # id: "cdf19d46-4d89-4b5b-a6bf-ae12c17f2746", 5740 # 5741 # label: "new label", 5742 # 5743 # url: "www.veritone.com"}) { 5744 # 5745 # label 5746 # 5747 # } 5748 # } 5749 # Response: 5750 # { 5751 # 5752 # "data": { 5753 # 5754 # "updateContextMenuExtension": { 5755 # 5756 # "label": "new label" 5757 # 5758 # } 5759 # 5760 # } 5761 # } 5762 ( 5763 : UpdateContextMenuExtension! 5764 ): ContextMenuExtension! 5765 5766 # Delete a context menu extension 5767 # 5768 # Example: 5769 # 5770 # Request: 5771 # 5772 # mutation { 5773 # 5774 # deleteContextMenuExtension(input: { 5775 # 5776 # id: "cdf19d46-4d89-4b5b-a6bf-ae12c17f2746"}) { 5777 # 5778 # message 5779 # 5780 # } 5781 # } 5782 # Response: 5783 # { 5784 # 5785 # "data": { 5786 # 5787 # "deleteContextMenuExtension": { 5788 # 5789 # "message": null 5790 # 5791 # } 5792 # 5793 # } 5794 # } 5795 ( 5796 : DeleteContextMenuExtension! 5797 ): DeletePayload! 5798 5799 # Add or update an organization integration config by 5800 # organization id and integration id. Requires superadmin. 5801 ( 5802 : SetOrganizationIntegrationConfig! 5803 ): IntegrationConfig! 5804 5805 # Delete an integration config. Requires superadmin. 5806 ( 5807 : DeleteOrganizationIntegrationConfig! 5808 ): DeleteIntegrationConfigPayload! 5809 5810 # Create customized Login Configuration for the Instance 5811 ( 5812 : CreateInstanceLoginConfiguration! 5813 ): LoginConfiguration! 5814 5815 # Update customized Login Configuration for the Instance by Slug. 5816 # 5817 # ___Requires superadmin.___ 5818 # 5819 # Arguments 5820 # querySlug: The slug corresponding to the login configuration to 5821 # be updated. 5822 ( 5823 : String!, 5824 : SetLoginConfiguration! 5825 ): LoginConfiguration! 5826 5827 # Delete the login configuration for the organization. 5828 # 5829 # Arguments 5830 # organizationId: Optional field for the Organization ID for 5831 # which the login configuration is to be deleted. 5832 # Deleting login configuration for an organization that is different from the 5833 # caller's organization 5834 # is only allowed for superadmin. 5835 # 5836 # Defaults to caller's Organization ID. 5837 (: ID): DeletePayload! 5838 5839 # Delete an instance-level login configuration by slug. 5840 # 5841 # Arguments 5842 # slug: The slug corresponding to the instance-level login 5843 # configuration to be deleted. 5844 ( 5845 : String! 5846 ): DeletePayload! 5847 5848 # Mutation to create a new registration configuration. Seeded domainSettings 5849 # entries with 5850 # sendInviteEmail true request invitations for existing aiWARE users 5851 # asynchronously after the 5852 # configuration is committed (see OrgDomainSettingsInput.sendInviteEmail); a 5853 # seeded entry asking 5854 # for an invite the instance does not allow (by default, a domain) is refused. 5855 ( 5856 : CreateRegistrationConfigurationInput! 5857 ): RegistrationConfiguration! 5858 5859 # Mutation to update an existing registration configuration for an organization. 5860 ( 5861 : ID!, 5862 : UpdateRegistrationConfiguration! 5863 ): RegistrationConfiguration! 5864 5865 # Mutation to delete an existing registration configuration for an organization. 5866 (: ID!): DeletePayload! 5867 5868 # Add one access-list entry to an existing registration configuration. The value 5869 # is validated in 5870 # every enforcement mode, must be unique within the configuration, and the entry 5871 # must grant at 5872 # least one application role or an auth group. Available to an organization that 5873 # reads the new 5874 # access-list model. With sendInviteEmail true, the invitations to existing aiWARE 5875 # users are 5876 # requested asynchronously after the entry is committed (see 5877 # CreateRegistrationAccessEntryInput); 5878 # an entry asking for an invite the instance does not allow (by default, a domain) 5879 # is refused. 5880 ( 5881 : CreateRegistrationAccessEntryInput! 5882 ): RegistrationAccessEntry! 5883 5884 # Change an access-list entry in place, by its stable id — the value included. The 5885 # entry keeps its 5886 # creator and creation time; any change updates its last modifier and modification 5887 # time. The 5888 # reserved Default Access row is not addressable here. 5889 ( 5890 : ID!, 5891 : UpdateRegistrationAccessEntryInput! 5892 ): RegistrationAccessEntry! 5893 5894 # Remove one access-list entry. Forward-looking only: users who already registered 5895 # under the 5896 # entry keep their access, and outstanding invitations are not affected. The 5897 # reserved Default 5898 # Access row is not addressable here. 5899 (: ID!): DeletePayload! 5900 5901 # Load an access list in bulk: every submitted row is validated first, under the 5902 # same rules as 5903 # createRegistrationAccessEntry, and then all writes happen in one transaction. If 5904 # any row is 5905 # invalid the whole import is rejected with a report naming the offending rows by 5906 # position, and 5907 # if any write fails everything is rolled back, so the access list is either fully 5908 # updated or 5909 # exactly as it was. 5910 # 5911 # override: false extends and updates — a row matching an existing entry 5912 # (case-insensitively, by 5913 # value) replaces that entry's fields in place, a row matching nothing is 5914 # inserted, and entries 5915 # absent from the request are left untouched. override: true replaces — every 5916 # normal entry of the 5917 # configuration is deleted, then the rows are inserted. Default Access is never 5918 # imported, updated 5919 # or deleted by either mode; it is managed through the registration configuration. 5920 # 5921 # This is also the documented route for loading a customer's legacy DMH list. Role 5922 # mapping from 5923 # legacy roles to aiWARE application roles is done by whoever prepares the file; 5924 # the platform 5925 # checks only that the referenced roles and auth group exist, not that they are 5926 # the right ones, 5927 # so a mis-mapped row grants the wrong access to everyone it covers. 5928 # sendInviteEmail defaults to 5929 # false, so a legacy load sends no invitations unless its rows ask for them; a row 5930 # asking for an 5931 # invite the instance does not allow (by default, a domain) is reported as 5932 # invalid. 5933 # 5934 # Available to an organization that reads the new access-list model. 5935 ( 5936 : ImportRegistrationAccessEntriesInput! 5937 ): RegistrationAccessEntryImportResult! 5938 5939 # Update the status of a user 5940 # Example: 5941 # Request: 5942 # mutation { 5943 # 5944 # updateUserStatus(input: { 5945 # 5946 # id: "9728eeef-4ccc-423c-8c98-ffa37313a98d", 5947 # 5948 # status: deleted}) { 5949 # 5950 # status 5951 # 5952 # } 5953 # } 5954 # Response: 5955 # { 5956 # 5957 # "data": { 5958 # 5959 # "updateUserStatus": { 5960 # 5961 # "status": "deleted" 5962 # 5963 # } 5964 # 5965 # } 5966 # } 5967 # 5968 # Arguments 5969 # input: Data required to update the status of a user 5970 (: UpdateUserStatus!): User! 5971 5972 # Create a custom dashboard 5973 # Example: 5974 # Request: 5975 # mutation { 5976 # 5977 # createCustomDashboard(input: { 5978 # 5979 # hostAppId: "80354999-d633-4595-9578-d82f59a5134f", 5980 # 5981 # name: "example", 5982 # 5983 # description: "example", 5984 # 5985 # data: { 5986 # 5987 # example: "example jsondata"}}) { 5988 # 5989 # id 5990 # 5991 # } 5992 # } 5993 # Response: 5994 # { 5995 # 5996 # "data": { 5997 # 5998 # "createCustomDashboard": { 5999 # 6000 # "id": "60141fc5-8d31-487d-9847-c47f990e4537" 6001 # 6002 # } 6003 # 6004 # } 6005 # } 6006 (: CreateCustomDashboard): CustomDashboard 6007 6008 # Update a custom dashboard 6009 # Example: 6010 # Request: 6011 # mutation { 6012 # 6013 # updateCustomDashboard(input: { 6014 # 6015 # id: "60141fc5-8d31-487d-9847-c47f990e4537", 6016 # 6017 # name: "new name"}) { 6018 # 6019 # name 6020 # 6021 # } 6022 # } 6023 # Response: 6024 # { 6025 # 6026 # "data": { 6027 # 6028 # "updateCustomDashboard": { 6029 # 6030 # "name": "new name" 6031 # 6032 # } 6033 # 6034 # } 6035 # } 6036 (: UpdateCustomDashboard): CustomDashboard 6037 6038 # Delete a custom dashboard 6039 # Example: 6040 # Request: 6041 # mutation { 6042 # 6043 # deleteCustomDashboard( 6044 # 6045 # id: "60141fc5-8d31-487d-9847-c47f990e4537") { 6046 # 6047 # message 6048 # 6049 # } 6050 # } 6051 # Response: 6052 # { 6053 # 6054 # "data": { 6055 # 6056 # "deleteCustomDashboard": { 6057 # 6058 # "message": "Custom dashboard deleted" 6059 # 6060 # } 6061 # 6062 # } 6063 # } 6064 (: ID!): DeletePayload 6065 6066 # Create a Dataset 6067 # Example: 6068 # Request: 6069 # mutation { 6070 # 6071 # createDataset(input: { 6072 # 6073 # name: "example", 6074 # 6075 # description: "example", 6076 # 6077 # schemaId: "acab8bd9-a4d4-44de-ad4b-cc949d696cf9", 6078 # 6079 # tags: { 6080 # 6081 # name: "example", 6082 # 6083 # value: "example value"}}) { 6084 # 6085 # datasetId 6086 # 6087 # } 6088 # } 6089 # Response: 6090 # { 6091 # 6092 # "data": { 6093 # 6094 # "createDataset": { 6095 # 6096 # "datasetId": "47c831ea-f4f6-4eeb-9e39-8c1cd0a1eb95" 6097 # 6098 # } 6099 # 6100 # } 6101 # } 6102 (: DatasetInput!): Dataset 6103 6104 # Create a Dataset Schema 6105 # Example: 6106 # Request: 6107 # mutation { 6108 # 6109 # createDatasetSchema(input: { 6110 # 6111 # name: "example" 6112 # 6113 # description: "example" 6114 # 6115 # schema: { 6116 # 6117 # example: "example value" 6118 # 6119 # } 6120 # 6121 # tags: { 6122 # 6123 # name: "example", 6124 # 6125 # value: "example value"}}) { 6126 # 6127 # schema{ 6128 # 6129 # id 6130 # 6131 # } 6132 # 6133 # } 6134 # } 6135 # Response: 6136 # { 6137 # 6138 # "data": { 6139 # 6140 # "createDatasetSchema": null 6141 # 6142 # } 6143 # } 6144 (: CreateDatasetSchema!): Dataset 6145 6146 # Update a Dataset 6147 (: ID!, : DatasetInput): Dataset 6148 6149 # Delete a Dataset 6150 (: ID!): DeleteDatasetPayload! 6151 6152 # Perform Dataset Operations 6153 # 6154 # Arguments 6155 # id: Specify the Dataset ID for the operation to be performed 6156 ( 6157 : ID!, 6158 : [DatasetActionInput!], 6159 : Boolean, 6160 : Boolean 6161 ): DatasetStateInfo 6162 6163 # Replace a source engine to replacement engine 6164 # Example: 6165 # Request: 6166 # mutation { 6167 # 6168 # addTaskReplacementEngine(input: { 6169 # 6170 # sourceEngineId: "1" 6171 # 6172 # replacementEngineId: "2" 6173 # 6174 # organizationId: "35521" 6175 # 6176 # payloadFunc: null}) { 6177 # 6178 # replacementEngineId 6179 # 6180 # } 6181 # } 6182 # Response: 6183 # { 6184 # 6185 # "data": { 6186 # 6187 # "addTaskReplacementEngine": { 6188 # 6189 # "replacementEngineId": "2" 6190 # 6191 # } 6192 # 6193 # } 6194 # } 6195 ( 6196 : AddTaskReplacementEngine 6197 ): TaskEngineReplacement 6198 6199 # Remove an engine replacement 6200 # Example: 6201 # Request: 6202 # mutation { 6203 # 6204 # removeTaskReplacementEngine(input: { 6205 # 6206 # sourceEngineId: "1", 6207 # 6208 # replacementEngineId: "2", 6209 # 6210 # organizationId: "35521"}) { 6211 # 6212 # message 6213 # 6214 # } 6215 # } 6216 # Response: 6217 # { 6218 # 6219 # "data": { 6220 # 6221 # "removeTaskReplacementEngine": { 6222 # 6223 # "message": "Engine replacement has been removed" 6224 # 6225 # } 6226 # 6227 # } 6228 # } 6229 ( 6230 : RemoveTaskReplacementEngine 6231 ): DeletePayload 6232 6233 # Create a custom notification mailbox 6234 # Example: 6235 # Request: 6236 # mutation { 6237 # 6238 # notificationMailboxCreate(input: { 6239 # 6240 # name: "example", 6241 # 6242 # eventFilter: { 6243 # 6244 # eventNames: "example", 6245 # 6246 # eventType: "example",, 6247 # 6248 # delivery: { 6249 # 6250 # params: { 6251 # 6252 # example: "example params" 6253 # 6254 # } 6255 # 6256 # } 6257 # 6258 # }, 6259 # 6260 # notificationTemplate: "", 6261 # 6262 # limit: 10}) { 6263 # 6264 # id 6265 # 6266 # } 6267 # } 6268 # Response: 6269 # { 6270 # 6271 # "data": { 6272 # 6273 # "notificationMailboxCreate": [ 6274 # 6275 # { 6276 # 6277 # "id": "0415f525-813d-4fd4-9dea-9428382b05b9" 6278 # 6279 # } 6280 # } } 6281 ( 6282 : NotificationMailboxInput 6283 ): NotificationMailbox 6284 6285 # Pause a notification mailbox 6286 # Example: 6287 # Request: 6288 # mutation { 6289 # 6290 # notificationMailboxPause( 6291 # 6292 # id: "0415f525-813d-4fd4-9dea-9428382b05b9") { 6293 # 6294 # id 6295 # 6296 # paused 6297 # 6298 # } 6299 # } 6300 # Response: 6301 # { 6302 # 6303 # "data": { 6304 # 6305 # "notificationMailboxPause": { 6306 # 6307 # "id": "0415f525-813d-4fd4-9dea-9428382b05b9", 6308 # 6309 # "paused": true 6310 # 6311 # } 6312 # 6313 # } 6314 # } 6315 (: ID!): NotificationMailbox 6316 6317 # Delete a notification mailbox 6318 # Example: 6319 # Request: 6320 # mutation { 6321 # 6322 # notificationMailboxDelete(id:"0415f525-813d-4fd4-9dea-9428382b05b9") { 6323 # 6324 # message 6325 # 6326 # } 6327 # } 6328 # Response: 6329 # { 6330 # 6331 # "data": { 6332 # 6333 # "notificationMailboxDelete": { 6334 # 6335 # "message": "Notification mailbox has been removed" 6336 # 6337 # } 6338 # 6339 # } 6340 # } 6341 (: ID!): DeletePayload! 6342 6343 # Post a notification to some mailboxes 6344 # The result reports recipients that were skipped (`failedMailboxes`) or only got 6345 # a live-only copy 6346 # (`limitedMailboxes`); both are empty lists when every recipient was reached. 6347 # Example: 6348 # Request: 6349 # mutation { 6350 # 6351 # notificationPost(input: { 6352 # 6353 # mailboxIds: ["0415f525-813d-4fd4-9dea-9428382b05b9"], 6354 # 6355 # title: "example title", 6356 # 6357 # body: "example body", 6358 # 6359 # contentType: "type", 6360 # 6361 # flags: unread}) { 6362 # 6363 # id 6364 # 6365 # } 6366 # } 6367 # Response: 6368 # { 6369 # 6370 # "data": { 6371 # 6372 # "notificationPost": { 6373 # 6374 # "id": "iDDfG3oB3LnZSYqhRv7-" 6375 # 6376 # } 6377 # 6378 # } 6379 # } 6380 (: NotificaionPostInput): Notification 6381 6382 # Add a new notification template by eventName, eventType, application 6383 # Example: 6384 # Request: 6385 # mutation { 6386 # 6387 # addNotificationTemplate(input: { 6388 # 6389 # eventName: "example" 6390 # 6391 # eventType: "example" 6392 # 6393 # title: "example" 6394 # 6395 # body: "example" 6396 # 6397 # application: "80354999-d633-4595-9578-d82f59a5134f" 6398 # 6399 # mailboxId: "0415f525-813d-4fd4-9dea-9428382b05b9"}) { 6400 # 6401 # id 6402 # 6403 # } 6404 # } 6405 # Response: 6406 # { 6407 # 6408 # "data": { 6409 # 6410 # "addNotificationTemplate": { 6411 # 6412 # "id": "1dbf3d28-bc7a-434f-ba65-455da0169323" 6413 # 6414 # } 6415 # 6416 # } 6417 # } 6418 (: AddNotificationTemplate): NotificationTemplate 6419 6420 # Remove a notification template by id 6421 # Example: 6422 # Request: 6423 # mutation { 6424 # 6425 # removeNotificationTemplate(id: "1dbf3d28-bc7a-434f-ba65-455da0169323") { 6426 # 6427 # message 6428 # 6429 # } 6430 # } 6431 # Response: 6432 # { 6433 # 6434 # "data": { 6435 # 6436 # "removeNotificationTemplate": { 6437 # 6438 # "message": "Notification Template has been removed" 6439 # 6440 # } 6441 # 6442 # } 6443 # } 6444 (: ID!): DeletePayload! 6445 6446 # Add a new notification action by eventName, eventType, application 6447 # Example: 6448 # Request: 6449 # mutation { 6450 # 6451 # addNotificationAction(input: { 6452 # 6453 # eventName: "example", 6454 # 6455 # eventType: "example" 6456 # 6457 # actionName: "example" 6458 # 6459 # icon: 6460 # "https://edit.co.uk/uploads/2016/12/Image-1-Alternatives-to-stock-photography-Thinkstock.jpg" 6461 # 6462 # urlTemplate: "www.veritone.com" 6463 # 6464 # application: "80354999-d633-4595-9578-d82f59a5134f" 6465 # 6466 # mailboxId: "0415f525-813d-4fd4-9dea-9428382b05b9"}) { 6467 # 6468 # id 6469 # 6470 # } 6471 # } 6472 # Response: 6473 # { 6474 # 6475 # "data": { 6476 # 6477 # "addNotificationAction": { 6478 # 6479 # "id": "27dab45b-d825-4f20-b758-4b089d610903" 6480 # 6481 # } 6482 # 6483 # } 6484 # } 6485 (: AddNotificationAction): NotificationAction 6486 6487 # Remove a notification action by id 6488 # Example 6489 # Request: 6490 # mutation { 6491 # 6492 # removeNotificationAction( 6493 # 6494 # id:"27dab45b-d825-4f20-b758-4b089d610903") { 6495 # 6496 # message 6497 # 6498 # } 6499 # } 6500 # Response: 6501 # { 6502 # 6503 # "data": { 6504 # 6505 # "removeNotificationAction": { 6506 # 6507 # "message": "Notification Action has been removed" 6508 # 6509 # } 6510 # 6511 # } 6512 # } 6513 (: ID!): DeletePayload! 6514 6515 # Set and unset the notification flags 6516 # Example: 6517 # Request: 6518 # mutation { 6519 # 6520 # setNotificationFlag(input: { 6521 # 6522 # notificationId: "iDDfG3oB3LnZSYqhRv7-", 6523 # 6524 # setFlags: read}) { 6525 # 6526 # id 6527 # 6528 # flags 6529 # 6530 # } 6531 # } 6532 # Response: 6533 # { 6534 # 6535 # "data": { 6536 # 6537 # "setNotificationFlag": { 6538 # 6539 # "id": "iDDfG3oB3LnZSYqhRv7-", 6540 # 6541 # "flags": [ 6542 # 6543 # "unread", 6544 # 6545 # "read" 6546 # 6547 # ] 6548 # 6549 # } 6550 # 6551 # } 6552 # } 6553 (: SetNotificationFlag): Notification 6554 6555 # Unpause/resume a notification mailbox 6556 # Example: 6557 # Request: 6558 # mutation { 6559 # 6560 # notificationMailboxUnpause( 6561 # 6562 # id: "0415f525-813d-4fd4-9dea-9428382b05b9") { 6563 # 6564 # id 6565 # 6566 # } 6567 # } 6568 # Response: 6569 # { 6570 # 6571 # "data": { 6572 # 6573 # "notificationMailboxUnpause": { 6574 # 6575 # "id": "0415f525-813d-4fd4-9dea-9428382b05b9" 6576 # 6577 # } 6578 # 6579 # } 6580 # } 6581 (: ID!): NotificationMailbox 6582 6583 # Mark all notification as read for mailboxIds 6584 # Example: 6585 # Request: 6586 # mutation { 6587 # 6588 # markAllNotificationsRead( 6589 # 6590 # mailboxIds: ["0415f525-813d-4fd4-9dea-9428382b05b9"]) { 6591 # 6592 # id 6593 # 6594 # } 6595 # } 6596 # Response: 6597 # "data": { 6598 # 6599 # "markAllNotificationsRead": { 6600 # 6601 # "id": "0415f525-813d-4fd4-9dea-9428382b05b9", 6602 # 6603 # "notifications": { 6604 # 6605 # "records": { 6606 # 6607 # "flags": [ 6608 # 6609 # "unseen", 6610 # 6611 # "read" 6612 # 6613 # ] 6614 # 6615 # } 6616 # 6617 # } 6618 # 6619 # } 6620 # } 6621 (: [ID]!): [NotificationMailbox] 6622 6623 # Mark all notification as read for mailboxIds 6624 # Example: 6625 # Request: 6626 # mutation { 6627 # 6628 # markAllNotificationsSeen( 6629 # 6630 # mailboxIds: ["0415f525-813d-4fd4-9dea-9428382b05b9"]) { 6631 # 6632 # id 6633 # 6634 # notifications{ 6635 # 6636 # records{ 6637 # 6638 # flags 6639 # 6640 # } 6641 # 6642 # } 6643 # 6644 # } 6645 # } 6646 # Response: 6647 # { 6648 # 6649 # "data": { 6650 # 6651 # "markAllNotificationsSeen": 6652 # 6653 # { 6654 # 6655 # "id": "0415f525-813d-4fd4-9dea-9428382b05b9", 6656 # 6657 # "notifications": { 6658 # 6659 # "records": 6660 # 6661 # { 6662 # 6663 # "flags": [ 6664 # 6665 # "read", 6666 # 6667 # "seen" 6668 # 6669 # ] 6670 # 6671 # } 6672 # 6673 # } 6674 # 6675 # } 6676 # 6677 # } 6678 # 6679 # } 6680 (: [ID]!): [NotificationMailbox] 6681 6682 # Create the default user setting definition for application by current 6683 # organization 6684 # Example: 6685 # Request: 6686 # mutation { 6687 # 6688 # createUserSettingDefinition( 6689 # 6690 # application: "80354999-d633-4595-9578-d82f59a5134f", 6691 # 6692 # key: "example", 6693 # 6694 # type: "example", 6695 # 6696 # defaultValue: "example") { 6697 # 6698 # applicationId 6699 # 6700 # organizationGuid 6701 # 6702 # } 6703 # } 6704 # Response: 6705 # { 6706 # 6707 # "data": { 6708 # 6709 # "createUserSettingDefinition": { 6710 # 6711 # "applicationId": "80354999-d633-4595-9578-d82f59a5134f", 6712 # 6713 # "organizationGuid": "49a4cbbc-5e83-4c42-b9a3-be6ec0732f09" 6714 # 6715 # } 6716 # 6717 # } 6718 # } 6719 # 6720 # Arguments 6721 # organizationGuid: Should be required by orgless token, 6722 # or can be set by superadmin 6723 ( 6724 : ID!, 6725 : String!, 6726 : String!, 6727 : String, 6728 : String!, 6729 : ID 6730 ): ApplicationSetting 6731 6732 # Delete the default user setting definition for application and org 6733 # Example: 6734 # Request: 6735 # mutation { 6736 # 6737 # deleteUserSettingDefinition( 6738 # 6739 # application: "80354999-d633-4595-9578-d82f59a5134f", 6740 # 6741 # key:"example") { 6742 # 6743 # message 6744 # 6745 # } 6746 # } 6747 # Response: 6748 # { 6749 # 6750 # "data": { 6751 # 6752 # "deleteUserSettingDefinition": { 6753 # 6754 # "message": "Application setting (application: 6755 # 80354999-d633-4595-9578-d82f59a5134f, organizationGuid: 6756 # 49a4cbbc-5e83-4c42-b9a3-be6ec0732f09, key: example) has been deleted" 6757 # 6758 # } 6759 # 6760 # } 6761 # } 6762 # 6763 # Arguments 6764 # organizationGuid: Should be required by orgless token, 6765 # or can be set by superadmin 6766 ( 6767 : ID!, 6768 : ID, 6769 : String! 6770 ): DeletePayload! 6771 6772 # Update setting for user (add/update/remove settings) 6773 # Example: 6774 # Request: 6775 # mutation { 6776 # 6777 # updateUserSetting(input: { 6778 # 6779 # application: "80354999-d633-4595-9578-d82f59a5134f", 6780 # 6781 # key: "example12", 6782 # 6783 # value: "example value"}) { 6784 # 6785 # userId 6786 # 6787 # } 6788 # } 6789 # Response: 6790 # { 6791 # 6792 # "data": { 6793 # 6794 # "updateUserSetting": { 6795 # 6796 # "userId": "59cb4e74-7c31-4267-b91e-d4600bc08008" 6797 # 6798 # } 6799 # 6800 # } 6801 # } 6802 (: UpdateUserSetting): UserSetting 6803 6804 # Create an OpenID Provider 6805 (: CreateOpenIdProvider): OpenIdProvider 6806 6807 # Update an OpenId Provider by ID 6808 (: UpdateOpenIdProvider): OpenIdProvider 6809 6810 # Enable Global OpenID Provider for Organization 6811 ( 6812 : EnableOpenIdProviderForOrg 6813 ): UpdatePayload 6814 6815 # Disable Global OpenID Provider for Organization 6816 ( 6817 : DisableOpenIdProviderForOrg 6818 ): UpdatePayload 6819 6820 # Delete OpenID Provider 6821 (: ID!): DeletePayload 6822 6823 # Get Organization scoped application JWT token 6824 (: GetApplicationJWT): ApplicationJWTTokenInfo 6825 6826 # Remove an application event endpoint 6827 (: ID!): DeletePayload 6828 6829 # Update event endpoint for an application 6830 ( 6831 : UpdateApplicationEventEndpoint 6832 ): Application 6833 6834 # Multi Organization Invitation. 6835 ( 6836 : CreateOrganizationInviteInput! 6837 ): OrganizationInvite! 6838 6839 ( 6840 : UpdateOrganizationInviteInput! 6841 ): OrganizationInvite! 6842 6843 ( 6844 : ID! 6845 ): OrganizationInfo 6846 6847 # delete organization invitation 6848 # This deletion is hard-delete process. It will remove invitation completely from 6849 # the database. 6850 (: ID!): DeletePayload 6851 6852 # Create a package 6853 (: PackageCreateInput): Package 6854 6855 # This updates the specified package. 6856 # 6857 # This will result in upgrading the package by duplicating the original package 6858 # and 6859 # bumping its version number up to the next major version. The new package will 6860 # reflect 6861 # the changes made to the original package. __Note: The original package will not 6862 # be altered in any way.__ 6863 # 6864 # The data returned will be the newly upgraded version of the package. 6865 (: PackageUpdateInput): Package 6866 6867 # Delete a package 6868 (: ID!): PackageDeleteResult 6869 6870 # This updates the resources of the specified package. 6871 # 6872 # This will result in upgrading the package by duplicating the original package 6873 # and 6874 # bumping its version number up to the next major version. The new package will 6875 # reflect 6876 # the changes made to the original package's resources. __Note: The original 6877 # package will not 6878 # be altered in any way.__ 6879 # 6880 # The data returned will be the newly upgraded version of the package. 6881 (: BulkPackageResourceInput): Package 6882 6883 # Add or remove Grants to a package and organization 6884 (: BulkPackageGrantInput!): Package 6885 6886 (: String!, : [AuthPermissionType]!): ApiToken 6887 6888 (: String!, : ApiTokenUpdateInput!): ApiTokenInfo 6889 6890 # Update an ApplicationViewer 6891 # Example: 6892 # Request: 6893 # mutation { 6894 # updateApplicationViewer(viewerId: "2a1a1b58-6983-4002-b9ed-7b7f325f621a", input: 6895 # { name: "Test"}) { 6896 # records{ 6897 # id 6898 # name 6899 # } 6900 # } 6901 # } 6902 # Response: 6903 # { 6904 # "data": { 6905 # "viewers": { 6906 # "records": [ 6907 # { 6908 # "viewerId": "2a1a1b58-6983-4002-b9ed-7b7f325f621a", 6909 # "name": "Test" 6910 # } 6911 # ] 6912 # } 6913 # } 6914 # } 6915 # 6916 # Arguments 6917 # viewerId: Provide an id of the viewer to update. 6918 # input: Input for the update viewer 6919 ( 6920 : ID!, 6921 : UpdateApplicationViewerInput! 6922 ): ApplicationViewer 6923 6924 # Delete an ApplicationViewer 6925 # Example: 6926 # Request: 6927 # mutation { 6928 # deleteApplicationViewer(viewerId: "2a1a1b58-6983-4002-b9ed-7b7f325f621a") { 6929 # records{ 6930 # id 6931 # name 6932 # } 6933 # } 6934 # } 6935 # Response: 6936 # { 6937 # "data": { 6938 # "viewers": { 6939 # "records": [ 6940 # { 6941 # "viewerId": "2a1a1b58-6983-4002-b9ed-7b7f325f621a", 6942 # } 6943 # ] 6944 # } 6945 # } 6946 # } 6947 # 6948 # Arguments 6949 # viewerId: Provide an id of the viewer to delete. 6950 (: ID!): ApplicationViewer 6951 6952 # Delete an ApplicationViewerBuild 6953 # Example: 6954 # Request: 6955 # mutation { 6956 # deleteApplicationViewerBuild(viewerBuildId: 6957 # "2a1a1b58-6983-4002-b9ed-7b7f325f621a") { 6958 # records{ 6959 # id 6960 # name 6961 # } 6962 # } 6963 # } 6964 # Response: 6965 # { 6966 # "data": { 6967 # "viewers": { 6968 # "records": [ 6969 # { 6970 # "viewerId": "2a1a1b58-6983-4002-b9ed-7b7f325f621a", 6971 # } 6972 # ] 6973 # } 6974 # } 6975 # } 6976 # 6977 # Arguments 6978 # viewerBuildId: Provide an id of the viewer build to delete. 6979 (: ID!): ApplicationViewerBuild 6980 6981 # This mutation creates the multipart upload session to an S3 bucket. If provided, 6982 # it will create the session for a 6983 # specified bucket. Otherwise, it will create a session for the API bucket that is 6984 # configured for aiware by default. 6985 # What this mutation does is establish a connection to the bucket, initiate the 6986 # multipart upload session, 6987 # and generate pre-signed URLs for each part that needs to be uploaded. The number 6988 # of generated pre-signed URLs is 6989 # determined by the `numberOfParts` input field. 6990 # Example: 6991 # Request: 6992 # mutation { 6993 # 6994 # initiateMultipartUpload(input: { 6995 # 6996 # fileName: "exampleImage.jpg", 6997 # 6998 # contentType: "image/jpeg", 6999 # 7000 # fileSize: 22594, 7001 # 7002 # }) { 7003 # 7004 # preSignedUrls { 7005 # 7006 # partNumber 7007 # 7008 # signedUrl 7009 # 7010 # } 7011 # 7012 # chunkSize 7013 # 7014 # key 7015 # 7016 # uploadId 7017 # 7018 # } 7019 # } 7020 ( 7021 : InitiateMultipartUploadInput! 7022 ): MultipartUploadSessionInfo 7023 7024 # This mutation is called after all parts have been uploaded. This will finalize 7025 # and close out the 7026 # multipart upload session and return the final URL where the file was uploaded 7027 # to. 7028 # Example: 7029 # Request: 7030 # mutation { 7031 # 7032 # completeMultipartUpload(input: { 7033 # 7034 # key: "exampleImage.jpg", 7035 # 7036 # uploadId: "exampleUploadId", 7037 # 7038 # parts: [ 7039 # 7040 # { 7041 # 7042 # partNumber: "1", 7043 # 7044 # etag: "exampleEtag" 7045 # 7046 # } 7047 # 7048 # ] 7049 # 7050 # }) { 7051 # 7052 # url 7053 # 7054 # } 7055 # } 7056 ( 7057 : CompleteMultipartUploadInput! 7058 ): CompleteMultipartUploadResult 7059 7060 # This mutation can be called at any point during an open multipart upload 7061 # session. 7062 # This will cancel the session and free up any space taken up by any parts already 7063 # uploaded. 7064 # However, it is possible for there to be dangling parts that may have still been 7065 # in-progress and 7066 # uploaded after the cancel request was made. This mutation will make the cancel 7067 # request up to 3 times 7068 # to ensure that everything has been cleaned up properly. If it’s not fully clean 7069 # after 3 calls, 7070 # an error will be returned, directing to run this mutation again. 7071 # Example: 7072 # Request: 7073 # mutation { 7074 # 7075 # cancelMultipartUpload(input: { 7076 # 7077 # key: "exampleImage.jpg", 7078 # 7079 # uploadId: "exampleUploadId" 7080 # 7081 # }) { 7082 # 7083 # id 7084 # 7085 # message 7086 # 7087 # } 7088 # } 7089 (: CancelMultipartUploadInput!): DeletePayload 7090 7091 ( 7092 : EmailProviderConfigInput! 7093 ): EmailProviderConfig! 7094 7095 # Create an email template. 7096 (: EmailTemplateInput!): EmailTemplate! 7097 7098 # This updates the specified email template. 7099 (: EmailTemplateInput!): EmailTemplate! 7100 7101 # Delete an email template. 7102 # 7103 # Note: `organizationGuid` is required, so only organization-scoped templates can 7104 # be 7105 # deleted. Global templates (created with a null `organizationGuid`) cannot be 7106 # deleted 7107 # through this mutation — there is no null org value to match against. 7108 (: String!, : String!): EmailTemplate! 7109 7110 # Create one or more ingest slugs in bulk. 7111 # 7112 # This mutation creates ingest slug records for files, enabling tracking through 7113 # the ingestion pipeline. It supports batch processing (up to 1000 files per 7114 # batch), 7115 # returns both successful creations and failures, and validates sourceId and 7116 # optional 7117 # engineId and appId parameters. The organizationId is retrieved from the user's 7118 # authorization context. 7119 # 7120 # Requires scope: superadmin OR aiware.slug.create 7121 # 7122 # Example: Create multiple ingest slugs for a video source: 7123 # mutation { 7124 # 7125 # ingestSlugsCreate( 7126 # 7127 # input: { 7128 # 7129 # sourceId: "100" 7130 # 7131 # files: [ 7132 # 7133 # { 7134 # 7135 # fileUri: "s3://bucket/videos/file1.mp4" 7136 # 7137 # bundleKey: "bundle-001" 7138 # 7139 # mimeType: "video/mp4" 7140 # 7141 # fileSizeBytes: 2147483648 7142 # 7143 # fileCreatedAt: "2024-01-15T10:00:00Z" 7144 # 7145 # fileModifiedAt: "2024-01-15T10:30:00Z" 7146 # 7147 # status: "pending" 7148 # 7149 # }, 7150 # 7151 # { 7152 # 7153 # fileUri: "s3://bucket/videos/file2.mov" 7154 # 7155 # bundleKey: "bundle-001" 7156 # 7157 # mimeType: "video/quicktime" 7158 # 7159 # fileSizeBytes: 1073741824 7160 # 7161 # fileCreatedAt: "2024-01-15T11:00:00Z" 7162 # 7163 # fileModifiedAt: "2024-01-15T11:30:00Z" 7164 # 7165 # status: "pending" 7166 # 7167 # } 7168 # 7169 # ] 7170 # 7171 # engineId: "c0e55cde-340b-44d7-bb42-2e0d65e98255" 7172 # 7173 # appId: "47bd3e25-f4ea-435f-b69b-13cb4f9dd60a" 7174 # 7175 # } 7176 # 7177 # ) { 7178 # 7179 # sourceId 7180 # 7181 # created { 7182 # 7183 # sourceId 7184 # 7185 # fileUri 7186 # 7187 # status 7188 # 7189 # bundleKey 7190 # 7191 # createdAt 7192 # 7193 # } 7194 # 7195 # failed { 7196 # 7197 # fileUri 7198 # 7199 # errorCode 7200 # 7201 # errorMessage 7202 # 7203 # } 7204 # 7205 # } 7206 # } 7207 # 7208 # Response: 7209 # { 7210 # 7211 # "data": { 7212 # 7213 # "ingestSlugsCreate": { 7214 # 7215 # "sourceId": "100", 7216 # 7217 # "created": [ 7218 # 7219 # { 7220 # 7221 # "sourceId": "100", 7222 # 7223 # "fileUri": "s3://bucket/videos/file1.mp4", 7224 # 7225 # "status": "pending", 7226 # 7227 # "bundleKey": "bundle-001", 7228 # 7229 # "createdAt": "2024-01-15T09:00:00Z" 7230 # 7231 # }, 7232 # 7233 # { 7234 # 7235 # "sourceId": "100", 7236 # 7237 # "fileUri": "s3://bucket/videos/file2.mov", 7238 # 7239 # "status": "pending", 7240 # 7241 # "bundleKey": "bundle-001", 7242 # 7243 # "createdAt": "2024-01-15T09:05:00Z" 7244 # 7245 # } 7246 # 7247 # ], 7248 # 7249 # "failed": [] 7250 # 7251 # } 7252 # 7253 # } 7254 # } 7255 # 7256 # Notes: 7257 # - Status defaults to "pending" if not provided 7258 # - Duplicate file URIs for the same source are ignored and returned as failures 7259 # - engineId and appId are optional but must exist if provided 7260 # - If tdoId is provided, the slug will be associated with that temporal data 7261 # object 7262 # - organizationId is automatically determined from the user's authorization 7263 # context 7264 (: IngestSlugsCreateInput!): IngestSlugsCreateResult 7265 7266 # Update an individual ingest slug's metadata with optional conditional filtering. 7267 # 7268 # Allows updating file metadata, processing status, and TDO/asset associations 7269 # for a specific ingest slug identified by sourceId and fileUri. Only provided 7270 # fields 7271 # are updated (partial updates are supported). The updatedAt timestamp is 7272 # automatically 7273 # updated. The sourceId is scoped to the user's organization from their 7274 # authorization context. 7275 # 7276 # Optional filtering can be applied to restrict updates to slugs in a specific 7277 # status, 7278 # useful for preventing concurrent updates or ensuring updates only occur on files 7279 # in a particular state. 7280 # 7281 # Requires scope: superadmin OR aiware.slug.update 7282 # 7283 # Example 1: Update slug status and associate with a TDO: 7284 # mutation { 7285 # 7286 # ingestSlugUpdate( 7287 # 7288 # sourceId: "100" 7289 # 7290 # fileUri: "s3://bucket/videos/sample.mp4" 7291 # 7292 # input: { 7293 # 7294 # status: "ingested" 7295 # 7296 # statusMessage: "Successfully ingested and transcoded" 7297 # 7298 # tdoId: "1570654874" 7299 # 7300 # assetId: "1570654874_4hJtNKSUXD" 7301 # 7302 # mimeType: "video/mp4" 7303 # 7304 # fileSizeBytes: 2147483648 7305 # 7306 # } 7307 # 7308 # ) { 7309 # 7310 # sourceId 7311 # 7312 # fileUri 7313 # 7314 # status 7315 # 7316 # statusMessage 7317 # 7318 # tdoId 7319 # 7320 # assetId 7321 # 7322 # mimeType 7323 # 7324 # fileSizeBytes 7325 # 7326 # updatedAt 7327 # 7328 # } 7329 # } 7330 # 7331 # Example 2: Update file metadata timestamps: 7332 # mutation { 7333 # 7334 # ingestSlugUpdate( 7335 # 7336 # sourceId: "100" 7337 # 7338 # fileUri: "s3://bucket/videos/sample.mp4" 7339 # 7340 # input: { 7341 # 7342 # fileModifiedAt: "2024-01-15T14:00:00Z" 7343 # 7344 # bundleKey: "bundle-updated" 7345 # 7346 # } 7347 # 7348 # ) { 7349 # 7350 # fileModifiedAt 7351 # 7352 # bundleKey 7353 # 7354 # updatedAt 7355 # 7356 # } 7357 # } 7358 # 7359 # Example 3: Conditional update - only update if status is currently 'pending': 7360 # mutation { 7361 # 7362 # ingestSlugUpdate( 7363 # 7364 # sourceId: "100" 7365 # 7366 # fileUri: "s3://bucket/videos/sample.mp4" 7367 # 7368 # input: { 7369 # 7370 # status: "ingested" 7371 # 7372 # filter: { 7373 # 7374 # status: "pending" 7375 # 7376 # } 7377 # 7378 # } 7379 # 7380 # ) { 7381 # 7382 # sourceId 7383 # 7384 # fileUri 7385 # 7386 # status 7387 # 7388 # updatedAt 7389 # 7390 # } 7391 # } 7392 # 7393 # Response: 7394 # { 7395 # 7396 # "data": { 7397 # 7398 # "ingestSlugUpdate": { 7399 # 7400 # "sourceId": "100", 7401 # 7402 # "fileUri": "s3://bucket/videos/sample.mp4", 7403 # 7404 # "status": "ingested", 7405 # 7406 # "statusMessage": "Successfully ingested and transcoded", 7407 # 7408 # "tdoId": "1570654874", 7409 # 7410 # "assetId": "1570654874_4hJtNKSUXD", 7411 # 7412 # "mimeType": "video/mp4", 7413 # 7414 # "fileSizeBytes": 2147483648, 7415 # 7416 # "updatedAt": "2024-01-15T14:00:00Z" 7417 # 7418 # } 7419 # 7420 # } 7421 # } 7422 # 7423 # Notes: 7424 # - Both sourceId and fileUri are required and used as composite key 7425 # - Any combination of updatable fields can be provided 7426 # - TDO/asset associations are upserted 7427 # - The returned object contains all current slug fields after the update 7428 # - sourceId is validated to belong to the user's organization from authorization 7429 # context 7430 # - filter.status can be used to make updates conditional on current status 7431 # - If filter.status is provided and current status doesn't match, returns null 7432 # (not found) 7433 ( 7434 : ID!, 7435 : String!, 7436 : IngestSlugUpdateInput! 7437 ): IngestSlug 7438 7439 # Bulk update the status of multiple ingest slugs with optimized batch processing. 7440 # 7441 # The sourceId is scoped to the user's organization from their authorization 7442 # context. 7443 # 7444 # Requires scope: superadmin OR aiware.slug.update 7445 # 7446 # Example 1: Mark multiple files as ingested: 7447 # mutation { 7448 # 7449 # ingestSlugUpdateStatus( 7450 # 7451 # sourceId: "100" 7452 # 7453 # fileUris: [ 7454 # 7455 # "s3://bucket/videos/file1.mp4" 7456 # 7457 # "s3://bucket/videos/file2.mp4" 7458 # 7459 # "s3://bucket/videos/file3.mp4" 7460 # 7461 # ] 7462 # 7463 # input: { 7464 # 7465 # status: "ingested" 7466 # 7467 # statusMessage: "Batch processing completed successfully" 7468 # 7469 # } 7470 # 7471 # ) { 7472 # 7473 # sourceId 7474 # 7475 # updated { 7476 # 7477 # sourceId 7478 # 7479 # fileUri 7480 # 7481 # status 7482 # 7483 # statusMessage 7484 # 7485 # updatedAt 7486 # 7487 # } 7488 # 7489 # failed { 7490 # 7491 # fileUri 7492 # 7493 # errorCode 7494 # 7495 # errorMessage 7496 # 7497 # } 7498 # 7499 # } 7500 # } 7501 # 7502 # Example 2: Reset failed uploads back to pending: 7503 # mutation { 7504 # 7505 # ingestSlugUpdateStatus( 7506 # 7507 # sourceId: "100" 7508 # 7509 # fileUris: [ 7510 # 7511 # "s3://bucket/videos/failed1.mp4" 7512 # 7513 # "s3://bucket/videos/failed2.mp4" 7514 # 7515 # ] 7516 # 7517 # input: { 7518 # 7519 # status: "pending" 7520 # 7521 # statusMessage: "Retry after connection restored" 7522 # 7523 # } 7524 # 7525 # ) { 7526 # 7527 # sourceId 7528 # 7529 # updated { 7530 # 7531 # fileUri 7532 # 7533 # status 7534 # 7535 # updatedAt 7536 # 7537 # } 7538 # 7539 # failed { 7540 # 7541 # fileUri 7542 # 7543 # errorCode 7544 # 7545 # errorMessage 7546 # 7547 # } 7548 # 7549 # } 7550 # } 7551 # 7552 # Response: 7553 # { 7554 # 7555 # "data": { 7556 # 7557 # "ingestSlugUpdateStatus": { 7558 # 7559 # "sourceId": "100", 7560 # 7561 # "updated": [ 7562 # 7563 # { 7564 # 7565 # "sourceId": "100", 7566 # 7567 # "fileUri": "s3://bucket/videos/file1.mp4", 7568 # 7569 # "status": "ingested", 7570 # 7571 # "statusMessage": "Batch processing completed successfully", 7572 # 7573 # "updatedAt": "2024-01-15T14:00:00Z" 7574 # 7575 # }, 7576 # 7577 # { 7578 # 7579 # "sourceId": "100", 7580 # 7581 # "fileUri": "s3://bucket/videos/file2.mp4", 7582 # 7583 # "status": "ingested", 7584 # 7585 # "statusMessage": "Batch processing completed successfully", 7586 # 7587 # "updatedAt": "2024-01-15T14:00:00Z" 7588 # 7589 # }, 7590 # 7591 # { 7592 # 7593 # "sourceId": "100", 7594 # 7595 # "fileUri": "s3://bucket/videos/file3.mp4", 7596 # 7597 # "status": "ingested", 7598 # 7599 # "statusMessage": "Batch processing completed successfully", 7600 # 7601 # "updatedAt": "2024-01-15T14:00:00Z" 7602 # 7603 # } 7604 # 7605 # ], 7606 # 7607 # "failed": [] 7608 # 7609 # } 7610 # 7611 # } 7612 # } 7613 # 7614 # Notes: 7615 # - sourceId and at least one fileUri are required 7616 # - Status is a required input, statusMessage is optional 7617 # - All files are updated in a single efficient batch operation (single database 7618 # round-trip) 7619 # - Partial success is possible: some files may succeed while others fail 7620 # - Possible error codes: 7621 # 7622 # * 'constraint_violation': File would violate unique constraint on 7623 # (media_source_id, bundle_key) where status='ingesting' 7624 # 7625 # * 'batch_conflict': Multiple files in the batch would conflict with each other 7626 # (same bundle_key) 7627 # 7628 # * 'not_found': The ingest slug does not exist for the given sourceId and fileUri 7629 # 7630 # * 'not_updated': Database error occurred during update 7631 # - Returns full IngestSlug objects for successfully updated records 7632 # - All updates are processed with organization security binding 7633 # - Maximum batch limit is 1000 fileUris per request 7634 ( 7635 : ID!, 7636 : [String!]!, 7637 : IngestSlugsStatusUpdateInput! 7638 ): IngestSlugUpdateStatusResult 7639 7640 # Delete specific ingest slug records. 7641 # 7642 # Removes ingest slug records from the system for the specified sourceId and 7643 # fileUris. 7644 # Returns IngestSlugKey objects (sourceId and fileUri pairs) for successfully 7645 # deleted records. 7646 # The sourceId is scoped to the user's organization from their authorization 7647 # context. 7648 # 7649 # Requires scope: superadmin OR aiware.slug.delete 7650 # 7651 # Example: Delete specific ingest slugs: 7652 # mutation { 7653 # 7654 # ingestSlugsDelete( 7655 # 7656 # sourceId: "100" 7657 # 7658 # fileUris: [ 7659 # 7660 # "s3://bucket/videos/old_file1.mp4" 7661 # 7662 # "s3://bucket/videos/old_file2.mp4" 7663 # 7664 # ] 7665 # 7666 # ) { 7667 # 7668 # sourceId 7669 # 7670 # deleted { 7671 # 7672 # sourceId 7673 # 7674 # fileUri 7675 # 7676 # } 7677 # 7678 # failed { 7679 # 7680 # fileUri 7681 # 7682 # errorCode 7683 # 7684 # errorMessage 7685 # 7686 # } 7687 # 7688 # } 7689 # } 7690 # 7691 # Response: 7692 # { 7693 # 7694 # "data": { 7695 # 7696 # "ingestSlugsDelete": { 7697 # 7698 # "sourceId": "100", 7699 # 7700 # "deleted": [ 7701 # 7702 # { 7703 # 7704 # "sourceId": "100", 7705 # 7706 # "fileUri": "s3://bucket/videos/old_file1.mp4" 7707 # 7708 # }, 7709 # 7710 # { 7711 # 7712 # "sourceId": "100", 7713 # 7714 # "fileUri": "s3://bucket/videos/old_file2.mp4" 7715 # 7716 # } 7717 # 7718 # ], 7719 # 7720 # "failed": [] 7721 # 7722 # } 7723 # 7724 # } 7725 # } 7726 # 7727 # Notes: 7728 # - sourceId and at least one fileUri are required 7729 # - Returns IngestSlugKey objects (composite key with sourceId and fileUri) for 7730 # each successfully deleted slug 7731 # - Failures occur if slug not found or on database error 7732 # - sourceId is validated to belong to the user's organization from authorization 7733 # context 7734 (: ID!, : [String!]!): IngestSlugsDeleteResult 7735 7736 # Delete all ingest slug records for a source. 7737 # 7738 # Removes all ingest slug records associated with a specific source. This 7739 # operation 7740 # is performed asynchronously and may take time for sources with many records. 7741 # A IngestSlugsDeleteBySource event is emitted and the operation is queued for 7742 # processing. 7743 # The sourceId is scoped to the user's organization from their authorization 7744 # context. 7745 # 7746 # Requires scope: superadmin OR aiware.slug.delete 7747 # 7748 # Example: 7749 # mutation { 7750 # 7751 # ingestSlugsDeleteForSource( 7752 # 7753 # sourceId: "100" 7754 # 7755 # ) { 7756 # 7757 # message 7758 # 7759 # submitted 7760 # 7761 # } 7762 # } 7763 # 7764 # Response: 7765 # { 7766 # 7767 # "data": { 7768 # 7769 # "ingestSlugsDeleteForSource": { 7770 # 7771 # "message": "Deletion request submitted for source 100. Processing 7772 # asynchronously.", 7773 # 7774 # "submitted": true 7775 # 7776 # } 7777 # 7778 # } 7779 # } 7780 # 7781 # Notes: 7782 # - This operation removes ALL ingest slugs for the source (use with caution) 7783 # - The deletion is processed asynchronously in the background 7784 # - sourceId is validated to belong to the user's organization from authorization 7785 # context 7786 (: ID!): IngestSlugsDeleteForSourceResult! 7787 7788 # Create a new processing project. 7789 (: ProcessingProjectInput!): ProcessingProject! 7790 7791 # Delete a processing project by ID. 7792 (: ID!): DeletePayload! 7793 7794 # Create a new processing deliverable. 7795 ( 7796 : ProcessingDeliverableInput! 7797 ): ProcessingDeliverable! 7798 7799 # Cancel a processing deliverable by ID. 7800 ( 7801 : ID!, 7802 : ID!, 7803 : String 7804 ): ProcessingDeliverable! 7805 7806 }
link Required by
This element is not required by anyone