---
title: "Modify subscription's custom attributes"
method: PUT
path: "/customers/{customerId}/subscriptions/{subscriptionId}/custom-attributes"
tags: ["Subscriptions"]
---

# Modify subscription's custom attributes

`PUT /customers/{customerId}/subscriptions/{subscriptionId}/custom-attributes`

Updates subscription contract's custom attributes.

If a custom attribute with the same key already exists, it will be updated.
To delete an existing value, set it to null.

## Path parameters

- `customerId` string, required
- `subscriptionId` string, required

## Request body

- object
  - `customAttributes` CustomAttributeShopify[]
    - `key` string — Key
    - `value` string — Value

## Response `204`

Custom attributes updated

## Other responses

- `400` — Validation error
- `401` — You do not have permission

---

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