Headers

  • WEAL-TOKEN string Required

    API token (can be retrieved from account settings)

  • TARGET-ORGANIZATION-ID integer

    ID of organization, for which the operation must be performed

application/json

Body Required

  • description string
  • status string

    Values are UNSUBMITTED, SUBMITTED, REJECTED, APPROVED, or BILLED.

  • isBillable boolean
  • date string Required
  • time string

    Format should match the following pattern: ^(\d+[.]\d{2})|$.

  • clientId integer Required
  • employeeId integer Required
  • orderId integer Required
  • taskId integer

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • data object
    • error object
      Hide error attributes Show error attributes object
      • errorCode string

        Values are NO_ERROR, NOT_IMPLEMENTED_YET, CONTACT_NOT_FOUND, FIELD_REQUIRED, VALIDATION_ERROR, DUPLICATION_ERROR, UNIQUE_CONSTRAINT_VIOLATION, WRONG_PASSWORD_FORMAT, WRONG_PASSWORD, ACTION_DENIED, NOT_FOUND, EXPECTED_ONE_FILE, UNIQUE_VIOLATION, CONTENT_EMPTY, INVALID_TYPE, CONVERSION_ERROR, FILE_PARSE_EXCEPTION, or IN_USE.

      • errorDetailValues array[object]
        Hide errorDetailValues attributes Show errorDetailValues attributes object
        • errorCode string
        • fieldName string
        • data string
        • isSevere boolean
    • valid boolean
  • 400

    400 Bad Request

  • 401

    401 Unauthorized

  • 403

    403 Access Denied

  • 404

    404 Not Found

  • 500

    500 Internal Server Error

PUT /api-v1/timesheet
curl \
 --request PUT 'https://wyzio.app/api-v1/timesheet' \
 --header "Content-Type: application/json" \
 --header "WEAL-TOKEN: string" \
 --header "TARGET-ORGANIZATION-ID: 42" \
 --data '{"description":"string","status":"UNSUBMITTED","isBillable":true,"date":"string","time":"string","clientId":42,"employeeId":42,"orderId":42,"taskId":42}'
Request examples
# Headers
WEAL-TOKEN: string
TARGET-ORGANIZATION-ID: 42

# Payload
{
  "description": "string",
  "status": "UNSUBMITTED",
  "isBillable": true,
  "date": "string",
  "time": "string",
  "clientId": 42,
  "employeeId": 42,
  "orderId": 42,
  "taskId": 42
}
Response examples (200)
{
  "data": {},
  "error": {
    "errorCode": "NO_ERROR",
    "errorDetailValues": [
      {
        "errorCode": "string",
        "fieldName": "string",
        "data": "string",
        "isSevere": true
      }
    ]
  },
  "valid": true
}