**Source URL:** https://limited.veevavault.dev/sitevault/vault-api/api-reference/24.2/sandbox-vaults/set-sandbox-entitlements.md

# Set Sandbox Entitlements



Set new sandbox entitlements, including granting and revoking allowances, for the given sandbox `name`.

<Endpoint path="/api/{version}/objects/sandbox/entitlements/set" method="POST"></Endpoint>

## Headers {#headers}

<FieldTable>
| Name | Description |
| --- | --- |
| `Accept` | `application/json` (default) or `application/xml` |
| `Content-Type` | `application/x-www-form-urlencoded` |
</FieldTable>

## Body Parameters {#body-parameters}

## Request {#request}

<CodeExample title="">
```
curl -X POST -H "Authorization: {SESSION_ID}" \
'https://myvault.veevavault.com/api/v20.3/objects/sandbox/entitlements/set' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'name=VeePharm Sandbox' \
-d 'size=Small' \
-d 'allowance=1' \
-d 'grant=true'

```
</CodeExample>

## Response {#response}

<CodeExample title="">
```
{
    "responseStatus": "SUCCESS",
    "data": {
        "entitlements": [
            {
                "size": "Small",
                "available": 2,
                "allowed": 4,
                "temporary": 0
            },
            {
                "size": "Large",
                "available": 2,
                "allowed": 2,
                "temporary": 0
            },
            {
                "size": "Full",
                "available": 0,
                "allowed": 1,
                "temporary": 0
            }
        ]
    }
}

```
</CodeExample>

---

**Previous:** [Change Sandbox Size](/sitevault/vault-api/api-reference/24.2/sandbox-vaults/change-sandbox-size)  
**Next:** [Create or Refresh Sandbox](/sitevault/vault-api/api-reference/24.2/sandbox-vaults/create-or-refresh-sandbox)