---
title: "Apply Policy Suggestions"
method: POST
path: "/api/identity-providers/{idp_id}/apply-policy-suggestions"
tags: ["identity-providers"]
---

# Apply Policy Suggestions

`POST /api/identity-providers/{idp_id}/apply-policy-suggestions`

## Request

- Base URL: `https://www.gateco.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://www.gateco.ai/api/identity-providers/{idp_id}/apply-policy-suggestions`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Apply accepted policy suggestions, creating draft policies from templates.

All created policies are in DRAFT status — this endpoint never auto-activates.
Requires Team or above plan (policy_studio feature).

## Path parameters

- `idp_id` string, uuid, required

## Request body

- ApplyPolicySuggestionsRequest: Request body for applying accepted policy suggestions.
  - `suggestion_ids` string[], required
  - `suggestions_data` object[], required

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gateco/apis/gateco-api.md) · [All operations](https://skmtc.dev/gateco/apis/gateco-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gateco/apis/gateco-api/revisions/5debaf204950?raw)
