API

Production APIs

GET production/work-orders/{productionWorkOrderId}/work-log

List of worklogs related to this production work order

HTTP method GET
URI https://api.rambase.net/production/work-orders/{productionWorkOrderId}/work-log
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {productionWorkOrderId} Production work order identifier
Integer, minimum 100000
Maximum page size ($top) 80
Successful HTTP status code 200
API resource identifier 4618, version 5

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
1

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$expand String, optional Use to include output fields that are not returned by default in the response. Accepts a comma-separated list of expandable field names. See the Expand and Select page for more information.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$top String, optional Specifies number of rows to return in each page. Maximum limit is specific for each API resource. Default value is 10.
$pageKey String, optional Use to navigate to first, previous, next or last page in list. Add $expand=PagingDetails to add the different keys to the response.
$filter String, optional Use to filter the result list, see the Filtering and sorting page for more information.
$orderby String, optional Use to order the result list, see the Filtering and sorting page for more information.
$inlinecount String, optional Set to "allpages" to include total number of rows in the response. Possible values are: "allpages", "none"

Read more about filters and sorting on how to use filter parameters and named filters.

Cleanup() Named filter List of cleanup step worklogs
Machine() Named filter List of machine type worklogs
Manhours() Named filter List of manhour type worklogs
MyWorklogs() Named filter List of current user's worklogs
Processing() Named filter List of processing step worklogs
Setup() Named filter List of setup step worklogs
Today() Named filter List of all worklogs started today
Comment String Comment of the work hour period. Why the work hour period is edited / changed.
CreatedAt Datetime Date and time of creation. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
EndedAt Datetime Date and time the work period ended. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
ManHourType String Type of man hours. Blank implies that the work period was done by machine.
ProductionOperationName String Name of production operation.
SequenceNumber Integer Sequence number of the product structure operation. Unique within a product structure.
StartedAt Datetime Date and time the work period started. Available macros: now(), startOfDay(), endOfDay(), currentDate(), currentMonth(), currentYear(), startOfMonth(), endOfMonth(), startOfYear(), endOfYear(), startOfWeek(), endOfWeek(), previousYear(), previousMonth()
Step String Step this work period was in.
TotalHours Decimal Total hours of work in this work period.
UserId Integer User identifier.
WorkPeriodId Integer Work period identifier.

Read more about filters and sorting on how to use sortable parameters

Comment String Comment of the work hour period. Why the work hour period is edited / changed.
CreatedAt Datetime Date and time of creation
EndedAt Datetime Date and time the work period ended
ManHourType String Type of man hours. Blank implies that the work period was done by machine.
ProductionOperationName String Name of production operation
SequenceNumber Integer Sequence number of the product structure operation. Unique within a product structure.
StartedAt Datetime Date and time the work period started
Step String Step this work period was in.
TotalHours Decimal Total hours of work in this work period
UserId Integer User identifier
WorkPeriodId Integer Work period identifier

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<ProductionWorkOrderWorkLogs>
2
     <ProductionWorkOrderWorkLog>
3
          <WorkOrderOperation>
4
               <WorkOrderOperationId
WorkOrderOperationId

Production work order operation identifier

>
{Integer}</WorkOrderOperationId>
5
               <Status
Status

Production work order operation status

Possible domain values can be found here

>
{Integer}</Status>
6
               <StartedAt
StartedAt

Date and time work order operation actually started

>
{Datetime}</StartedAt>
7
               <FinishedAt
FinishedAt

Date and time of completion

>
{Datetime}</FinishedAt>
8
               <ProductStructureOperation>
9
                    <ProductStructureOperationId
ProductStructureOperationId

Product structure operation identifier

>
{Integer}</ProductStructureOperationId>
10
                    <SequenceNumber
SequenceNumber

Sequence number of the product structure operation. Unique within a product structure.

>
{Integer}</SequenceNumber>
11
                    <ProductionOperation>
12
                         <ProductionOperationId
ProductionOperationId

Production operation identifier

>
{Integer}</ProductionOperationId>
13
                         <Name
Name

Name of production operation

>
{String}</Name>
14
                         <ProductionOperationLink
ProductionOperationLink

Production operation reference

>
{String}</ProductionOperationLink>
15
                    </ProductionOperation>
16
               </ProductStructureOperation>
17
               <WorkOrderOperationLink
WorkOrderOperationLink

Work order operation reference

>
{String}</WorkOrderOperationLink>
18
          </WorkOrderOperation>
19
          <WorkPeriod>
20
               <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
21
               <WorkPeriodId
WorkPeriodId

Work period identifier

>
{Integer}</WorkPeriodId>
22
               <Comment
Comment

Comment of the work hour period. Why the work hour period is edited / changed.

>
{String}</Comment>
23
               <StartedAt
StartedAt

Date and time the work period started

>
{Datetime}</StartedAt>
24
               <EndedAt
EndedAt

Date and time the work period ended

>
{Datetime}</EndedAt>
25
               <TotalHours
TotalHours

Total hours of work in this work period

>
{Decimal}</TotalHours>
26
               <Step
Step

Step this work period was in.

Possible domain values can be found here

>
{String}</Step>
27
               <ManHourType
ManHourType

Type of man hours. Blank implies that the work period was done by machine.

Possible domain values can be found here

>
{String}</ManHourType>
28
               <Type
Type

A type of work order operation's worklog

Possible domain values can be found here

