POST
/
v1
/
notes
/
import
/
file
Import file to note
curl --request POST \
  --url https://dovetail.com/api/v1/notes/import/file \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "fields": [
    {
      "label": "<string>",
      "value": "<string>"
    }
  ],
  "mime_type": "<string>",
  "project_id": "<string>",
  "title": "My note",
  "url": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "type": "note",
    "title": "<string>",
    "project": {
      "id": "<string>",
      "title": "<string>"
    },
    "fields": [
      {
        "label": "<string>",
        "value": "<string>"
      }
    ],
    "files": [
      {
        "id": "<string>",
        "name": "<string>",
        "type": "<string>",
        "status": "completed",
        "author": {
          "id": "<string>",
          "name": "<string>"
        },
        "created_at": "<string>"
      }
    ],
    "created_at": "<string>",
    "deleted": true
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body

The body is of type object.

Response

201
application/json

201

The response is of type object.