Confirm a serial number a driver added
POST
/asset-exceptions/new-serials/{id}/confirm
const url = 'https://example.com/asset-exceptions/new-serials/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/confirm';const options = { method: 'POST', headers: { cookie: '__Host-bottle.session_token=<__Host-bottle.session_token>', 'Content-Type': 'application/json' }, body: '{"references":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/asset-exceptions/new-serials/019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f/confirm \ --header 'Content-Type: application/json' \ --cookie __Host-bottle.session_token=<__Host-bottle.session_token> \ --data '{ "references": {} }'Changes any details sent, then puts the cylinder in use. Both are on its journey with who did it.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
UUID v7
string format: uuid
Example
019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8fUUID v7
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
references
object
key
additional properties
string
Responses
Section titled “Responses”Confirmed
Media typeapplication/json
object
id
required
UUID v7
string format: uuid
productId
required
UUID v7
string format: uuid
productName
required
string
state
required
Active: in use. review: something about it needs checking. faulty: out of use until repaired. lost: not where it should be. retired: no longer used.
string
condition
required
string | null
holder
required
object
kind
required
string
id
required
UUID v7
string | null format: uuid
name
required
string | null
references
required
Array<object>
object
definitionId
required
UUID v7
string format: uuid
name
required
string
value
required
string
quarantinedAt
required
string | null format: date-time
lastMovedAt
required
string format: date-time
createdAt
required
string format: date-time
journey
required
Array<object>
object
id
required
UUID v7
string format: uuid
kind
required
string
from
required
object
kind
required
string
id
required
UUID v7
string | null format: uuid
name
required
string | null
to
required
object
kind
required
string
id
required
UUID v7
string | null format: uuid
name
required
string | null
condition
required
string | null
state
required
Active: in use. review: something about it needs checking. faulty: out of use until repaired. lost: not where it should be. retired: no longer used.
string | null
references
required
Array<object>
object
definitionId
required
UUID v7
string format: uuid
name
required
string
value
required
string
orderId
required
UUID v7
string | null format: uuid
byName
required
string | null
note
required
string | null
at
required
string format: date-time
referenceHistory
required
Array<object>
object
definitionId
required
UUID v7
string format: uuid
name
required
string
value
required
string
from
required
string format: date-time
to
required
string | null format: date-time
Example
{ "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "productId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "state": "active", "condition": "full", "holder": { "kind": "place", "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "references": [ { "definitionId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ], "journey": [ { "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f", "kind": "registered", "from": { "kind": "place", "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "to": { "kind": "place", "id": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" }, "condition": "full", "state": "active", "references": [ { "definitionId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ], "orderId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ], "referenceHistory": [ { "definitionId": "019205d1-6e7a-7c3b-9f6e-3a2b1c0d9e8f" } ]}Not signed in
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not an owner or admin, missing scope, or the plan does not open Assets
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Not found, already dealt with, or another business’s
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Assets is switched off, the item changed meanwhile, or a work report needs a signature the office cannot add
Media typeapplication/json
object
error
required
string
message
required
string
Example
{ "error": "not_found", "message": "Customer not found"}Validation failed
Media typeapplication/json
object
error
required
string
message
required
string
issues
required
Array<object>
object
path
required
string
message
required
string
Example
{ "error": "validation", "issues": [ { "path": "email", "message": "Invalid email" } ]}