GET/projects/api/v3/time/validate.json

Validate if a timelog can be created

Validates if a timelog can be created for a specific date by checking if there are any approved time approvals for that week.

Query Params

  • Name
    date
    Type
    string
    Description

    required - the date to validate

  • Name
    userIds
    Type
    array[integer]
    Description

    the users to check, if not set the logged in user will be used

    Format
    Comma separated values

Responses

  • Code
    200
    Type
    object
    Schema
    Description
    200 OK
    ValidationResponse represents the response for timelog validation
  • Code
    400
    Type
    object
    Schema
    Description
    400 Bad Request
    ErrorResponse defines how []Error should be marshaled to JSON.
  • Code
    403
    Type
    object
    Schema
    Description
    403 Forbidden
    ErrorResponse defines how []Error should be marshaled to JSON.

Examples

200 OK

ValidationResponse
{
  "canCreate": true,
  "existingApproval": [
    {
      "id": 0,
      "userId": 0,
      "weekDate": {
        "Week": 0,
        "Year": 0
      }
    }
  ]
}