---
title: "Assign storage policy"
method: POST
path: "/storage_policy_assignments"
tags: ["Standard and Zones Storage Policy Assignments"]
---

# Assign storage policy

`POST /storage_policy_assignments`

Creates a storage policy assignment for an enterprise or user.

## Request body

- object
  - `storage_policy` object, required — The storage policy to assign to the user or enterprise.
    - `type` 'storage_policy', required — The type to assign.
    - `id` string, required — The ID of the storage policy to assign.
  - `assigned_to` object, required — The user or enterprise to assign the storage policy to.
    - `type` 'user' | 'enterprise', required — The type to assign the policy to.
    - `id` string, required — The ID of the user or enterprise.

## Response `200`

Returns the new storage policy assignment created.

- StoragePolicyAssignment — The assignment of a storage policy to a user or enterprise.
  - `id` string, required — The unique identifier for a storage policy assignment.
  - `type` 'storage_policy_assignment', required — The value will always be `storage_policy_assignment`.
  - `storage_policy` object — The assigned storage policy.
    - `id` string, required — The unique identifier for this storage policy.
    - `type` 'storage_policy', required — The value will always be `storage_policy`.
  - `assigned_to` object — The enterprise or use the policy is assigned to.
    - `id` string — The unique identifier for this object.
    - `type` string — The type for this object.

## Other responses

- `default` — An unexpected client error.

---

[API](https://skmtc.net/box/apis/platform-api.md) · [All operations](https://skmtc.net/box/apis/platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/box/platform-api/versions/ba8f087e1a4d/schema)
