Openapi
Update a customer asset for the specified organization.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
customerAssetId*stringuuidorganizationId*stringuuidThe customer asset payload.
application/jsonassetTag?|length <= 240barcode?|length <= 240condition?string"new""good""fair""poor""unknown"currency?|nullcustomerId*customerIdSchemauuidcustomerLocationId?|uuiddescription?|length <= 4000installedOn?|dateinvoiceId?|uuidproductId*productIdSchemauuidpurchasePrice?|0 <= valuepurchasedOn?|datequoteId?|uuidserialNumber?|length <= 240serviceIntervalDays?|1 <= valuestatus?string"active""inactive""maintenance""retired""archived"warrantyExpiresOn?|datewarrantyProvider?|length <= 240warrantyReference?|length <= 240Returns the updated customer asset.
application/jsonassetTag*string|nullbarcode*string|nullcondition*customerAssetConditionSchema"new""good""fair""poor""unknown"createdAt*stringdate-timecreatedBy*|uuidcurrency*string|nullcustomAttributes*array<>customerId*customerIdSchemauuidcustomerLocation*|nullcustomerLocationId*|uuidcustomerName*string|nulldescription*string|nullfiles*array<>id*customerAssetIdSchemauuidinstalledOn*|dateinvoiceId*|uuidorganizationId*organizationIdSchemauuidproduct*|nullproductId*productIdSchemauuidpurchasePrice*number|nullpurchasedOn*|datequoteId*|uuidserialNumber*string|nullserviceIntervalDays*|1 <= valuestatus*customerAssetStatusSchema"active""inactive""maintenance""retired""archived"tags*array<>updatedAt*stringdate-timeupdatedBy*|uuidwarrantyExpiresOn*|datewarrantyProvider*string|nullwarrantyReference*string|nullcurl -X PATCH 'https://app.localhost/api/v1/organizations/123/customer-assets/123' \ -H 'Content-Type: application/json' \ -d '{ "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113"}'{ "assetTag": "string", "barcode": "string", "condition": "new", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "currency": "string", "customAttributes": [ { "booleanValue": true, "dateValue": "2019-08-24", "numberValue": 0, "textValue": "string", "urlValue": "string", "valueType": "text", "createdAt": "2019-08-24T14:15:22Z", "customerAssetId": "d12281c5-3059-45a8-816e-9d8b79f0d9c8", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "key": "string", "label": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "updatedAt": "2019-08-24T14:15:22Z" } ], "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "customerLocation": { "address": { "city": "string", "country": "string", "line1": "string", "line2": "string", "postalCode": "string", "state": "string" }, "createdAt": "2019-08-24T14:15:22Z", "customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "isPrimary": true, "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "updatedAt": "2019-08-24T14:15:22Z" }, "customerLocationId": "e23db7f4-4bf5-4cf6-a3c2-a1cbbdd0ac91", "customerName": "string", "description": "string", "files": [ { "altText": "string", "byteSize": 1, "contentType": "string", "createdAt": "2019-08-24T14:15:22Z", "createdBy": "25a02396-1048-48f9-bf93-102d2fb7895e", "customerAssetId": "d12281c5-3059-45a8-816e-9d8b79f0d9c8", "fileName": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "updatedAt": "2019-08-24T14:15:22Z", "url": "http://example.com" } ], "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "installedOn": "2019-08-24", "invoiceId": "4f163819-178d-470c-a246-d6768476a6ec", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "product": { "brand": { "createdAt": "2019-08-24T14:15:22Z", "description": "string", "id": "centrakit", "logoUrl": "http://example.com", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "slug": "string", "updatedAt": "2019-08-24T14:15:22Z", "website": "string" }, "categories": [ { "createdAt": "2019-08-24T14:15:22Z", "description": "string", "icon": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "parentId": "70850378-7d3c-4f45-91b7-942d4dfbbd43", "position": 0, "slug": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "categoryIds": [ "7a99018c-b68f-4d32-be08-29a0cbea434a" ], "currency": "string", "defaultSellingPrice": 0, "ean": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "images": [ { "altText": "string", "createdAt": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "updatedAt": "2019-08-24T14:15:22Z", "url": "http://example.com" } ], "manufacturer": "string", "manufacturerPartNumber": "string", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "sku": "string", "slug": "string", "status": "active", "suppliers": [ { "createdAt": "2019-08-24T14:15:22Z", "currency": "string", "externalId": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "isActive": true, "isPreferred": true, "leadTimeDays": 0, "minOrderQuantity": 0, "orderCode": "string", "orderMultiple": 0, "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "supplier": { "accountNumber": "string", "addressCity": "string", "addressCountry": "string", "addressLine1": "string", "addressLine2": "string", "addressPostalCode": "string", "addressState": "string", "billingEmail": "string", "btw": "string", "code": "string", "createdAt": "2019-08-24T14:15:22Z", "currency": "string", "defaultInventoryLocationId": "39ba1a59-f7f9-4e8f-a32f-270329b3f772", "defaultLeadTimeDays": 0, "email": "string", "externalId": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kvk": "string", "name": "string", "notes": "string", "orderingEmail": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "paymentTermsDays": 0, "phone": "string", "source": "string", "status": "active", "updatedAt": "2019-08-24T14:15:22Z", "website": "string" }, "supplierId": "e01eb4c4-8eb9-4fb7-b625-61f58c6148db", "supplierSku": "string", "unitCost": 0, "updatedAt": "2019-08-24T14:15:22Z" } ], "tags": [ { "color": "string", "createdAt": "2019-08-24T14:15:22Z", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "task", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "slug": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "unitOfMeasure": "string", "updatedAt": "2019-08-24T14:15:22Z", "vatPercentage": 0, "stockStatus": "not_tracked" }, "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113", "purchasePrice": 0, "purchasedOn": "2019-08-24", "quoteId": "826e5192-f8c6-4e24-aab3-3910e46c52b7", "serialNumber": "string", "serviceIntervalDays": 1, "status": "active", "tags": [ { "color": "string", "createdAt": "2019-08-24T14:15:22Z", "description": "string", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "task", "name": "string", "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9", "position": 0, "slug": "string", "updatedAt": "2019-08-24T14:15:22Z" } ], "updatedAt": "2019-08-24T14:15:22Z", "updatedBy": "b0efe45f-0520-4e21-90f0-7e35f137732e", "warrantyExpiresOn": "2019-08-24", "warrantyProvider": "string", "warrantyReference": "string"}