GET production/resources/{productionResourceId}

Production resource details for provided identifier

Note: Log in to check if your API client have access to run this resource
Version: 26
Success HTTP Status Code: 200

Uri parameters

{productionResourceId} Integer Production resource identifier

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 is 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.

$expand String, optional Use to expand Output fields that are not shown by default in the output result. Possible Expandable fields are listed in the Output tab for the resource. Accepts a comma-separated list of expandable Output Field names. See the Expand and Select page for more information about this.
$showDomainDescriptions Boolean, optional Use to show an additional descriptional field for fields that are using Domain Values.
$select String, optional Use to define the fields to return in the result. Accepts a comma-separated list of Output Field names. See the Expand and Select page for more information about this.
$db String, optional Set the database to use for the request
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "json"
$lang String, optional Use to get localized responses. Supported formats are 3-letter ISO-639-1 [lll], 2-letter ISO-639-2 [ll], or a combination of a two-letter language code and a two-letter country code ISO-639-2 and ISO-3166-1 [ll_CC], [ll-CC]
$useMinimumVersion Integer, optional This can be used to test a new version of a resource when your ApiClient is running an older, deprecated, version of a resource. $useminimumversion can be used to test against a newer version of the resource. See the Deprecated APIs page for more information about this.

See the page about filters and sorting on how to use filter parameters and named filters.

See the page about filters and sorting on how to use sortable parameters

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
<ProductionResource>
2
     <ProductionResourceId
ProductionResourceId

Production resource identifier

>
{Integer}</ProductionResourceId>
3
     <Status
Status

Status of production resource

Possible domain values can be found here when logged in

>
{Integer}</Status>
4
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
5
     <Name
Name

Name of production resource

>
{String}</Name>
6
     <ShortName
ShortName

Short name of production resource

>
{String}</ShortName>
7
     <Description
Description

Description of production resource

>
{String}</Description>
8
     <Type
Type

Defines the CLASS of the resource.

Possible domain values can be found here when logged in

>
{String}</Type>
9
     <LoadPercent
LoadPercent

Calculated load in percent of the production resource for current date

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

>
{Decimal}</LoadPercent>
10
     <AllowManHours
AllowManHours

True if man hours can be added to the work log of work order operations

>
{Boolean}</AllowManHours>
11
     <AllowMultipleOperators
AllowMultipleOperators

True if multiple operators can work with one work order operation.

>
{Boolean}</AllowMultipleOperators>
12
     <CalculateCostByPlannedHours
CalculateCostByPlannedHours

(RW) Value = 1: Operation cost is calculated based on planned operation hours. Value = 0 (default): Operation cost is calculated by logged hours.

>
{Boolean}</CalculateCostByPlannedHours>
13
     <AssignToRestrictedStockLocations
AssignToRestrictedStockLocations

If is set to 1 then the program will check if the production work order are assigned to goods reception items in the restricted stock locations. If not then a “swap” in assignments is done to a goods reception item which has enough goods in the restricted stock locations. If this can not be done then an error message is displayed.

>
{Boolean}</AssignToRestrictedStockLocations>
14
     <AllowWorkOrderOperationGrouping
AllowWorkOrderOperationGrouping

Allows resource to use work order operation grouping

>
{Boolean}</AllowWorkOrderOperationGrouping>
15
     <HourlyRates>
16
          <Currency
Currency

Three character code following the ISO 4217 standard.

>
{String}</Currency>
17
          <Setup
Setup

Rate per hour for operations setup step.

>
{Decimal}</Setup>
18
          <Processing
Processing

Rate per hour for operations step

>
{Decimal}</Processing>
19
          <CleanUp
CleanUp

Rate per hour for operations post step, given in system currency.

>
{Decimal}</CleanUp>
20
     </HourlyRates>
21
     <ProductionResourceGroup>
22
          <ProductionResourceGroupId
ProductionResourceGroupId

Production resource group identifier

>
{Integer}</ProductionResourceGroupId>
23
          <Name
Name

Name of production resource group

>
{String}</Name>
24
          <ProductionResourceGroupLink
ProductionResourceGroupLink

Production resource group reference

>
{String}</ProductionResourceGroupLink>
25
     </ProductionResourceGroup>
26
     <LastWorkOrderOperation
LastWorkOrderOperation

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

>
27
          <WorkOrderOperationId
WorkOrderOperationId

Production work order operation identifier

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

>
{Integer}</WorkOrderOperationId>
28
          <StartedAt
StartedAt

Date and time work order operation actually started

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

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

Date and time of completion

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

>
{Datetime}</FinishedAt>
30
          <WorkOrderOperationLink
WorkOrderOperationLink

Work order operation reference

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

>
{String}</WorkOrderOperationLink>
31
     </LastWorkOrderOperation>
32
</ProductionResource>
1
{
2
     "productionResource": {
3
          "productionResourceId
ProductionResourceId

Production resource identifier

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

Status of production resource

Possible domain values can be found here when logged in

":
"{Integer}",
5
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
6
          "name
Name

Name of production resource

":
"{String}",
7
          "shortName
ShortName

Short name of production resource

":
"{String}",
8
          "description
Description

Description of production resource

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

Defines the CLASS of the resource.

Possible domain values can be found here when logged in

":
"{String}",
10
          "loadPercent
LoadPercent

Calculated load in percent of the production resource for current date

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

":
"{Decimal}",
11
          "allowManHours
AllowManHours

True if man hours can be added to the work log of work order operations

":
"{Boolean}",
12
          "allowMultipleOperators
AllowMultipleOperators

True if multiple operators can work with one work order operation.

":
"{Boolean}",
13
          "calculateCostByPlannedHours
CalculateCostByPlannedHours

(RW) Value = 1: Operation cost is calculated based on planned operation hours. Value = 0 (default): Operation cost is calculated by logged hours.

":
"{Boolean}",
14
          "assignToRestrictedStockLocations
AssignToRestrictedStockLocations

If is set to 1 then the program will check if the production work order are assigned to goods reception items in the restricted stock locations. If not then a “swap” in assignments is done to a goods reception item which has enough goods in the restricted stock locations. If this can not be done then an error message is displayed.

":
"{Boolean}",
15
          "allowWorkOrderOperationGrouping
AllowWorkOrderOperationGrouping

Allows resource to use work order operation grouping

":
"{Boolean}",
16
          "hourlyRates": {
17
               "currency
Currency

Three character code following the ISO 4217 standard.

":
"{String}",
18
               "setup
Setup

Rate per hour for operations setup step.

":
"{Decimal}",
19
               "processing
Processing

Rate per hour for operations step

":
"{Decimal}",
20
               "cleanUp
CleanUp

Rate per hour for operations post step, given in system currency.

":
"{Decimal}"
21
          },
22
          "productionResourceGroup": {
23
               "productionResourceGroupId
ProductionResourceGroupId

Production resource group identifier

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

Name of production resource group

":
"{String}",
25
               "productionResourceGroupLink
ProductionResourceGroupLink

Production resource group reference

":
"{String}"
26
          },
27
          "lastWorkOrderOperation
LastWorkOrderOperation

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

":
{
28
               "workOrderOperationId
WorkOrderOperationId

Production work order operation identifier

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

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

Date and time work order operation actually started

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

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

Date and time of completion

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

":
"{Datetime}",
31
               "workOrderOperationLink
WorkOrderOperationLink

Work order operation reference

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

":
"{String}"
32
          }
33
     }
34
}

Possible error codes the response might return:

Error 100207 HTTP 404 Production resource not found
Error 103366 HTTP 404 Production resource group not found.