AuthenticationGetTimeRegistrationSettings

GetTimeRegistrationSettings

Security service 1.2: Returns the account's time-registration display and validation rules, plus whether the caller may register on all tasks.

ServiceSecurity 1.2
EndpointPOST https://app{server-number}.timelog.com/{account}/WebServices/Security/V1_2/SecurityServiceSecure.svc
SOAPActionGetTimeRegistrationSettingsRequest
Content-Typetext/xml; charset=utf-8
AuthenticationA token from GetToken
Changes dataNo
Safe to retryYes

How it works

Built for time-registration clients: which identifiers to show, the formatting locale, whether start/end times are used and may overlap, the additional text field and tracker search limits. UseCaseSensetiveLogin is never filled.

Parameters

Each parameter has one label: Required, Conditional (required depending on other values) or Optional. Send them in the order shown.

tokenSecurityToken
Required

The token from GetToken: Initials, Expires and Hash, sent back unchanged.

Request

POST /{account}/WebServices/Security/V1_2/SecurityServiceSecure.svc HTTP/1.1
Host: app{server-number}.timelog.com
Content-Type: text/xml; charset=utf-8
SOAPAction: "GetTimeRegistrationSettingsRequest"

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
                  xmlns:security="http://www.timelog.com/api/tlp/v1_2">
  <soapenv:Body>
    <security:GetTimeRegistrationSettings>
      <security:token>
        <security:Initials>{Initials from GetToken}</security:Initials>
        <security:Expires>{Expires from GetToken, unchanged}</security:Expires>
        <security:Hash>{Hash from GetToken}</security:Hash>
      </security:token>
    </security:GetTimeRegistrationSettings>
  </soapenv:Body>
</soapenv:Envelope>
Replace every {…} placeholder with your own value.

Response

The call returns the standard response envelope. Check ResponseState first: a failed call still returns HTTP 200.

ResponseStatestring
Required

Success, Invalid or Error.

ErrorCodeinteger

0 on success, otherwise the error code. See Errors.

ReturnTimeRegistrationSettings[]

Response<TimeRegistrationSettings>: Return holds one object with all 23 members; ResponseState Success; a 'Successfully called' message is added. n/a - one object on success.

Example response

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body>
    <GetTimeRegistrationSettingsResponse xmlns="http://www.timelog.com/api/tlp/v1_2">
      <GetTimeRegistrationSettingsResult xmlns:a="http://www.timelog.com/api/tlp/v1_1"
                                         xmlns:b="http://www.timelog.com/api/tlp/v1_2"
                                         xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
        <a:Return>
          <b:TimeRegistrationSettings>
            <b:UseCaseSensetiveLogin>false</b:UseCaseSensetiveLogin>
            <b:UseWBS>false</b:UseWBS>
            <b:UseTaskUniqueID>false</b:UseTaskUniqueID>
            <b:CustomerSortByNo>false</b:CustomerSortByNo>
            <b:ProjectSortByNo>false</b:ProjectSortByNo>
            <b:FormatingLCID>1001</b:FormatingLCID>
            <b:UseStartEndTime>false</b:UseStartEndTime>
            <b:TimeTrackingShowCustomerNo>false</b:TimeTrackingShowCustomerNo>
            <b:TimeTrackingShowCustomerName>false</b:TimeTrackingShowCustomerName>
            <b:TimeTrackingShowProjectNo>false</b:TimeTrackingShowProjectNo>
            <b:TimeTrackingShowWBS>false</b:TimeTrackingShowWBS>
            <b:TimeTrackingShowTaskID>false</b:TimeTrackingShowTaskID>
            <b:AllowTimetrackingOnAllActiveProjects>false</b:AllowTimetrackingOnAllActiveProjects>
            <b:TimeTrackingAllowRegistrationOverlap>false</b:TimeTrackingAllowRegistrationOverlap>
            <b:ShowTimesheetAdditionalTextField>false</b:ShowTimesheetAdditionalTextField>
            <b:AdditionalTextFieldLabel>Example</b:AdditionalTextFieldLabel>
            <b:AdditionalTextFieldValidation>0</b:AdditionalTextFieldValidation>
            <b:AdditionalTextFieldType>0</b:AdditionalTextFieldType>
            <b:NumberOfTasksReturnedInTrackerSearch>0</b:NumberOfTasksReturnedInTrackerSearch>
            <b:LimitTrackerSearchToProjects>false</b:LimitTrackerSearchToProjects>
            <b:MaxReceivedMessageSize>0</b:MaxReceivedMessageSize>
            <b:TrackerRequiredSpaceBeforeIncreaseStorage>0</b:TrackerRequiredSpaceBeforeIncreaseStorage>
            <b:TrackerIncreaseStorageQuota>0</b:TrackerIncreaseStorageQuota>
          </b:TimeRegistrationSettings>
        </a:Return>
        <a:ReturnTypeDescription>TimeRegistrationSettings</a:ReturnTypeDescription>
        <a:Request>…</a:Request>
        <a:ResponseState>Success</a:ResponseState>
        <a:Messages>
          <a:APIMessage>
            <a:Message>Duration of call was 0,0421337 sec.</a:Message>
            <a:Severity>Message</a:Severity>
            <a:ErrorCode>0</a:ErrorCode>
          </a:APIMessage>
        </a:Messages>
        <a:ErrorCode>0</a:ErrorCode>
      </GetTimeRegistrationSettingsResult>
    </GetTimeRegistrationSettingsResponse>
  </s:Body>
</s:Envelope>
Illustrative example: built from the service description (WSDL) in the same format as a real response, with made-up values. The Request block is shortened.

Errors

All errors come back with HTTP 200: check ResponseState, ErrorCode and Messages. The errors every operation can return (expired or invalid token, API not enabled, HTTPS required, general errors) are listed once in Responses and errors.

Errors specific to this operation:

ResponseStateErrorCodeMessageWhat it meansWhat to do
Error40001Error during call on TimeLog.API, Message 'GetTimeTrackingSettings() returned Null'Defensive branch, not reachable in practice.—