Updates an asset owner.
Warning
The HTTP PUT method updates your existing asset owner data. Any fields not included in the request body will be updated to
null
.
Endpoint URL
https://dashboard-api.revnue.com/api/v2/asset-owner
Authentication and rate limits
Item | Details |
---|---|
Authentication method | OAuth 2.0 Bearer token |
Rate limit |
Requests Example
curl --request PUT \
--url 'https://dashboard-api.revnue.com/api/v2/asset-owner/$id \
--header 'Authorization: Bearer $BEARER_TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '$JSON'
Request Syntax
{
"company": integer,
"name": "string",
"email": "string",
"phone": "string"
}
Query Parameters
- id (integer) --
[REQUIRED] The ID of the asset owner.
The id parameter is passed as part of the request url/asset-owner/$id
.
To lookup a specific asset owner ID, see the List Asset Owner API. - company (integer) --
[REQUIRED]
The ID of the specific company your API is calling. For accounts with only one company, the default value is1
.
To lookup a specific company ID, see the List Company API. - name (string) --
[REQUIRED]
The name of the asset owner.
Max characters =50
The name of the asset owner must be unique per account. - email (string) --
The email of the asset owner.
Max characters =254
- phone (string) --
The phone of the asset owner.
Max characters =20
Response Syntax
{
"id": integer,
"name": "string",
"email": "string",
"phone": "string"
}