>
{String}</Type>
29
               <User>
30
                    <UserId
UserId

User identifier

>
{Integer}</UserId>
31
                    <Name
Name

Name of the user

>
{String}</Name>
32
                    <FirstName
FirstName

First name of the user

>
{String}</FirstName>
33
                    <UserLink
UserLink

User reference

>
{String}</UserLink>
34
               </User>
35
               <WorkPeriodLink
WorkPeriodLink

Work period reference

>
{String}</WorkPeriodLink>
36
          </WorkPeriod>
37
     </ProductionWorkOrderWorkLog>
38
     <Paging
Paging

Detailed paging information for this list.

>
39
          <PageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

>
{Integer}</PageSize>
40
          <Position
Position

Position of the first element in the list

>
{Integer}</Position>
41
          <Page
Page

Page index

>
{Integer}</Page>
42
          <FirstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</FirstPageKey>
43
          <FirstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

>
{String}</FirstPage>
44
          <PreviousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</PreviousPageKey>
45
          <PreviousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

>
{String}</PreviousPage>
46
          <NextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</NextPageKey>
47
          <NextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

>
{String}</NextPage>
48
          <LastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

>
{String}</LastPageKey>
49
          <LastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

>
{String}</LastPage>
50
          <Size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

>
{Integer}</Size>
51
     </Paging>
52
</ProductionWorkOrderWorkLogs>
1
{
2
     "productionWorkOrderWorkLogs": [
3
          {
4
               "workOrderOperation": {
5
                    "workOrderOperationId
WorkOrderOperationId

Production work order operation identifier

":
"{Integer}",
6
                    "status
Status

Production work order operation status

Possible domain values can be found here

":
"{Integer}",
7
                    "startedAt
StartedAt

Date and time work order operation actually started

":
"{Datetime}",
8
                    "finishedAt
FinishedAt

Date and time of completion

":
"{Datetime}",
9
                    "productStructureOperation": {
10
                         "productStructureOperationId
ProductStructureOperationId

Product structure operation identifier

":
"{Integer}",
11
                         "sequenceNumber
SequenceNumber

Sequence number of the product structure operation. Unique within a product structure.

":
"{Integer}",
12
                         "productionOperation": {
13
                              "productionOperationId
ProductionOperationId

Production operation identifier

":
"{Integer}",
14
                              "name
Name

Name of production operation

":
"{String}",
15
                              "productionOperationLink
ProductionOperationLink

Production operation reference

":
"{String}"
16
                         }
17
                    },
18
                    "workOrderOperationLink
WorkOrderOperationLink

Work order operation reference

":
"{String}"
19
               },
20
               "workPeriod": {
21
                    "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
22
                    "workPeriodId
WorkPeriodId

Work period identifier

":
"{Integer}",
23
                    "comment
Comment

Comment of the work hour period. Why the work hour period is edited / changed.

":
"{String}",
24
                    "startedAt
StartedAt

Date and time the work period started

":
"{Datetime}",
25
                    "endedAt
EndedAt

Date and time the work period ended

":
"{Datetime}",
26
                    "totalHours
TotalHours

Total hours of work in this work period

":
"{Decimal}",
27
                    "step
Step

Step this work period was in.

Possible domain values can be found here

":
"{String}",
28
                    "manHourType
ManHourType

Type of man hours. Blank implies that the work period was done by machine.

Possible domain values can be found here

":
"{String}",
29
                    "type
Type

A type of work order operation's worklog

Possible domain values can be found here

":
"{String}",
30
                    "user": {
31
                         "userId
UserId

User identifier

":
"{Integer}",
32
                         "name
Name

Name of the user

":
"{String}",
33
                         "firstName
FirstName

First name of the user

":
"{String}",
34
                         "userLink
UserLink

User reference

":
"{String}"
35
                    },
36
                    "workPeriodLink
WorkPeriodLink

Work period reference

":
"{String}"
37
               }
38
          }
39
     ],
40
     "paging
Paging

Detailed paging information for this list.

":
{
41
          "pageSize
PageSize

Number of elements in the list, as defined in $top. Default is 10.

":
"{Integer}",
42
          "position
Position

Position of the first element in the list

":
"{Integer}",
43
          "page
Page

Page index

":
"{Integer}",
44
          "firstPageKey
FirstPageKey

Page key to use for navigating to the first page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
45
          "firstPage
FirstPage

Link to the first page in the list. $pageKey is set to FirstPageKey.

":
"{String}",
46
          "previousPageKey
PreviousPageKey

Page key to use for navigating to previous page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
47
          "previousPage
PreviousPage

Link to the previous page in the list. $pageKey is set to PreviousPageKey.

":
"{String}",
48
          "nextPageKey
NextPageKey

Page key to use for navigating to next page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
49
          "nextPage
NextPage

Link to the next page in the list. $pageKey is set to NextPageKey.

":
"{String}",
50
          "lastPageKey
LastPageKey

Page key to use for navigating to last page in the list

This field is greyed out because it is an expandable field. You have to add $expand=PagingDetails in your request URI to get this field

":
"{String}",
51
          "lastPage
LastPage

Link to the last page in the list. $pageKey is set to LastPageKey.

":
"{String}",
52
          "size
Size

Total number of records in the list. Use $inlinecount=allpages in the request uri to include this

":
"{Integer}"
53
     }
54
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 101814 HTTP 404 Employee not found