---
title: "Set Custom Agreement Templates"
method: PUT
path: "/admin/subscriptions/terms/{subscription_term_id}/custom-templates"
tags: ["admin", "subscriptions"]
---

# Set Custom Agreement Templates

`PUT /admin/subscriptions/terms/{subscription_term_id}/custom-templates`

## Request

- Base URL: `https://api.trytrata.com`
- URL: `https://api.trytrata.com/admin/subscriptions/terms/{subscription_term_id}/custom-templates`
- Auth: HTTP bearer

## Path parameters

- `subscription_term_id` string, uuid, required

## Request body

- SetCustomAgreementTemplatesRequest
  - `subscription_agreement_pdf_bytes` string, binary, nullable
  - `r_and_d_pdf_bytes` string, binary, nullable
  - `clear_subscription_template` boolean
  - `clear_r_and_d_template` boolean

## Response `200`

Successful Response

- CustomAgreementTemplatesResponse
  - `custom_subscription_template_s3_key` string, nullable, required
  - `custom_r_and_d_template_s3_key` string, nullable, required

## Other responses

- `404`: Not found
- `422`: Validation Error

---

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