Get attachments
Returns a list of attachments
Query Parameters
Attachments related to a given report.
Match pattern:^[A-Za-z0-9-]{1,120}$
Default:non-existing-id-for-no-results
>= 1 characters<= 120 characters
Response
application/json
Response
Ok
Inspection attachment: photo, signature, document, comment.
name would be used as file name if enclosure is uploaded.
>= 0 items<= 100 items
Show Child Parameters
Creates a new attachment
Creates a new attachment of allowed types.
Field authorType is provided by client and designates a role of author created an attachment.
authorId and authorName are taken from profile of an authenticated user at the moment when attachment is created.
When uploading an enclosure, the following headers should match POSTed data:
- Content-Disposition: attachment: filename=“attachment.name”
- Content-Type: attachment.enclosure.contentType
- Content-Length: attachment.enclosure.contentLength
- otherwise 403 Forbidden is returned.
Headers
Carries an idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Must include quotes.
Match pattern:^"[a-z0-9-]+"$
>= 1 characters<= 120 characters
Body
application/json
Body
Attachment
Inspection attachment: photo, signature, document, comment.
name would be used as file name if enclosure is uploaded.
Name of an attachment.
Match pattern:^[^\n]+$
>= 1 characters<= 120 characters
Attachment details
Match pattern:^[^\n]*$
>= 0 characters<= 2000 characters
Related media, typically photo or document, potentially large and thus requiring separate upload facility
Show Child Parameters
Person that created an attachment
Show Child Parameters
Type of attachment, example Signature, Comment, Photo
Allowed values:SIGNATURECOMMENTPHOTO
Response
application/json
Response
Created
Attachment
Inspection attachment: photo, signature, document, comment.
name would be used as file name if enclosure is uploaded.
Various media for an attachment
>= 0 items<= 100 items
Show Child Parameters
Name of an attachment.
Match pattern:^[^\n]+$
>= 1 characters<= 120 characters
Attachment details
Match pattern:^[^\n]*$
>= 0 characters<= 2000 characters
Related media, typically photo or document, potentially large and thus requiring separate upload facility
Show Child Parameters
Unique identifier of an attachment.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Person that created an attachment
Show Child Parameters
Type of attachment, example Signature, Comment, Photo
Allowed values:SIGNATURECOMMENTPHOTO
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
Search for attachments based on criteria provided
Returns a list of attachments based on criteria provided.
Body
application/json
Body
AttachmentSearch
Schema for searching attachments based on attachment IDs.
Group of conditions to filter by the resource representation.
>= 1 items<= 100 items
Show Child Parameters
Field or property name to be returned in the resource representation.
Match pattern:^(attachmentId|name|attachmentType|createdAt|author|comment|links|data)$
>= 1 characters<= 120 characters>= 1 items<= 8 items
Response
application/json
Response
Ok
Inspection attachment: photo, signature, document, comment.
name would be used as file name if enclosure is uploaded.
>= 0 items<= 100 items
Show Child Parameters
Get defects found in reports
Returns all the defects found in an inspection report. Related reports are excluded from response
Query Parameters
Unique ID for an inspectable, i.e. asset/vehicle (asset ID/vehicle ID).
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Type of an inspectable asset.
- VEHICLE when Vehicle is inspected
- POWERED_ASSET when assets that have a power source is inspected
- NON_POWERED_ASSET when assets that do not have a power source is inspected
Allowed values:VEHICLEPOWERED_ASSETNON_POWERED_ASSET
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Type of the defect.
Allowed values:PENDINGFIXEDCERTIFIED
>= 0 items<= 10 items
Severity of the defect.
Allowed values:MINORCRITICAL
>= 0 items<= 10 items
Identifies a bookmark for the next page of results.
Match pattern:^[.+\/=A-Za-z0-9]+$
>= 1 characters<= 200 characters
Response
application/json
Response
Ok
Reference to another resource
>= 0 items<= 100 items
Show Child Parameters
Defect details of a vehicle or other asset
>= 0 items<= 100 items
Show Child Parameters
Update defect found in reports.
Update a defect associated with reports.
Additions (tail only) are supported for /attachments
Replacements are supported for /status:
- Only transitions PENDING ↔ FIXED is permitted
- Attachment of type SIGNATURE must be included with each request modifying status
- Updating a defect that has already been CERTIFIED is not permitted
- otherwise 422 Unprocessable Content is returned.
Path Parameters
Unique identifier for a given resource.
Match pattern:^[A-Za-z0-9-]{1,120}$
>= 1 characters<= 120 characters
Headers
Carries an idempotency key in order to make non-idempotent HTTP methods such as POST or PATCH fault-tolerant. Must include quotes.
Match pattern:^"[a-z0-9-]+"$
>= 1 characters<= 120 characters
This header is use in combination with an “ETag” as a precondition for concurrency control.
Match pattern:^"[a-z0-9-]+"$
>= 1 characters<= 120 characters
Body
application/json
Body
A JSON Patch document as defined by RFC 6902
Defines an individual operation within a JsonPatchDocument
>= 0 items<= 10 items
Indicates the operaton to be performed,as per RFC 6902
Match pattern:^(add|remove|replace|move|copy|test)$
>= 1 characters<= 120 characters
A string containing a RFC 6901 JSON Pointer value that references the source location where the operation is applied
Match pattern:^(\/[^\n]+)*$
>= 0 characters<= 2000 characters
One OfThe value to be used within the operations
Match pattern:^[^\n]+$
>= 1 characters<= 2000 characters
A string containing a RFC 6901 JSON Pointer value that references the target location where the operation is performed
Match pattern:^\/[^\n]+$
>= 1 characters<= 2000 characters
Response
Response
No content. The request was applied.