curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#ONENOTE_CREATE_PAGE' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "ONENOTE_CREATE_PAGE",
"parameters": {
"type": "users",
"userId": "<string>",
"groupId": "<string>",
"siteId": "<string>",
"contentType": "html",
"presentationContent": {},
"htmlcontent": {},
"sectionId": "<string>",
"multipartcontent": {}
}
}
'curl --request POST \
--url 'https://actionkit.useparagon.com/projects/{project_id}/actions/#ONENOTE_CREATE_PAGE' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "ONENOTE_CREATE_PAGE",
"parameters": {
"type": "users",
"userId": "<string>",
"groupId": "<string>",
"siteId": "<string>",
"contentType": "html",
"presentationContent": {},
"htmlcontent": {},
"sectionId": "<string>",
"multipartcontent": {}
}
}
'Your Paragon User Token (JWT), which you can generate using your project's signing keys.
Your Paragon Project ID. You can copy your Project ID from your dashboard URL or by clicking Copy Project ID under the Environment switcher.
Show child attributes
Type : Select the Type of your operation.
users, groups, sites, me User ID : Specify the ID of the User to Create Page. (example: "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") This field appears only when 'type' = 'users')
Group ID : Specify the ID of the Group to Create Page. (example: "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") This field appears only when 'type' = 'groups')
Site ID : Specify the ID of the Site to Create Page. (example: "1-22db9939679d4eada2698a4e983f7a63!245-45b54f25-123d-4db3-a286-b82791117671") This field appears only when 'type' = 'sites')
Content Type : Select the Content Type of your Content.
html, multipart Presentation Content : Specify Presentation content for page as HTML . (example: "
Here's an image from an online source:
Here's an image uploaded as binary data:
Here's a file attachment:
Content (example: "
This page contains some formatted text and an image.
Section ID : Specify the ID of the Section to Create Page. (example: "1-q3259d12-4211-459f-bdf0-2a2a21054865"). Should be required when type is sites or groups. Optional when type is users or me.
Multipart Content : Specify Multipart content for page as JSON . (example: "{ "imageBlock1": { "content": <Buffer ...>, "contentType": "image/jpeg", "fileName": "imageBlock1" }, "fileBlock1": { "content": <Buffer ...>, "contentType": "application/pdf", "fileName": "fileBlock1" } }") This field appears only when 'contentType' = 'multipart')
Success
Was this page helpful?