---
title: "Update a specific relationship type"
description: "PUT /relationship_types/{relationship_type_id} — Renames a relationship type's variants: send the full set of existing variant ids with new names. Variants cannot be added or removed, and a type cannot switch between symmetrical and directional."
canonical_url: https://developer.onepagecrm.com/api/reference/relationship-types/put-relationship_types-relationship_type_id/
source: Markdown mirror of https://developer.onepagecrm.com/api/reference/relationship-types/put-relationship_types-relationship_type_id/
---

`PUT /relationship_types/{relationship_type_id}`

Renames a relationship type's variants: send the full set of existing variant ids with new names. Variants cannot be added or removed, and a type cannot switch between symmetrical and directional.

Resource: [Relationship Types](https://developer.onepagecrm.com/api/reference/relationship-types/) · [API Reference](https://developer.onepagecrm.com/api/reference/)

## Request

```bash
curl -X PUT "https://app.onepagecrm.com/api/v3/relationship_types/{relationship_type_id}" \
  -u $user_id:$api_key \
  -H "Content-Type: application/json" \
  -d '{
    "variants": [
      {
        "id": "5aaa9b059007ba08c9ebaf59",
        "name": "Partner"
      }
    ]
  }'
```

Authentication is HTTP Basic — `user_id` as username, `api_key` as password.
See https://developer.onepagecrm.com/api/authentication/.

## Path parameters

| Name | Type | Description |
| --- | --- | --- |
| `relationship_type_id` | string | Relationship type ID |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `variants` | array<object> |  | The relationship variants. |

## Responses

### 200

OK

```json
{
  "status": 0,
  "message": "OK",
  "timestamp": 1528373119,
  "data": {
    "relationship_type": {
      "id": "5aaa9b059007ba08c9ebaf58",
      "symmetrical": true,
      "relationship_variants": [
        {
          "id": "5aaa9b059007ba08c9ebaf59",
          "name": "Partner"
        }
      ],
      "created_at": "2018-03-15T16:10:45Z",
      "modified_at": "2018-03-15T16:10:45Z"
    }
  }
}
```

Standard error responses: 400, 401, 403, 404, 409, 500 — shared across the API. See https://developer.onepagecrm.com/api/errors/.

## Related guides

- [Authentication](https://developer.onepagecrm.com/api/authentication/)
- [Errors](https://developer.onepagecrm.com/api/errors/)
- [Rate limits](https://developer.onepagecrm.com/api/rate-limits/)
- [Partial updates](https://developer.onepagecrm.com/api/partial-updates/)
