Skip to main content

Accept a recommended tag.

POST/api/v1/documents/{document_id}/recommended-tags/{recommended_tag_id}/confirmdocuments:write

Records the acceptance as the Recommended Tags card does and puts the tag on the document (a tag already on it is fine). Copy request_token, confidence and rank from the recommendation so the Portal's feedback log can tie them. The tag must be open to you. Needs Submit Tag Recommendation Feedback, Assign Document Tags, View Tags and read access to the document.

Scopedocuments:write
AsynchronousNo
MCP toolconfirm_document_recommended_tag
Portal permissionssubmit_tag_recommendation_feedback, assign_document_tags, view_tags

Parameters​

NameInTypeRequiredDescription
document_idpathstringRequired
recommended_tag_idpathstringRequired
Docwize-Versionheaderstring (date)Optional
Idempotency-KeyheaderstringOptionalmax 255

Request body​

Content typeType
application/jsonRecommendationFeedbackInput

Responses​

StatusDescriptionBody
200Success.application/json RecommendationFeedbackResult
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflict, idempotency_in_progressapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422idempotency_key_reused, validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

RecommendationFeedbackInput​

FieldTypeRequiredDescription
confidencenumber or nullOptionalThe recommendation's confidence.
rankinteger or nullOptionalThe recommendation's rank.
reason_keystring or nullOptionalThe recommendation's reason_key.
request_tokenstring or nullOptionalThe request_token of the recommendation.

RecommendationFeedbackResult​

FieldTypeRequiredDescription
actionstringRequiredaccepted or dismissed.
document_idstringRequired
recommended_tag_idstringRequired