Updates card status by id.

SecurityBearer
Request
path Parameters
id
required
integer

The ID of the card to update status.

Request Body schema: application/json
required

The updated card request

action
string (ProductionSchedulerServer.Application.Features.Cards.Commands.UpdateAction)

Update action for the card.

Enum: "Activate" "Complete" "Deactivate"
crewSize
integer <int32>

The crew size.

Responses
200

OK

204

Returns a response indicating the success of the update

400

If the request is invalid.

404

If the card is not found.

500

If there was an internal server error.

patch/api/cards/{id}/status
Request samples
application/json
{
  • "action": "Activate",
  • "crewSize": 0
}
Response samples
application/json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "property1": null,
  • "property2": null
}