---
title: "POST Confirms a fleet policy and uploads attachments."
description: "Handles the confirmation of a fleet policy, including uploading image attachments to S3 and updating the policy result in the database. Supports updating existing results or creating new ones."
last_updated: "2026-05-06T07:33:58.499842+00:00"
canonical_url: "https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/api/fleet-policies/confirmfleetpolicy"
---

<APIEndpoint
  method={"POST"}
  path={"/api/confirm-fleet-policy"}
  summary={"Confirms a fleet policy and uploads attachments."}
  description={"Handles the confirmation of a fleet policy, including uploading image attachments to S3 and updating the policy result in the database. Supports updating existing results or creating new ones."}
  deprecated={false}
  baseUrl={""}
/>

## Request Body

Form data containing policy ID, policy name, organization ID, and image files.

<APIRequestBody
  contentType={"multipart/form-data"}
  required={true}
  schema={{"type":"object"}}
/>

## Responses

<APIResponse
  statusCode={"200"}
  description={"Policy confirmed and attachments uploaded successfully."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"400"}
  description={"Invalid input (e.g., missing organizationId, invalid policyId, or non-image files)."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"401"}
  description={"Unauthorized. User session not found."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"403"}
  description={"Forbidden. User is not a valid member of the organization."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

<APIResponse
  statusCode={"500"}
  description={"Server-side error (e.g., S3 not configured, failed to upload files, or failed to save policy result)."}
  contentType={"application/json"}
  schema={{"type":"object"}}
/>

## Try It

<APIPlayground
  method={"POST"}
  path={"/api/confirm-fleet-policy"}
  parameters={[]}
  requestBody={{"contentType":"multipart/form-data","required":true,"description":"Form data containing policy ID, policy name, organization ID, and image files.","schema":{"type":"object"}}}
  baseUrl={""}
/>


## Sitemap

See the full [sitemap](https://www.doc0.dev/docs/49c89830-117b-4def-8edc-b5bcc50766e0/llms.txt) for all pages in this wiki.
