Auditmark

Create document

POST
/documents

Authorization

OrgApiKey
AuthorizationBearer <token>

Organization API key. Send as Authorization: Bearer <key>. Create one in Admin > Settings > API keys.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://api.auditmark.io/v1/documents" \  -F file="string" \  -F title="string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "title": "string",  "description": "string",  "tags": [    "string"  ],  "category": "string",  "file_name": "string",  "mime_type": "string",  "size_bytes": 0,  "uploaded_by": "e134ce2c-a199-4e99-9c11-627b70a7ff28",  "uploaded_by_name": "string",  "used_by_count": 0,  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string",      "input": null,      "ctx": {}    }  ]}