Create document

POST /api/v1.0/docs

This endpoint creates a new document.

application/json

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, or personal.

  • 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

  • 201 application/json

    The resource created successfully

    Hide response attributes Show response attributes object
    • message string Required

      Operation message

    • doc_id string Required

      Document ID

    • folder string Required

      folde

  • 401

    The client request has not been completed because it lacks valid authentication credentials for the requested resource.

  • 403

    The client does not have access rights to the content.

  • 405

    The request method is known by the server but is not supported by the target resource.

POST /api/v1.0/docs
curl \
 --request POST 'https://openapi.niftypm.com/api/v1.0/docs' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"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",
  "folder": "string"
}