---
title: "Updates the given publish subscribe record"
method: PUT
path: "/v1/resourceowner/publishsubscribe/{publishSubscribeId}"
tags: ["ResourceOwnerPublishSubscribe"]
---

# Updates the given publish subscribe record

`PUT /v1/resourceowner/publishsubscribe/{publishSubscribeId}`

This will update the given publish subscribe record id with a new model.

## Path parameters

- `publishSubscribeId` integer, required

## Request body

- PublishSubscribeEditModel
  - `PublishToUrl` string
  - `PublishType` 0
  - `VehicleId` integer
  - `AuthenticationType` 0 | 1 | 2 | 3
  - `AuthenticationData` string

## Response `200`

The publish subscribe record was saved

## Other responses

- `400` — Bad request, could occur for a number of cases, see returned message
- `403` — Request is forbidden, could occur for a number of reasons, see returned message
- `404` — Not found, the publish subscribe record you tried to update can't be found
- `500` — Internal server error

---

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