---
title: "Assign a Property"
method: POST
path: "/v1/properties/{id}/assign"
tags: ["properties"]
---

# Assign a Property

`POST /v1/properties/{id}/assign`

## Request

- Base URL: `https://sandboxapi.givechariot.com`
- URL: `https://sandboxapi.givechariot.com/v1/properties/{id}/assign`
- Auth: HTTP bearer

Appends a Property to one or more Donations or Deposits.
A maximum of 100 resources can be assigned to a property at a time.
The resource identifiers must be of the same resource_type as the Property, otherwise a 400 Bad Request error will be returned.

## Path parameters

- `id` string, required

## Request body

- object
  - `value` PropertyValue, required
    - `type` 'text' | 'enum' | 'user' | 'boolean' | 'date', required: The data type of a property.
    - `text_value` string: The text value of the property.
    - `enum_value_id` string: The unique identifier for the enum value.
    - `user_value_id` string: The unique identifier for the user.
    - `boolean_value` boolean: The boolean value of the property.
    - `date_value` string, date-time: The date value of the property.
    - `empty` boolean: Whether the property value is empty. Can use this to unset property values when assigning a property.
  - `resources` object, required
    - `ids` string[], required

## Response `200`

The response for Properties.assign

- object
  - `num_updated` integer: The number of resources that were updated.

## Other responses

- `400`: The request is invalid or contains invalid parameters
- `401`: Unauthorized. The request is missing the security (OAuth2 Bearer token) requirements and the server is unable to verify the identify of the caller.
- `403`: Access denied
- `404`: Resource Not Found
- `500`: Internal Server Error

---

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