---
title: "Update a Preprints Institutional Affilation"
method: PUT
path: "/preprints/{preprint_id}/relationships/institutions/"
tags: ["Preprints"]
---

# Update a Preprints Institutional Affilation

`PUT /preprints/{preprint_id}/relationships/institutions/`

Updates an institution affilation to a Preprint, effectively creating or removing a relationship between the Preprint and that user's affilation to the Preprint.
#### Required
A relationship object with a `data` key, containing the `institutions` type and valid institution ID is required.
All attributes describing the relationship between the Preprint and the institution are optional.
#### Returns
Returns a JSON object with a `data` key containing the representation of the new institution, if the request is successful.
If the request is unsuccessful, an `errors` key containing information about the failure will be returned. Refer to the [list of error codes](#tag/Errors-and-Error-Codes) to understand why this request may have failed.

## Path parameters

- `preprint_id` string, required

## Request body

- object

## Response `201`

Success

---

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