Create Personal Document
This endpoint creates a new personal document based on given request data.
Body Required
-
name string
Name
-
parent_doc_id string
Parent Document ID
-
project_id string
Project ID
-
googleAccessToken string
Google Access Token
-
type string
Type of Document
-
subtype string
Subtype of the document
-
private boolean
Private Flag
-
access_type string
Values are
public
,limited
, orpersonal
. -
content object
Document Content
-
external_id string
External ID
-
folder_id string
Folder ID
-
folder_stack array[string]
Folder stack
-
order number
Document Order
Responses
-
The resource created successfully
-
The client request has not been completed because it lacks valid authentication credentials for the requested resource.
-
The client does not have access rights to the content.
-
The request method is known by the server but is not supported by the target resource.
POST
/api/v1.0/docs/personal
curl \
-X POST https://openapi.niftypm.com/api/v1.0/docs/personal \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"string","parent_doc_id":"string","project_id":"string","googleAccessToken":"string","type":"string","subtype":"string","private":true,"access_type":"public","content":{},"external_id":"string","folder_id":"string","folder_stack":["string"],"order":42.0}'
Request example
{
"name": "string",
"parent_doc_id": "string",
"project_id": "string",
"googleAccessToken": "string",
"type": "string",
"subtype": "string",
"private": true,
"access_type": "public",
"content": {},
"external_id": "string",
"folder_id": "string",
"folder_stack": [
"string"
],
"order": 42.0
}
Request examples
{
"name": "string",
"parent_doc_id": "string",
"project_id": "string",
"googleAccessToken": "string",
"type": "string",
"subtype": "string",
"private": true,
"access_type": "public",
"content": {},
"external_id": "string",
"folder_id": "string",
"folder_stack": [
"string"
],
"order": 42.0
}
Response examples (201)
{
"message": "string",
"doc_id": "string"
}
Response examples (201)
{
"message": "string",
"doc_id": "string"
}