Creates a new card.

SecurityBearer
Request
Request Body schema: application/json
required

The card to create.

ppgId
integer <int32> (ProductionSchedulerServer.Domain.Entities.ProducerProductionGroups.ProducerProductionGroupId)
label
string or null

The label displayed as “PPG #” in the UI mockups.

object (ProductionSchedulerServer.Domain.Entities.StationId)
order
integer <int32>

The priority of the cards for each station.

assignedSaw
string or null

The assigned saw, used to display tags for each card.

assignedTable
string or null

The assigned table, used to display tags for each card.

color
integer <int32>

The color index into an array of colors.

activatedDateTime
string or null <date-time>

The date and time when the card was activated.

activatedByUser
string or null

The user who activated the card.

completedDateTime
string or null <date-time>

The date and time when the card was completed.

completedByUser
string or null

The user who completed the card.

crewSize
integer or null <int32>

The crew size.

createdDateTime
string <date-time>

The date and time when the card was created.

createdByUser
string or null

The user who created the card.

bdft
number <float>

The board feet (BDFT) calculated by Batcher.

numPieces
integer <int32>

The number of pieces calculated by Batcher.

numUniquePieces
integer <int32>

The number of unique pieces calculated by Batcher.

numTotalComponents
integer <int32>

The total number of components calculated by Batcher.

numUniqueComponents
integer <int32>

The number of unique components calculated by Batcher.

maxHeight
number <float>

The maximum height calculated by Director.

maxLength
number <float>

The maximum length calculated by Director.

maxWeight
number <float>

The maximum weight calculated by Director.

totalWeight
number <float>

The total weight calculated by Director.

Array of objects or null (ProductionSchedulerServer.Application.Features.ProducerProductionGroups.ComponentDto)

The list of components.

Responses
200

Returns the newly created card.

400

If the request is invalid.

500

If there was an internal server error.

post/api/cards
Request samples
application/json
{
  • "ppgId": 0,
  • "label": "string",
  • "assignedStation": {
    },
  • "order": 0,
  • "assignedSaw": "string",
  • "assignedTable": "string",
  • "color": 0,
  • "activatedDateTime": "2019-08-24T14:15:22Z",
  • "activatedByUser": "string",
  • "completedDateTime": "2019-08-24T14:15:22Z",
  • "completedByUser": "string",
  • "crewSize": 0,
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "createdByUser": "string",
  • "bdft": 0.1,
  • "numPieces": 0,
  • "numUniquePieces": 0,
  • "numTotalComponents": 0,
  • "numUniqueComponents": 0,
  • "maxHeight": 0.1,
  • "maxLength": 0.1,
  • "maxWeight": 0.1,
  • "totalWeight": 0.1,
  • "components": [
    ]
}
Response samples
application/json
{
  • "ppgId": 0,
  • "label": "string",
  • "assignedStation": {
    },
  • "order": 0,
  • "assignedSaw": "string",
  • "assignedTable": "string",
  • "color": 0,
  • "activatedDateTime": "2019-08-24T14:15:22Z",
  • "activatedByUser": "string",
  • "completedDateTime": "2019-08-24T14:15:22Z",
  • "completedByUser": "string",
  • "crewSize": 0,
  • "createdDateTime": "2019-08-24T14:15:22Z",
  • "createdByUser": "string",
  • "bdft": 0.1,
  • "numPieces": 0,
  • "numUniquePieces": 0,
  • "numTotalComponents": 0,
  • "numUniqueComponents": 0,
  • "maxHeight": 0.1,
  • "maxLength": 0.1,
  • "maxWeight": 0.1,
  • "totalWeight": 0.1,
  • "components": [
    ],
  • "id": 0
}