Production line

Endpoints

Begin MO

/companies/{companycode}/establishments/{establishmentcode}/production-lines/{lineCode}/mos/currentMo/{moNb}

Parameters

Type Name Description Schema Associated rules

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Path

lineCode
required

Entity code to update

string

Path

moNb
required

Entity code to update

string

R1

Body

body
optional

R3

Responses

HTTP Code Description Schema

200

Operation successful

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Rules

R1

MO with code as external MO number should exist for companyCode and establishmentCode.

R2

The line lineCode should exist for companyCode and establishmentCode.

R3

lineConfigurationCode is optional.

If it is not set, the default configuration of the line is used.

If it is set, this configuration should exist for companyCode, establishmentCode and lineCode.

Note : if the MO has already been started with another line configuration, the new one is ignored when MO is started.

R4

If MO is not in "in progress" state, it is started.

R5

If MO is already in progress, the call is "success" but nothing is happening.

Note : if line configuration is different from the one in progress, the new one is ignored.

R6

If MO is scheduled on a line, it can’t be started on another line.

Close Line

/companies/{companycode}/establishments/{establishmentcode}/production-lines/{lineCode}/close

Parameters

Type Name Description Schema Associated rules

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Path

lineCode
required

Entity code to update

string

R2 R7

Responses

HTTP Code Description Schema

200

Operation successful

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Rules

R7

The line lineCode must be open. If the line is in a current state "closed", we receive a response "the line is already closed".

OPEN Line

/companies/{companycode}/establishments/{establishmentcode}/production-lines/{lineCode}/open

Parameters

Type Name Description Schema Associated rules

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Path

lineCode
required

Entity code to update

string

R2 R7

Responses

HTTP Code Description Schema

200

Operation successful

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Rules

R8

The line lineCode must be closed. If the line is in a current state "opened", we receive a response "the line is already opened".

R9

If the line is configured with "Ask the team to the operator" for the opening of a line outside the calendar, the opening in this case of calendar/prod day missed, via this API is not allowed.

End MO

/companies/{companycode}/establishments/{establishmentcode}/production-lines/{lineCode}/mos/currentMo

Parameters

Type Name Description Schema Associated rules

Path

companyCode
required

Current context company code

string

Path

establishmentCode
required

Current context establishment code

string

Path

lineCode
required

Entity code to update

string

R2 R8

Responses

HTTP Code Description Schema

200

Operation successful

No Content

400

Functionnal error

No Content

500

Internal server error

No Content

Consumes

  • application/json

Produces

  • application/json

Rules

R10

One MO should be in progress on the line lineCode.

Data structure

LineState

Name Description Value

lineConfigurationCode
mandatory

Line configuration code

string