Registrations - Partial Absence, PUT

API Url

Partial Absence (AH) variant of generic registration

Ignore the URI, for the correct URI see

It is used for partial absence type

PUT
http://localhost:16010/ProMarkREST/{DummyRegistration?type=AH}

Parameter

FieldTypeDescription
empIdstring

Internal employee ID

locationoptionalobject

Geo location of registration

  latitudenumber

Latitude, negative value is west

Size range: -180 to 180
  longitudenumber

Longitude, negative value is south

Size range: -180 to 180
partialAbsenceobject

Partial Absence

  commentoptionalstring

Comment for partial absence.

  intervalobject

Required if category.absence_dialog_type = 2.

    endnumber

End of interval

    startnumber

Start of interval

    activityobject

Activity

      idstring

ID of activity

    extraInfooptionalobject[]

Collection of extra info objects

      idstring

ID of extra info

      valueobject

Extra info value

        idstring

ID of extra info value

    pieceworkoptionalobject

Piecework

      idstring

ID of piecework

    projectobject

Project

      idstring

ID of project

    timeTypeoptionalobject

Time Type

      idstring

ID of timeType

  reasonobject

Reason

    codestring

ID of reason

    secondaryReasonoptionalobject

Secondary reason without distribution.

      groupstring

Secondary reason group.

      idstring

Secondary reason id.

    typestring

Reason type

Allowed values:"AA"
  timeoptionalnumber

Absence time in seconds (required if category.absence_dialog_type = 3).

  typeoptionalnumber

Partial absence type. Allowed values are:
2 - Middle of the day
3 - First part of the day,
4 - Last part the of day

regTimedatetime

The time of registration

terminalIdstring

Numeric ID of registration terminal, or if not numeric, then it's the ID of the user that changed or added the registration

transSeqnumber

Unique reference of registration

typestring
Default value: AH

Success 200

FieldTypeDescription
  projectDimensionoptionalobject

Dimensions of the related project registration. Only if reason is setup to be related to project time.