{
"type": "object",
"properties": {
"PCID": {
"type": "string",
"description": "Pink Connect ID for the authenticated connection"
},
"id": {
"type": "string",
"description": "The unique identifier of an asset. This ID is system-generated."
},
"code": {
"type": "string",
"description": "The user-defined unique identifier of an asset. This ID is user-generated."
},
"created_at": {
"type": "string",
"description": "The date created timestamp of an asset."
},
"fields": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of an asset field."
},
"string_value": {
"type": "string",
"description": "The string value of an asset field. This attribute is only used for asset fields using the FIELD_VALUE_TYPE_STRING type."
},
"money_value": {
"type": "object",
"description": "The money value of an asset field. This attribute is only used for asset fields using the FIELD_VALUE_TYPE_MONEY type."
},
"timestamp_value": {
"type": "string",
"format": "date-time",
"description": "The timestamp value of an asset field. This attribute is only used for asset fields using the FIELD_VALUE_TYPE_TIMESTAMP type."
},
"field_id": {
"type": "string",
"description": "The unique identifier of an asset field. This ID is system-generated."
}
}
},
"description": "The associated fields of an asset contained in an array. Each asset's fields are based on its asset type. Please make sure the asset fields you use associated with the specified asset type. You can retrieve the associated fields using the list type and field association endpoint."
},
"inspected_at": {
"type": "string",
"description": "The date last modified inspection of an asset."
},
"media": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "The id value"
},
"token": {
"type": "string",
"description": "The token value"
},
"filename": {
"type": "string",
"description": "full file name, including file extension"
},
"media_type": {
"type": "string",
"enum": [
"MEDIA_TYPE_IMAGE",
"MEDIA_TYPE_VIDEO",
"MEDIA_TYPE_PDF",
"MEDIA_TYPE_DOCX",
"MEDIA_TYPE_XLSX"
],
"description": "- MEDIA_TYPE_IMAGE: An image file (GIF, JPG, PNG, WEBP). - MEDIA_TYPE_VIDEO: A video file (MP4, MOV). - MEDIA_TYPE_PDF: A PDF document. - MEDIA_TYPE_DOCX: A Microsoft Word document (DOCX, DOC). - MEDIA_TYPE_XLSX: A Microsoft Excel spreadsheet (XLSX, XLS)."
}
}
},
"description": "All the media directly uploaded to an asset."
},
"modified_at": {
"type": "string",
"description": "The date last modified timetstamp of an asset."
},
"profile_image": {
"type": "object",
"description": "The profile image for an asset. If an asset doesn't have a profile picture, the API will return nil.",
"properties": {
"id": {
"type": "string",
"description": "The id value"
},
"token": {
"type": "string",
"description": "The token value"
},
"filename": {
"type": "string",
"description": "full file name, including file extension"
},
"media_type": {
"type": "string",
"description": "- MEDIA_TYPE_IMAGE: An image file (GIF, JPG, PNG, WEBP). - MEDIA_TYPE_VIDEO: A video file (MP4, MOV). - MEDIA_TYPE_PDF: A PDF document. - MEDIA_TYPE_DOCX: A Microsoft Word document (DOCX, DOC). - MEDIA_TYPE_XLSX: A Microsoft Excel spreadsheet (XLSX, XLS).",
"enum": [
"MEDIA_TYPE_IMAGE",
"MEDIA_TYPE_VIDEO",
"MEDIA_TYPE_PDF",
"MEDIA_TYPE_DOCX",
"MEDIA_TYPE_XLSX"
]
}
}
},
"site": {
"type": "object",
"description": "The assigned site of an asset as object. If an asset is not assigned to a site, the API will return nil.",
"properties": {
"id": {
"type": "string",
"description": "The unique identifier of a site. This ID is system-generated."
},
"name": {
"type": "string",
"description": "The name of a site."
}
}
},
"sourced_from_external_system": {
"type": "boolean",
"description": "@deprecated. Use GetAsset API to get the sourced_from_external_system Indicates if an asset is sourced from an external system."
},
"state": {
"type": "string",
"description": "The indicator for whether an asset is active or archived.",
"enum": [
"ASSET_STATE_UNSPECIFIED",
"ASSET_STATE_ACTIVE",
"ASSET_STATE_ARCHIVED"
]
},
"type": {
"type": "object",
"description": "The asset type of an asset.",
"properties": {
"name": {
"type": "string",
"description": "Name of the type."
},
"type_id": {
"type": "string",
"description": "The global unique identifier of the type."
},
"type": {
"type": "string",
"description": "The categery of type, either predefined or custom",
"enum": [
"TYPE_CATEGORY_UNSPECIFIED",
"TYPE_CATEGORY_PREDEFINED",
"TYPE_CATEGORY_CUSTOM"
]
}
}
}
},
"required": [
"PCID",
"id"
]
}