ProRoster - Delete a base demand.

API Url

DELETE
http://localhost:16010/ProMarkREST/rest/ProRoster/base-demands/{id}

Permissions: user

Path parameters

FieldTypeDescription
idNumber

The Demand's unique identifier.

Query parameters

FieldTypeDescription
forceDeleteoptionalBoolean

true = Ignore warnings (if demand is already in use) and delete the demand.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example when Base Demand is used in active Plan Demands:

{
"response": {
"errorCode": 6,
"errorMessage": "You are about to delete the selected Base Demand. This Base Demand is in use in active plans. If you delete it, it will no longer be available in the pallette of Base Demands."
}
}