Update tags for an uploaded PDF
You can pass tags in our upload endpoint, but if you forgot to do so, you can use this endpoint to add/update/remove tags for a document using its docId
. This endpoint will not consume any API credits from your plan.
Whatever tags you want to have for the document, include all of them in the array which is going to replace the list of tags associated with the document
To remove the tags for the document, use the empty array([])
Document tags
POST
https://pdf.ai/api/v1/tags
To update the tags of a document using its docId
Headers
Name
Type
Description
X-API-Key*
string
<API-Key>
Request Body
Name
Type
Description
docId*
string
Document ID obtained after uploading PDF
tags*
array
Tags you want to have for the document e.g., ["Tag1", "Tag2"] To remove the tags use empty array e.g., []
Last updated
Was this helpful?