Skip to content

Commit bd0eb7f

Browse files
committed
Adding the UserNotebooks variable
Adding the UserNotebooks variable for userId based requests. Adding GetNotebookFromWebUrl at user request.
1 parent 727931f commit bd0eb7f

File tree

1 file changed

+95
-43
lines changed

1 file changed

+95
-43
lines changed

Collections/OneNote API.postman_collection.json

+95-43
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"name": "POST",
1313
"item": [
1414
{
15-
"name": "GetNotebooksFromWebUrls",
15+
"name": "GetNotebooksFromWebUrls at Me",
1616
"request": {
1717
"method": "POST",
1818
"header": [
@@ -46,7 +46,7 @@
4646
"response": []
4747
},
4848
{
49-
"name": "GetNotebookFromWebUrl",
49+
"name": "GetNotebookFromWebUrl at Me",
5050
"request": {
5151
"method": "POST",
5252
"header": [
@@ -78,6 +78,40 @@
7878
"description": "Gets the notebooks for a list of onenote weburls"
7979
},
8080
"response": []
81+
},
82+
{
83+
"name": "GetNotebookFromWebUrl at User",
84+
"request": {
85+
"method": "POST",
86+
"header": [
87+
{
88+
"key": "{{AppIdHeader}}",
89+
"type": "text",
90+
"value": "{{AppIdHeader_Value}}"
91+
},
92+
{
93+
"key": "Content-Type",
94+
"name": "Content-Type",
95+
"type": "text",
96+
"value": "application/json"
97+
}
98+
],
99+
"body": {
100+
"mode": "raw",
101+
"raw": "{\"webUrl\":\"{{WebUrl}}\"}"
102+
},
103+
"url": {
104+
"raw": "{{UserNotebooks}}/GetNotebookFromWebUrl",
105+
"host": [
106+
"{{UserNotebooks}}"
107+
],
108+
"path": [
109+
"GetNotebookFromWebUrl"
110+
]
111+
},
112+
"description": "Gets the notebooks for a list of onenote weburls"
113+
},
114+
"response": []
81115
}
82116
],
83117
"description": "All available POST actions in Notebooks API",
@@ -648,147 +682,165 @@
648682
],
649683
"variable": [
650684
{
651-
"id": "35157684-d420-4626-b039-e68bdb5a98fb",
685+
"id": "27dd41e1-9eb4-4bd1-a6b3-5951fe5c3c5b",
652686
"key": "AppIdHeader",
653687
"value": "MS-Int-AppId",
654688
"type": "string"
655689
},
656690
{
657-
"id": "829a708f-487d-48d6-9ec7-1ca7a370ab76",
691+
"id": "bab30ef8-d149-4035-91cc-805066188bbd",
658692
"key": "AppIdHeader_Value",
659693
"value": "Testing",
660694
"type": "string"
661695
},
662696
{
663-
"id": "7d548fe8-f203-4a48-acfd-44ccc660c636",
697+
"id": "83cd5418-04cc-4599-96c1-ba5782fee84f",
664698
"key": "Me",
665699
"value": "{{Site}}/api/{{version}}/me",
666700
"type": "string"
667701
},
668702
{
669-
"id": "4cc2445c-43b0-4948-9ff2-b6ae344bd195",
703+
"id": "a5448c9f-6feb-4f28-a863-d2fa62bf1f0e",
670704
"key": "MeNotebooks",
671705
"value": "{{Me}}/notes/notebooks",
672706
"type": "string"
673707
},
674708
{
675-
"id": "f6f88668-ef07-4950-8ca1-ffe10ad9ecd2",
709+
"id": "09cb72f3-8378-4e8c-99ea-9e9a48b68d18",
710+
"key": "User",
711+
"value": "{{Site}}/api/{{version}}/users('{{UserId}}')",
712+
"type": "string"
713+
},
714+
{
715+
"id": "3416584c-a122-46ff-adc2-118374d34d18",
716+
"key": "UserNotebooks",
717+
"value": "{{User}}/notes/notebooks",
718+
"type": "string"
719+
},
720+
{
721+
"id": "e4df61fa-296c-46b2-9c98-df0c2a4d0756",
676722
"key": "MeClassNotebooks",
677723
"value": "{{Me}}/notes/classnotebooks",
678724
"type": "string"
679725
},
680726
{
681-
"id": "68911d27-77a4-4f26-ae0e-4b700e447935",
727+
"id": "261df2b5-5218-4c35-9790-c60360a3c8bd",
682728
"key": "MeSections",
683729
"value": "{{Me}}/notes/sections",
684730
"type": "string"
685731
},
686732
{
687-
"id": "b1a09083-a903-4f1f-a5d8-c00593fc80a7",
733+
"id": "749901cd-60f9-4a51-b6a3-ad5f2064fdc4",
688734
"key": "MeSectionGroups",
689735
"value": "{{Me}}/notes/sectiongroups",
690736
"type": "string"
691737
},
692738
{
693-
"id": "a0baaee2-9a0c-4d5f-bcf9-7e78826f70c3",
739+
"id": "2c478448-f0da-4e04-bfa5-e6c3d20b0764",
694740
"key": "MeResources",
695741
"value": "{{Me}}/notes/resources",
696742
"type": "string"
697743
},
698744
{
699-
"id": "b6666443-ca86-46d7-989c-6940a7bd539b",
745+
"id": "0e5ccb28-79ae-49a8-bdda-4ff7228de9bd",
700746
"key": "WopiHost",
701747
"value": "{{Site}}/host",
702748
"type": "string"
703749
},
704750
{
705-
"id": "56e4dfcf-c0bc-423b-8780-93e76b5b99be",
751+
"id": "07cc0245-c2d0-41df-aad5-400013bc496f",
706752
"key": "WOPIEndpoint",
707753
"value": "{{Site}}/sync/{{WOPIVersion}}/Wopi",
708754
"type": "string"
709755
},
710756
{
711-
"id": "d30a054b-7315-4b27-98b5-b73aa67eb6cb",
757+
"id": "35e4cac5-5820-4e45-88dc-94daecdc4c1c",
712758
"key": "MePages",
713759
"value": "{{Me}}/notes/pages",
714760
"type": "string"
715761
},
716762
{
717-
"id": "917b8d15-f231-4638-952e-f09822e68ab2",
763+
"id": "e950e3fd-449d-4b76-bedf-6a4fafceed10",
764+
"key": "Target_Body",
765+
"value": "body",
766+
"type": "string"
767+
},
768+
{
769+
"id": "cb458a39-1623-4638-805d-20bb6a14e1d2",
770+
"key": "UserId",
771+
"value": "<Update current value only, leave this initial value as is>",
772+
"type": "string"
773+
},
774+
{
775+
"id": "f4fb182b-6464-4825-b475-d8d83025b594",
718776
"key": "PageId",
719-
"value": "",
777+
"value": "<Update current value only, leave this initial value as is>",
720778
"type": "string"
721779
},
722780
{
723-
"id": "124d1e9f-dd8a-49d3-b1e2-f2818655f1e7",
781+
"id": "a282b197-5e2c-4f27-8d68-d5bdeec7b2c6",
724782
"key": "SectionId",
725-
"value": "",
783+
"value": "<Update current value only, leave this initial value as is>",
726784
"type": "string"
727785
},
728786
{
729-
"id": "d1292b51-ac1e-4a99-97c9-8ad1ae3349d4",
787+
"id": "19011c28-0885-4481-b966-e7e043304cce",
730788
"key": "SectionGroupId",
731-
"value": "",
789+
"value": "<Update current value only, leave this initial value as is>",
732790
"type": "string"
733791
},
734792
{
735-
"id": "0de8134c-c708-4894-ac96-7d83975812ac",
793+
"id": "0dde8fa3-7db3-49f9-ad00-2b0746ab113a",
736794
"key": "NotebookId",
737-
"value": "",
795+
"value": "<Update current value only, leave this initial value as is>",
738796
"type": "string"
739797
},
740798
{
741-
"id": "f4d87d9a-ee89-4cce-97c8-954d7d11cf06",
799+
"id": "295ad84f-8345-459d-83b5-52dc28cb6b4c",
742800
"key": "ResourceId",
743-
"value": "",
801+
"value": "<Update current value only, leave this initial value as is>",
744802
"type": "string"
745803
},
746804
{
747-
"id": "26c41787-47cd-42af-8dc1-4144626f386e",
805+
"id": "c66ce02b-d97d-49ec-a707-fdf3b7711220",
748806
"key": "MachineName",
749-
"value": "",
807+
"value": "<Update current value only, leave this initial value as is>",
750808
"type": "string"
751809
},
752810
{
753-
"id": "43d21a4b-a8e4-4eb5-97bf-bd7c4fd588d6",
811+
"id": "e0df9ae4-0840-41ec-8397-e9a9a59d953d",
754812
"key": "WebUrl",
755-
"value": "",
813+
"value": "<Update current value only, leave this initial value as is>",
756814
"type": "string"
757815
},
758816
{
759-
"id": "71632c9e-ce2e-4ef2-a6ec-a6fa8d00e409",
817+
"id": "144bc424-902e-474f-b239-0ac931dae5a1",
760818
"key": "WebUrls",
761-
"value": "",
819+
"value": "<Update current value only, leave this initial value as is>",
762820
"type": "string"
763821
},
764822
{
765-
"id": "6464e3bd-f143-40d0-aa6e-9f746fef19c7",
823+
"id": "d88b074f-b159-42c7-a904-b6e3fd351639",
766824
"key": "Target_Id",
767-
"value": "",
768-
"type": "string"
769-
},
770-
{
771-
"id": "6bde8c50-4749-46d2-8f37-cb7f64015e24",
772-
"key": "Target_Body",
773-
"value": "",
825+
"value": "<Update current value only, leave this initial value as is>",
774826
"type": "string"
775827
},
776828
{
777-
"id": "4dc5948a-df21-4bc0-9549-231e6b0e4a18",
829+
"id": "1304283e-6fb6-4f28-ad6e-20009dc50a18",
778830
"key": "HTMLContent",
779-
"value": "",
831+
"value": "<Update current value only, leave this initial value as is>",
780832
"type": "string"
781833
},
782834
{
783-
"id": "2f2e44d6-ff6d-43e8-8d2e-69313ff82600",
835+
"id": "38061292-d589-4b22-b97d-e9874e1eb410",
784836
"key": "Test_Title",
785-
"value": "",
837+
"value": "<Update current value only, leave this initial value as is>",
786838
"type": "string"
787839
},
788840
{
789-
"id": "3a1744df-ddfa-456e-a49a-2313db1dc86a",
841+
"id": "ff04f9cb-d831-4f7e-904a-45e2dbf05016",
790842
"key": "Test_JapaneseTitle",
791-
"value": "",
843+
"value": "<Update current value only, leave this initial value as is>",
792844
"type": "string"
793845
}
794846
]

0 commit comments

Comments
 (0)