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

# Assign a Property

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

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.net/chariot-giving/apis/specs.md) · [All operations](https://skmtc.net/chariot-giving/apis/specs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/chariot-giving/specs/revisions/8446023e02fb/schema)
