Ejento APIs
V1
  • V2
  • V1
  1. SharePoint APIs
Ejento APIs
V1
  • V2
  • V1
  • Overview
  • Endpoints
    • Chat APIs
      • Run Chat
      • Create Custom Instructions
      • Add Comment Feedback
      • Add Upvote Feedback
      • Add Downvote Feedback
      • Get Chat Thread
      • Get Thought Process
      • Get Supporting Content
      • Get All Agent Threads
    • Agent APIs
      • Get Recent Agents
      • Add to Recent Agents
      • Delete Recent Agent
      • Get Starred Agents
      • Delete Starred Agents
      • Get Agents by Team or User Team
      • Create a Review for an Agent
      • Get Agent Reviews
      • Update an Agent Review
      • Delete an Agent Review
      • Create Agent Chat
      • Get Agent Ratings
      • Toggle Rating
      • Create Agent Alias
      • Get All Agent Alias
      • Update Agent Alias
      • Get Agent Access Level
      • Update Agent Access Level
      • Get All Agents by Project
      • Get Agent Types
      • Update Agent Type
      • Get User Agent or User Agent Permission
    • Project APIs
      • Create New Project
      • Get All Projects
      • Get Project Details by ID
      • Edit Project By ID
      • Delete Project By ID
      • Add Recent Project
      • Get Recent Projects
      • Fetch Project Details
      • Add User to Project
      • Remove User from Project
      • Get User Projects For Team
    • Document APIs
      • Get Document By ID
      • Edit Document By ID
      • Delete Document By ID
    • Corpus APIs
      • Get All Corpus
      • Create Corpus
      • Get Corpus by ID
      • Edit Corpus
      • Delete Corpus
      • Get Corpus Permissions
      • Create Corpus Permissions
      • Delete Corpus Permissions
      • Get Corpus Permission By User
      • Create Document In Corpus
      • Get All Documents From Corpus
      • Delete All Documents
      • Check Duplicate Documents
    • Evaluation APIs
      • Create Evaluation Test
      • Get All Evaluation Tests for an Agent
      • Update Evaluation Test
      • Get One Evaluation Test
      • Update Evaluation Status
      • Get Evaluation Dataset for an Agent
      • Get All Evaluation Datasets for an Agent
      • Create Evaluation Dataset
      • Update Evaluation Dataset
      • Delete Evaluation Dataset
      • Get Agent Queries
      • Get Dataset Queries
    • SharePoint APIs
      • Get SharePoint items by full path
        GET
      • Get a SharePoint item by its ID
        GET
      • Create a new SharePoint item
        POST
      • Edit SharePoint item
        PUT
      • Delete a SharePoint item
        DELETE
    • User APIs
      • Get All Users
      • Get User By ID
      • Edit User By ID
      • Delete User by ID
      • Create User Permission
      • Get User Permission by ID
      • Edit User Permission by ID
      • Delete User Permission by ID
      • Batch Delete Users
    • Analytics APIs
      • Get Tokens by Date
      • Get Tokens by Segment
      • Get User Tokens
      • Get Agent Tokens
      • Get Team Tokens
      • Get Query Count by Date
      • Get Query Count by Segment
      • Get Total Count
      • Get Daily Chat Engagement
      • Get Weekly Chat Engagement
      • Get Monthly Chat Engagement
      • Get User Engagement
      • Get Daily Chatlog Tokens
      • Get Weekly Chatlog Tokens
      • Get Monthly Chatlog Tokens
      • Get Agent Engagement
      • Get Engagement by Team
      • Get Engagement by User
      • Get Recently Active Agents
      • Get Recent Users
    • Notification APIs
      • Send Notification To User
      • Read Notification By ID
  1. SharePoint APIs

Create a new SharePoint item

POST
/api/sharepoint/item/{item_sp_id}
SharePoint APIs
Creates a new SharePoint item
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/sharepoint/item/' \
--header 'Content-Type: application/json' \
--data-raw '{
    "document_index_id": 12,
    "item_name": "Document1",
    "fullpath": "/documents/folder1/Document1",
    "is_folder": false,
    "is_deleted": false
}'
Response Response Example
200 - Example 1
{
    "document_index_id": 12,
    "item_sp_id": 3456,
    "item_name": "Document1",
    "fullpath": "/documents/folder1/Document1",
    "is_folder": false,
    "is_deleted": false
}

Request

Path Params
item_sp_id
integer 
required
The unique identifier of the SharePoint item in SharePoint.
Body Params application/json
document_index_id
integer 
optional
The ID of the related document in the hierarchy.
Example:
12
item_name
string 
optional
The name of the SharePoint item.
Example:
Document1
fullpath
string 
optional
The full path where the item is located within SharePoint.
Example:
/documents/folder1/Document1
is_folder
boolean 
optional
Whether the item is a folder (true) or a file (false).
Example:
false
is_deleted
boolean 
optional
Whether the item has been deleted or not.
Example:
false
Examples

Responses

🟢200OK
application/json
Successfully created the SharePoint item.
Body
document_index_id
integer 
optional
The ID of the related document in the hierarchy.
Example:
12
item_sp_id
integer 
optional
The unique identifier of the SharePoint item.
Example:
3456
item_name
string 
optional
The name of the SharePoint item.
Example:
Document1
fullpath
string 
optional
The full path where the item is located within SharePoint.
Example:
/documents/folder1/Document1
is_folder
boolean 
optional
Whether the item is a folder (true) or a file (false).
Example:
false
is_deleted
boolean 
optional
Whether the item has been deleted or not.
Example:
false
🔴500Server Error
Previous
Get a SharePoint item by its ID
Next
Edit SharePoint item