Registrations - Absence, PUT

API Url

Absence (AB) variant of generic registration

Ignore the URI, for the correct URI see

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

Parameter

FieldTypeDescription
absenceobject

All day absence

  commentoptionalstring

Free text comment/answer.

  contactPersonoptionalobject

Contact person

    idstring

Internal employee id of contact person.

  normTimeIntvoptionalobject

Normal time interval

    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
    codestring

ID of reason

    distributionoptionalobject[]

Distribution of absence on secondary reasons. Either time or percentage must be filled out, not both.

      percentagenumber

The absence in percentage.

      reasonobject

Secondary reason.

        codestring

ID of reason

        typestring

Reason type

Allowed values:"AA"
      timenumber

The absence time in seconds.

    secondaryReasonoptionalobject

Secondary reason

      groupstring

Secondary reason group.

      idstring

Secondary reason id.

    typestring

Reason type

Allowed values:"AA"
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
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: AB

Success 200

FieldTypeDescription
  projectDimensionoptionalobject

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