{"components":{"schemas":{"CertificateResponse":{"description":"Certificate information","properties":{"id":{"title":"Id","type":"integer"},"pem":{"title":"Pem","type":"string"},"user_id":{"title":"User Id","type":"string"}},"required":["id","pem","user_id"],"title":"CertificateResponse","type":"object"},"SerialMapResponse":{"additionalProperties":false,"description":"Information returned for a serial map","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"identity":{"additionalProperties":true,"title":"Identity","type":"object"},"match":{"additionalProperties":true,"title":"Match","type":"object"},"serial_fstring":{"title":"Serial Fstring","type":"string"},"weight":{"title":"Weight","type":"integer"}},"required":["id","serial_fstring","match","weight","description","identity"],"title":"SerialMapResponse","type":"object"},"SerialMapTestStatus":{"enum":["passed","failed"],"title":"SerialMapTestStatus","type":"string"},"SerialTrackerResponse":{"additionalProperties":false,"description":"Information returned for a serial tracker","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"next_id":{"title":"Next Id","type":"integer"},"prefix":{"title":"Prefix","type":"string"}},"required":["id","prefix","next_id","description"],"title":"SerialTrackerResponse","type":"object"},"UserResponse":{"properties":{"certificates":{"default":null,"items":{"$ref":"#/components/schemas/CertificateResponse"},"title":"Certificates","type":"array"},"email":{"title":"Email","type":"string"},"id":{"title":"Id","type":"string"},"registration_limit":{"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles"},"veeahubs":{"default":null,"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"title":"Veeahubs","type":"array"}},"required":["id","email","role","registration_limit"],"title":"UserResponse","type":"object"},"UserRoles":{"description":"Role that a user has in the Third Party Manufacturing System","enum":["admin","user"],"title":"UserRoles","type":"string"},"VeeaHubDetails":{"description":"Amount of detail to return for a VeeaHub.","enum":["full","summary","none"],"title":"VeeaHubDetails","type":"string"},"VeeaHubMrec":{"description":"VeeaHub MREC information","properties":{"cms":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Cms"},"results":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Results"},"veeahub":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Veeahub"}},"title":"VeeaHubMrec","type":"object"},"VeeaHubRegistrationResponse":{"description":"VeeaHub registration information","properties":{"certificate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certificate"},"cms":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cms"},"digest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Digest"}},"required":["cms","certificate","digest"],"title":"VeeaHubRegistrationResponse","type":"object"},"VeeaHubResponse":{"description":"VeeaHub information","properties":{"hardware":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Hardware","type":"object"},"identity":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Identity","type":"object"},"mrec":{"anyOf":[{"$ref":"#/components/schemas/VeeaHubMrec"},{"type":"null"}],"default":null},"registration":{"$ref":"#/components/schemas/VeeaHubRegistrationResponse","default":null},"serial_number":{"title":"Serial Number","type":"string"}},"required":["serial_number"],"title":"VeeaHubResponse","type":"object"}}},"info":{"title":"Veea Third-party Hardware Manufacturing API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/":{"get":{"description":"","operationId":"get_homepage","parameters":[],"responses":{},"summary":"This returns the welcome page for humans, rather than a JSON API.","tags":["General"]}},"/index.html":{"get":{"description":"","operationId":"get_homepage","parameters":[],"responses":{},"summary":"This returns the welcome page for humans, rather than a JSON API.","tags":["General"]}},"/v1/serial_maps":{"get":{"description":"","operationId":"get_serial_maps","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SerialMapResponse"},"type":"array"}}},"description":""}},"summary":"This returns the list of the serial number maps","tags":["Serial number mapping"]},"post":{"description":"","operationId":"post_create_serial_map","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Parameters passed when creating a new serial map","properties":{"description":{"title":"Description","type":"string"},"identity":{"additionalProperties":true,"title":"Identity","type":"object"},"match":{"additionalProperties":true,"title":"Match","type":"object"},"serial_fstring":{"title":"Serial Fstring","type":"string"},"weight":{"exclusiveMaximum":100000000,"minimum":0,"title":"Weight","type":"integer"}},"required":["description","serial_fstring","match","weight","identity"],"title":"SerialMapCreate","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial map","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"identity":{"additionalProperties":true,"title":"Identity","type":"object"},"match":{"additionalProperties":true,"title":"Match","type":"object"},"serial_fstring":{"title":"Serial Fstring","type":"string"},"weight":{"title":"Weight","type":"integer"}},"required":["id","serial_fstring","match","weight","description","identity"],"title":"SerialMapResponse","type":"object"}}},"description":"Information returned for a serial map"}},"summary":"This returns the list of the serial number maps","tags":["Serial number mapping"]}},"/v1/serial_maps/{map_id}":{"delete":{"description":"","operationId":"delete_serial_map_by_id","parameters":[{"in":"path","name":"map_id","required":true,"schema":{"type":"integer"}}],"responses":{},"summary":"This deletes a serial number map","tags":["Serial number mapping"]},"get":{"description":"","operationId":"get_serial_map","parameters":[{"in":"path","name":"map_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial map","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"identity":{"additionalProperties":true,"title":"Identity","type":"object"},"match":{"additionalProperties":true,"title":"Match","type":"object"},"serial_fstring":{"title":"Serial Fstring","type":"string"},"weight":{"title":"Weight","type":"integer"}},"required":["id","serial_fstring","match","weight","description","identity"],"title":"SerialMapResponse","type":"object"}}},"description":"Information returned for a serial map"}},"summary":"This returns a serial number maps","tags":["Serial number mapping"]},"patch":{"description":"","operationId":"patch_update_serial_map","parameters":[{"in":"path","name":"map_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Parameters passed when updating a new serial map. Unlike SerialMapCreate, all are optional.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Description"},"identity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Identity"},"match":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Match"},"serial_fstring":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Serial Fstring"},"weight":{"anyOf":[{"exclusiveMaximum":100000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Weight"}},"title":"SerialMapPatch","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial map","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"identity":{"additionalProperties":true,"title":"Identity","type":"object"},"match":{"additionalProperties":true,"title":"Match","type":"object"},"serial_fstring":{"title":"Serial Fstring","type":"string"},"weight":{"title":"Weight","type":"integer"}},"required":["id","serial_fstring","match","weight","description","identity"],"title":"SerialMapResponse","type":"object"}}},"description":"Information returned for a serial map"}},"summary":"This updates the serial number map","tags":["Serial number mapping"]}},"/v1/serial_maps/{map_id}/test":{"post":{"description":"The client provides the hardware map as if from a VeeaHub's TPMS registration data to exercise\nthe serial number mapping.","operationId":"post_serial_map_test","parameters":[{"in":"path","name":"map_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Response when testing a serial map","properties":{"details":{"title":"Details","type":"string"},"status":{"$ref":"#/components/schemas/SerialMapTestStatus"}},"required":["status","details"],"title":"SerialMapTestResponse","type":"object"}}},"description":"Response when testing a serial map"}},"summary":"This tests a serial number map.","tags":["Serial number mapping"]}},"/v1/serial_trackers":{"get":{"description":"","operationId":"get_serial_trackers","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SerialTrackerResponse"},"type":"array"}}},"description":""}},"summary":"This returns the list of the serial trackers","tags":["Serial number tracking"]},"post":{"description":"","operationId":"post_create_serial_tracker","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Parameters passed when creating a new serial number tracker","properties":{"description":{"title":"Description","type":"string"},"next_id":{"exclusiveMaximum":100000000,"minimum":0,"title":"Next Id","type":"integer"},"prefix":{"maxLength":3,"minLength":3,"title":"Prefix","type":"string"}},"required":["description","next_id","prefix"],"title":"SerialTrackerCreate","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial tracker","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"next_id":{"title":"Next Id","type":"integer"},"prefix":{"title":"Prefix","type":"string"}},"required":["id","prefix","next_id","description"],"title":"SerialTrackerResponse","type":"object"}}},"description":"Information returned for a serial tracker"}},"summary":"This creates a serial number tracker","tags":["Serial number tracking"]}},"/v1/serial_trackers/{tracker_id}":{"delete":{"description":"","operationId":"delete_serial_tracker_by_id","parameters":[{"in":"path","name":"tracker_id","required":true,"schema":{"type":"integer"}}],"responses":{},"summary":"This deletes a serial number tracker","tags":["Serial number tracking"]},"get":{"description":"","operationId":"get_serial_tracker","parameters":[{"in":"path","name":"tracker_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial tracker","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"next_id":{"title":"Next Id","type":"integer"},"prefix":{"title":"Prefix","type":"string"}},"required":["id","prefix","next_id","description"],"title":"SerialTrackerResponse","type":"object"}}},"description":"Information returned for a serial tracker"}},"summary":"This returns a serial number tracker","tags":["Serial number tracking"]},"patch":{"description":"","operationId":"patch_update_serial_tracker","parameters":[{"in":"path","name":"tracker_id","required":true,"schema":{"type":"integer"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Parameters passed when updating a new serial tracker. Unlike SerialTrackerCreate, all are optional.","properties":{"description":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Description"},"next_id":{"anyOf":[{"exclusiveMaximum":100000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Next Id"}},"title":"SerialTrackerPatch","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Information returned for a serial tracker","properties":{"description":{"title":"Description","type":"string"},"id":{"title":"Id","type":"integer"},"next_id":{"title":"Next Id","type":"integer"},"prefix":{"title":"Prefix","type":"string"}},"required":["id","prefix","next_id","description"],"title":"SerialTrackerResponse","type":"object"}}},"description":"Information returned for a serial tracker"}},"summary":"This updates the serial number tracker","tags":["Serial number tracking"]}},"/v1/users":{"get":{"description":"This is restricted to administrators only.","operationId":"get_users","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array"}}},"description":""}},"summary":"This lists all users","tags":["Users"]}},"/v1/users/{cert_id}":{"delete":{"description":"Any user can delete their own certificates.  Deleting certificates for other users is\nrestricted to administators only.","operationId":"delete_certificate_from_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"cert_id","required":true,"schema":{"type":"integer"}}],"responses":{},"summary":"This deletes the indicated mTLS certificates from a user.","tags":["Users"]},"get":{"description":"Any user can request their own certificates.  Access to certificates for other users is\nrestricted to administators only.","operationId":"get_certificate_for_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"in":"path","name":"cert_id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Certificate information","properties":{"id":{"title":"Id","type":"integer"},"pem":{"title":"Pem","type":"string"},"user_id":{"title":"User Id","type":"string"}},"required":["id","pem","user_id"],"title":"CertificateResponse","type":"object"}}},"description":"Certificate information"}},"summary":"This returns the indicated mTLS certificates for a user.","tags":["Users"]}},"/v1/users/{user_id}":{"get":{"description":"Any user can request their own information.  Information on other users is restricted to\nadministrators only.","operationId":"get_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"certificates":{"default":null,"items":{"$ref":"#/components/schemas/CertificateResponse"},"title":"Certificates","type":"array"},"email":{"title":"Email","type":"string"},"id":{"title":"Id","type":"string"},"registration_limit":{"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles"},"veeahubs":{"default":null,"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"title":"Veeahubs","type":"array"}},"required":["id","email","role","registration_limit"],"title":"UserResponse","type":"object"}}},"description":""}},"summary":"This returns the user account information","tags":["Users"]},"patch":{"description":"This is restricted to administators only.","operationId":"patch_update_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Permitted parameters when modifying a user","properties":{"registration_limit":{"anyOf":[{"exclusiveMaximum":1000000,"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Registration Limit"},"role":{"anyOf":[{"$ref":"#/components/schemas/UserRoles"},{"type":"null"}],"default":null}},"title":"UserPatch","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"certificates":{"default":null,"items":{"$ref":"#/components/schemas/CertificateResponse"},"title":"Certificates","type":"array"},"email":{"title":"Email","type":"string"},"id":{"title":"Id","type":"string"},"registration_limit":{"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles"},"veeahubs":{"default":null,"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"title":"Veeahubs","type":"array"}},"required":["id","email","role","registration_limit"],"title":"UserResponse","type":"object"}}},"description":""}},"summary":"This updates a user account.","tags":["Users"]},"put":{"description":"This is restricted to administrators only.","operationId":"put_new_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"description":"Required parameters when creating a user","properties":{"email":{"title":"Email","type":"string"},"registration_limit":{"default":5,"exclusiveMaximum":1000000,"minimum":0,"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles","default":"user"}},"required":["email"],"title":"UserCreate","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"certificates":{"default":null,"items":{"$ref":"#/components/schemas/CertificateResponse"},"title":"Certificates","type":"array"},"email":{"title":"Email","type":"string"},"id":{"title":"Id","type":"string"},"registration_limit":{"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles"},"veeahubs":{"default":null,"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"title":"Veeahubs","type":"array"}},"required":["id","email","role","registration_limit"],"title":"UserResponse","type":"object"}}},"description":""}},"summary":"This creates a new user account.","tags":["Users"]}},"/v1/users/{user_id}/certificates":{"get":{"description":"Any user can request their own certificates.  Access to certificates for other users is\nrestricted to administators only.","operationId":"get_certificates_for_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CertificateResponse"},"type":"array"}}},"description":""}},"summary":"This returns the list of mTLS certificates for a user.","tags":["Users"]},"post":{"description":"Any user can add an mTLS certificate to their own account.  Adding certificates to other users is\nrestricted to administators only.","operationId":"post_create_certificate_for_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"pem":{"title":"Pem","type":"string"}},"required":["pem"],"title":"CertificatePem","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"Certificate information","properties":{"id":{"title":"Id","type":"integer"},"pem":{"title":"Pem","type":"string"},"user_id":{"title":"User Id","type":"string"}},"required":["id","pem","user_id"],"title":"CertificateResponse","type":"object"}}},"description":"Certificate information"}},"summary":"This adds an mTLS certificate to a user account.","tags":["Users"]}},"/v1/users/{user_id}/veeahubs":{"get":{"description":"Any user can list their own VeeaHubs.  Listing VeeaHubs for other users is restricted to\nadministators only.","operationId":"get_veeahubs_for_user","parameters":[{"in":"path","name":"user_id","required":true,"schema":{"type":"string"}},{"description":"Serial number filter with '*' wildcard support","in":"query","name":"serial","schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Serial"}},{"description":"Level of detail returned in VeeaHub query","in":"query","name":"details","schema":{"$ref":"#/components/schemas/VeeaHubDetails","default":"none"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"type":"array"}}},"description":""}},"summary":"This returns the list of VeeaHubs registered by a user.","tags":["Users"]}},"/v1/veeahubs":{"get":{"description":"A user can see all VeeaHubs that they have registered.  Only administrators can see VeeaHubs\nthat have been registered by other users.","operationId":"get_veeahubs","parameters":[{"description":"Serial number filter with '*' wildcard support","in":"query","name":"serial","schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Serial"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"type":"array"}}},"description":""}},"summary":"This returns all the VeeaHubs that the user is has visibility of.","tags":["VeeaHubs"]},"post":{"description":"You need to provide the Third Party Hardware information that has been signed by the VeeaHub.","operationId":"post_create_veeahub","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"cms":{"title":"Cms","type":"string"}},"required":["cms"],"title":"TPMSHardwareRegistration","type":"object"}}}},"responses":{"200":{"content":{"application/json":{"schema":{"description":"VeeaHub information","properties":{"hardware":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Hardware","type":"object"},"identity":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Identity","type":"object"},"mrec":{"anyOf":[{"$ref":"#/components/schemas/VeeaHubMrec"},{"type":"null"}],"default":null},"registration":{"$ref":"#/components/schemas/VeeaHubRegistrationResponse","default":null},"serial_number":{"title":"Serial Number","type":"string"}},"required":["serial_number"],"title":"VeeaHubResponse","type":"object"}}},"description":"VeeaHub information"}},"summary":"This registers the new hardware as a VeeaHub.","tags":["VeeaHubs"]}},"/v1/veeahubs/{serial}":{"get":{"description":"A user can see all VeeaHubs that they have registered.  Only administrators can see VeeaHubs\nthat have been registered by other users.","operationId":"get_veeahub","parameters":[{"in":"path","name":"serial","required":true,"schema":{"type":"string"}},{"in":"query","name":"details","schema":{"$ref":"#/components/schemas/VeeaHubDetails","default":"full"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"VeeaHub information","properties":{"hardware":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Hardware","type":"object"},"identity":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"default":null,"title":"Identity","type":"object"},"mrec":{"anyOf":[{"$ref":"#/components/schemas/VeeaHubMrec"},{"type":"null"}],"default":null},"registration":{"$ref":"#/components/schemas/VeeaHubRegistrationResponse","default":null},"serial_number":{"title":"Serial Number","type":"string"}},"required":["serial_number"],"title":"VeeaHubResponse","type":"object"}}},"description":"VeeaHub information"}},"summary":"This returns a VeeaHub by serial number.","tags":["VeeaHubs"]}},"/v1/veeahubs/{serial}/mrec":{"get":{"description":"Any user can retrieve the MRECs from their own VeeaHubs.  Retrieving an MREC for a VeeaHub\nregistered by another user is restricted to administrators.","operationId":"get_veeahub_mrec","parameters":[{"in":"path","name":"serial","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"mrec":{"default":"","title":"Mrec","type":"string"}},"title":"VeeaHubMrec","type":"object"}}},"description":""}},"summary":"This returns the MREC for a VeeaHub.","tags":["VeeaHubs"]},"put":{"description":"Any user can upload MRECs for their own VeeaHubs.  Uploading MRECs for VeeaHubs registerd to\nother users is restricted to administrators.\n\nNote that once successfully uploaded, the MREC cannot be updated.  The MREC must be deleted\nbefore it can be uploaded again.","operationId":"put_new_veeahub_mrec","parameters":[{"in":"path","name":"serial","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"mrec":{"default":"","title":"Mrec","type":"string"}},"title":"VeeaHubMrec","type":"object"}}}},"responses":{},"summary":"This uploads an MREC for a VeeaHub.","tags":["VeeaHubs"]}},"/v1/whoami":{"get":{"description":"","operationId":"get_whoami","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"certificates":{"default":null,"items":{"$ref":"#/components/schemas/CertificateResponse"},"title":"Certificates","type":"array"},"email":{"title":"Email","type":"string"},"id":{"title":"Id","type":"string"},"registration_limit":{"title":"Registration Limit","type":"integer"},"role":{"$ref":"#/components/schemas/UserRoles"},"veeahubs":{"default":null,"items":{"$ref":"#/components/schemas/VeeaHubResponse"},"title":"Veeahubs","type":"array"}},"required":["id","email","role","registration_limit"],"title":"UserResponse","type":"object"}}},"description":""}},"summary":"This returns the user account information for the client","tags":["Users"]}}}}
