Asset Types

Update an Asset Type

Changed on

OAuth Scope

This endpoint requires the following OAuth scope manage_assets.

post/assettype/{uuid}.json

Request

  • Base URL
    https://api.servicem8.com/api_1.0
  • URL
    https://api.servicem8.com/api_1.0/assettype/{uuid}.json
  • Auth
    • API key in header X-Api-Key
    • or OAuth 2
      Authorization code: https://api.servicem8.com/oauth/authorize
      Token URL: https://api.servicem8.com/oauth/access_token scopes: manage_assets

Path parameters

uuidstring uuid required

UUID of the Asset Type

Request body

uuidstring uuid

Unique identifier for this record

namestring

The name of the asset type. Used to identify different categories of assets that can be tracked in the system. Examples might include 'Air Conditioner', 'Fire Extinguisher', etc.

Example request

{
  "uuid": "123e4567-4fc3-41d5-aea5-23f943d98e7b"
}

Response

Success - The record was updated successfully

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes

    • warning

      removed the request property

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status