Create an asset

post

/services/rest/connect/v1.4/assets

Request

Body ()
The product or service associated with an organization's customers.
Root Schema : assets
Type: object
The product or service associated with an organization's customers.
Show Source
Nested Schema : assets-price
Type: object
The monetary value that consists of currency, exchange rate, and value.
Show Source
Nested Schema : assets-sLAInstances
Type: object
The instance of a Service Level Agreement (SLA). An instance is created when a SLA is associated with a contact or organization.
Show Source
Nested Schema : assets-statusWithType
Type: object
The current status and associated status type of an asset.
Show Source
Nested Schema : namedIDs-assets-price-currency
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-price-exchangeRate
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-sLAInstances-nameOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-sLAInstances-stateOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-statusWithType-status
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-statusWithType-statusType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Back to Top

Response

Default Response

Body ()
Root Schema : assets
Type: object
The product or service associated with an organization's customers.
Show Source
Nested Schema : assets-price
Type: object
The monetary value that consists of currency, exchange rate, and value.
Show Source
Nested Schema : assets-sLAInstances
Type: object
The instance of a Service Level Agreement (SLA). An instance is created when a SLA is associated with a contact or organization.
Show Source
Nested Schema : assets-statusWithType
Type: object
The current status and associated status type of an asset.
Show Source
Nested Schema : namedIDs-assets-price-currency
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-price-exchangeRate
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-sLAInstances-nameOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-sLAInstances-stateOfSLA
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-statusWithType-status
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Nested Schema : namedIDs-assets-statusWithType-statusType
Type: object
An ID which has an associated name string. These IDs can be set by either value or name. If the name cannot uniquely determine the value, an error is generated.
Show Source
Back to Top

Examples

Use POST with the following syntax to create a new asset object:

https://your_site_interface/services/rest/connect/version/assets

Request URI example

https://mysite.example.com/services/rest/connect/v1.4/assets

Request body example

{
"name": "Blizzard",
"product": [
    {
        "lookupName": "Blizzard"
    }
    ],
"serialNumber": "SN0002"
}

Note:

The name and product ID or LookupName fields are required for assets.

Response body example

{
  "id": 3,
  "lookupName": "Blizzard",
  "contact": null,
  "customFields": {},
  "description": null,
  "installedDate": null,
  "name": "Blizzard",
  "organization": null,
  "price": {
    "currency": null,
    "exchangeRate": null
  },
  "product": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/salesProducts/4"
      },
      {
        "rel": "canonical",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/salesProducts/4"
      },
      {
        "rel": "describedby",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/salesProducts",
        "mediaType": "application/schema+json"
      }
    ]
  },
  "purchasedDate": null,
  "retiredDate": null,
  "serialNumber": "SN0002",
  "sLAInstances": {
    "links": [
      {
        "rel": "self",
        "href": "https://mysite.example.com/services/rest/connect/v1.4/assets/3/sLAInstances"
      }
    ]
  },
  "statusWithType": null,
  "links": [
    {
      "rel": "self",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/assets/3"
    },
    {
      "rel": "canonical",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/assets/3"
    },
    {
      "rel": "describedby",
      "href": "https://mysite.example.com/services/rest/connect/v1.4/metadata-catalog/assets",
      "mediaType": "application/schema+json"
    }
  ]
}
Back to Top