openapi: 3.0.1 info: description: Gain greater visibility by connecting your fleets, equipment, sites, and people. title: Samsara Daily API version: '2024-11-18' servers: - url: https://api.samsara.com/ - url: https://api.eu.samsara.com/ security: - AccessTokenHeader: [] tags: - name: Daily paths: /hos/daily-logs/log-meta-data: patch: description: "Update the shippingDocs field of an existing assignment.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Write ELD Hours of Service (US)** under the Compliance category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submit a case to our support team." operationId: updateShippingDocs parameters: - description: A start date in yyyy-mm-dd format. Required. in: query name: hosDate required: true schema: type: string - description: ID of the driver for whom the duty status is being set. in: query name: driverID required: true schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsRequestBody' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsResponseBody' description: OK response. '401': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsUnauthorizedErrorResponseBody' description: Unauthorized response. '404': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsNotFoundErrorResponseBody' description: Not Found response. '405': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsMethodNotAllowedErrorResponseBody' description: Method Not Allowed response. '429': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsTooManyRequestsErrorResponseBody' description: Too Many Requests response. '500': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsInternalServerErrorResponseBody' description: Internal Server Error response. '501': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsNotImplementedErrorResponseBody' description: Not Implemented response. '502': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsBadGatewayErrorResponseBody' description: Bad Gateway response. '503': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsServiceUnavailableErrorResponseBody' description: Service Unavailable response. '504': content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsGatewayTimeoutErrorResponseBody' description: Gateway Timeout response. default: content: application/json: schema: $ref: '#/components/schemas/HosDailyLogsUpdateShippingDocsBadRequestErrorResponseBody' description: Bad Request response. summary: '[beta] Update the ShippingDocs Field of an Existing Assignment.' tags: - Daily x-codegen-request-body-name: UpdateShippingDocsRequestBody components: schemas: HosDailyLogsUpdateShippingDocsGatewayTimeoutErrorResponseBody: description: Gateway timeout properties: message: description: Message of error example: context deadline exceeded type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsBadRequestErrorResponseBody: description: Bad Request parameters properties: message: description: Message of error example: Invalid value for parameter. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsTooManyRequestsErrorResponseBody: description: Too many requests properties: message: description: Message of error example: Exceeded rate limit. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsBadGatewayErrorResponseBody: description: Bad Gateway properties: message: description: Message of error example: 'rpc error: code = Unknown desc = connection refused' type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsNotFoundErrorResponseBody: description: Resource not found properties: message: description: Message of error example: Object not found. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object PatchShippingDocsResponseBodyResponseBody: description: Response after successfully updating the LogMetaData object. properties: adverseDrivingClaimed: description: Whether the driver has claimed the [Adverse Driving Exemption](https://kb.samsara.com/hc/en-us/articles/360047336792-Adverse-Driving-Exemption) for this HOS day chart. example: true type: boolean bigDayClaimed: description: Whether the driver has claimed the [Big Day Exemption](https://kb.samsara.com/hc/en-us/articles/360057113891-16-Hour-Short-Haul-Exemption-Big-Day-) for this HOS day chart. example: false type: boolean carrierFormattedAddress: description: The address of the carrier used for this HOS chart. example: 1990 Alameda Street, San Francisco, CA 94103 type: string carrierName: description: The name of the carrier used for this HOS chart. example: Carrier Name type: string carrierUsDotNumber: description: The US DOT number of the carrier used for this HOS chart. example: 1234 format: int64 type: integer homeTerminalFormattedAddress: description: The address of the Home Terminal used for this HOS chart. example: 1990 Alameda Street, San Francisco, CA 94103 type: string homeTerminalName: description: The name of the Home Terminal used for this HOS chart. example: Home Terminal Name type: string isCertified: description: Whether this HOS day chart was certified by the driver. example: true type: boolean isUsShortHaulActive: description: Whether the driver has the 150 air-mile Short Haul Exemption active for this HOS day chart. example: false type: boolean trailerNames: description: List of trailer names associated with the driver for the day. If a trailer was associated with a log through the driver app, the trailer name will be the trailer ID. example: - '10293' - Trailer ID 1 items: example: Nemo qui nulla dolor consectetur. type: string type: array type: object HosDailyLogsUpdateShippingDocsInternalServerErrorResponseBody: description: An internal server error occurred properties: message: description: Message of error example: Failed to execute GraphQL query. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsUnauthorizedErrorResponseBody: description: Unauthorized properties: message: description: Message of error example: Invalid token. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsNotImplementedErrorResponseBody: description: Requested endpoint is not yet implemented properties: message: description: Message of error example: Not implemented. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsResponseBody: properties: data: $ref: '#/components/schemas/PatchShippingDocsResponseBodyResponseBody' required: - data type: object HosDailyLogsUpdateShippingDocsServiceUnavailableErrorResponseBody: description: Service unavailable properties: message: description: Message of error example: context deadline exceeded type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsMethodNotAllowedErrorResponseBody: description: Method not allowed properties: message: description: Message of error example: DELETE not allowed on /endpoint. type: string requestId: description: The request ID; used when reaching out to support for issues with requests. example: 8916e1c1 type: string required: - message - requestId type: object HosDailyLogsUpdateShippingDocsRequestBody: description: Update the shippingDocs field. properties: shippingDocs: description: ShippingDocs associated with the driver for the day. example: ShippingID1, ShippingID2 type: string required: - shippingDocs type: object securitySchemes: AccessTokenHeader: type: http scheme: bearer x-original-swagger-version: '2.0' x-readme: explorer-enabled: true proxy-enabled: true