Zeiterfassung v2 /api/v2/:principal_slug/business/rapport/works/:id

Überblick

Klasse / Datentyp
Zeiterfassung
Response Formats
JSON
API Version
v2
Öffentlich erreichbar
false
HTTP Methode
PATCH
Zuletzt aktualisiert

/api/v2/:principal_slug/business/rapport/works/:id

Parameter

Query Parameter

Schlüssel
id Pflicht

Business::Rapport::Work ID

principal_slug Pflicht

Backend::Principal Slug / ID

Body Parameter

Schlüssel
business_rapport_work[charging_id] Pflicht
business_rapport_work[client_id] Pflicht
business_rapport_work[employee_id] Pflicht
business_rapport_work[employment_id] Pflicht
business_rapport_work[end_time] Pflicht
business_rapport_work[intangible_good_id] Pflicht
business_rapport_work[label] Pflicht
business_rapport_work[start_time] Pflicht
business_rapport_work[description] optional
business_rapport_work[internal_description] optional
business_rapport_work[project_id] optional
business_rapport_work[task_id] optional

Beispiel Rückgabe

{
  "data" : {
    "id"                   : "582755f11f513a028a14a99c",
    "label"                : "Angepasste Beschreibung!",
    "description"          : "Beschreibung für die Zeiterfassung",
    "date"                 : "2016-11-12",
    "duration_in_hours"    : 0.8333333333333334,
    "start_time"           : "2016-11-12T18:00:00.000+01:00",
    "end_time"             : "2016-11-12T18:50:00.000+01:00",
    "duration"             : 3000,
    "internal_description" : "optionale interne Beschreibung",
    "charging"             : {
      "id"    : "5444fba0726f727320220100",
      "key"   : "charchable",
      "label" : "Verrechenbar"
    },
    "client"               : {
      "id"                     : "547ec0b4726f727326270000",
      "_type"                  : "Business::Partner::Client::BusinessClient",
      "name"                   : "Krolop & Gerst Photography",
      "backend_application_id" : null,
      "foreign_id"             : null
    },
    "project"              : {
      "id"              : "5811b2eb56820b17a43848de",
      "label"           : "Zusatzaufwand GoLive",
      "number"          : 291,
      "abbreviation"    : "KG_2016_291",
      "date"            : "2016-10-26",
      "due_date"        : null,
      "type"            : "Business::Project::AtCost",
      "type_translated" : "Projekt nach Aufwand"
    },
    "task"                 : {
      "id"       : "5819ce0856820b0f53e63873",
      "label"    : "Issue #238: Rabatt-Text-Feld in Warenkorb positionieren",
      "date"     : "2016-11-02",
      "due_date" : null
    },
    "employee"             : {
      "id"        : "560a5ea66f726964b3000000",
      "firstname" : "Patrick",
      "lastname"  : "Lehmann",
      "email"     : "lehmann@squibble.me"
    },
    "employment"           : {
      "id"                           : "1234567890000",
      "job_title"                    : "",
      "percentage"                   : 100,
      "expected_daily_working_hours" : 8.5,
      "valid_from"                   : "2018-01-01",
      "valid_till"                   : null
    },
    "intangible_good"      : {
      "id"             : "54e203366f72691895010000",
      "article_number" : "besprechung",
      "label"          : "Besprechung",
      "resource_class" : "Business::Product::IntangibleGood"
    },
    "price"                : {"id" : "582755f11f513a028a14a99e","value" : 150},
    "accounting_year"      : {"id" : "5640f7df93e2e504f700008f","code" : "2016","label" : "2016"},
    "period"               : {
      "id"    : "5640f7df93e2e504f700009a",
      "code"  : "2016-11",
      "label" : "November 2016"
    }
  },
  "meta" : {
    "resource_class" : "Business::Rapport::Work",
    "id"             : "582755f11f513a028a14a99c",
    "created_at"     : "2016-11-12T18:48:33.525+01:00",
    "updated_at"     : "2016-11-12T18:49:35.039+01:00",
    "principal"      : {"id" : "53db7cb4993a7aefa50001e1","to_param" : "squibble"}
  }
}